File tree Expand file tree Collapse file tree 9 files changed +18
-26
lines changed
pydantic_ai_slim/pydantic_ai/models Expand file tree Collapse file tree 9 files changed +18
-26
lines changed Original file line number Diff line number Diff line change 90
90
91
91
92
92
class AnthropicModelSettings (ModelSettings , total = False ):
93
- """Settings used for an Anthropic model request.
93
+ """Settings used for an Anthropic model request."""
94
94
95
- ALL FIELDS MUST BE `anthropic_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
96
- """
95
+ # ALL FIELDS MUST BE `anthropic_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
97
96
98
97
anthropic_metadata : BetaMetadataParam
99
98
"""An object describing metadata about the request.
Original file line number Diff line number Diff line change 133
133
class BedrockModelSettings (ModelSettings , total = False ):
134
134
"""Settings for Bedrock models.
135
135
136
- ALL FIELDS MUST BE `bedrock_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
137
-
138
136
See [the Bedrock Converse API docs](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html#API_runtime_Converse_RequestSyntax) for a full list.
139
137
See [the boto3 implementation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/converse.html) of the Bedrock Converse API.
140
138
"""
141
139
140
+ # ALL FIELDS MUST BE `bedrock_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
141
+
142
142
bedrock_guardrail_config : GuardrailConfigurationTypeDef
143
143
"""Content moderation and safety settings for Bedrock API requests.
144
144
Original file line number Diff line number Diff line change 83
83
84
84
85
85
class CohereModelSettings (ModelSettings , total = False ):
86
- """Settings used for a Cohere model request.
86
+ """Settings used for a Cohere model request."""
87
87
88
- ALL FIELDS MUST BE `cohere_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
89
- """
88
+ # ALL FIELDS MUST BE `cohere_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
90
89
91
90
# This class is a placeholder for any future cohere-specific settings
92
91
Original file line number Diff line number Diff line change 74
74
75
75
76
76
class GeminiModelSettings (ModelSettings , total = False ):
77
- """Settings used for a Gemini model request.
77
+ """Settings used for a Gemini model request."""
78
78
79
- ALL FIELDS MUST BE `gemini_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
80
- """
79
+ # ALL FIELDS MUST BE `gemini_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
81
80
82
81
gemini_safety_settings : list [GeminiSafetySettings ]
83
82
"""Safety settings options for Gemini model request."""
Original file line number Diff line number Diff line change 98
98
99
99
100
100
class GoogleModelSettings (ModelSettings , total = False ):
101
- """Settings used for a Gemini model request.
101
+ """Settings used for a Gemini model request."""
102
102
103
- ALL FIELDS MUST BE `gemini_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
104
- """
103
+ # ALL FIELDS MUST BE `gemini_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
105
104
106
105
google_safety_settings : list [SafetySettingDict ]
107
106
"""The safety settings to use for the model.
Original file line number Diff line number Diff line change 93
93
94
94
95
95
class GroqModelSettings (ModelSettings , total = False ):
96
- """Settings used for a Groq model request.
96
+ """Settings used for a Groq model request."""
97
97
98
- ALL FIELDS MUST BE `groq_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
99
- """
98
+ # ALL FIELDS MUST BE `groq_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
100
99
101
100
groq_reasoning_format : Literal ['hidden' , 'raw' , 'parsed' ]
102
101
Original file line number Diff line number Diff line change 16
16
17
17
18
18
class MCPSamplingModelSettings (ModelSettings , total = False ):
19
- """Settings used for an MCP Sampling model request.
19
+ """Settings used for an MCP Sampling model request."""
20
20
21
- ALL FIELDS MUST BE `mcp_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
22
- """
21
+ # ALL FIELDS MUST BE `mcp_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
23
22
24
23
mcp_model_preferences : ModelPreferences
25
24
"""Model preferences to use for MCP Sampling."""
Original file line number Diff line number Diff line change 96
96
97
97
98
98
class MistralModelSettings (ModelSettings , total = False ):
99
- """Settings used for a Mistral model request.
99
+ """Settings used for a Mistral model request."""
100
100
101
- ALL FIELDS MUST BE `mistral_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
102
- """
101
+ # ALL FIELDS MUST BE `mistral_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
103
102
104
103
# This class is a placeholder for any future mistral-specific settings
105
104
Original file line number Diff line number Diff line change 96
96
97
97
98
98
class OpenAIModelSettings (ModelSettings , total = False ):
99
- """Settings used for an OpenAI model request.
99
+ """Settings used for an OpenAI model request."""
100
100
101
- ALL FIELDS MUST BE `openai_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
102
- """
101
+ # ALL FIELDS MUST BE `openai_` PREFIXED SO YOU CAN MERGE THEM WITH OTHER MODELS.
103
102
104
103
openai_reasoning_effort : ReasoningEffort
105
104
"""Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
You can’t perform that action at this time.
0 commit comments