| 1 |
from .._models import BaseModel |
| 2 |
from .effort_capability import EffortCapability |
| 3 |
from .capability_support import CapabilitySupport |
| 4 |
from .thinking_capability import ThinkingCapability |
| 5 |
from .context_management_capability import ContextManagementCapability |
| 6 |
|
| 7 |
__all__ = ["ModelCapabilities"] |
| 8 |
|
| 9 |
|
| 10 |
class ModelCapabilities(BaseModel): |
| 11 |
"""Model capability information.""" |
| 12 |
|
| 13 |
batch: CapabilitySupport |
| 14 |
"""Whether the model supports the Batch API.""" |
| 15 |
|
| 16 |
citations: CapabilitySupport |
| 17 |
"""Whether the model supports citation generation.""" |
| 18 |
|
| 19 |
code_execution: CapabilitySupport |
| 20 |
"""Whether the model supports code execution tools.""" |
| 21 |
|
| 22 |
context_management: ContextManagementCapability |
| 23 |
"""Context management support and available strategies.""" |
| 24 |
|
| 25 |
effort: EffortCapability |
| 26 |
"""Effort (reasoning_effort) support and available levels.""" |
| 27 |
|
| 28 |
image_input: CapabilitySupport |
| 29 |
"""Whether the model accepts image content blocks.""" |
| 30 |
|
| 31 |
pdf_input: CapabilitySupport |
| 32 |
"""Whether the model accepts PDF content blocks.""" |
| 33 |
|
| 34 |
structured_outputs: CapabilitySupport |
| 35 |
"""Whether the model supports structured output / JSON mode / strict tool schemas.""" |
| 36 |
|
| 37 |
thinking: ThinkingCapability |
| 38 |
"""Thinking capability and supported type configurations.""" |