Debian Codegraph @

src/anthropic/types/model_info.py

raw
1 from typing import Optional
2 from datetime import datetime
3 from typing_extensions import Literal
4
5 from .._models import BaseModel
6 from .model_capabilities import ModelCapabilities
7
8 __all__ = ["ModelInfo"]
9
10
11 class ModelInfo(BaseModel):
12 id: str
13 """Unique model identifier."""
14
15 capabilities: Optional[ModelCapabilities] = None
16 """Object mapping capability names to their support details.
17
18 Keys are always present for all known capabilities.
19 """
20
21 created_at: datetime
22 """RFC 3339 datetime string representing the time at which the model was released.
23
24 May be set to an epoch value if the release date is unknown.
25 """
26
27 display_name: str
28 """A human-readable name for the model."""
29
30 max_input_tokens: Optional[int] = None
31 """Maximum input context window size in tokens for this model."""
32
33 max_tokens: Optional[int] = None
34 """Maximum value for the `max_tokens` parameter when using this model."""
35
36 type: Literal["model"]
37 """Object type.
38
39 For Models, this is always `"model"`.
40 """