pydantic-ai-slim 0.0.50__tar.gz → 0.0.52__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pydantic-ai-slim might be problematic. Click here for more details.
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/PKG-INFO +3 -3
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/mcp.py +13 -3
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/openai.py +2 -1
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/.gitignore +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/README.md +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/__init__.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/__main__.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/_agent_graph.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/_cli.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/_griffe.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/_parts_manager.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/_pydantic.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/_result.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/_system_prompt.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/_utils.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/agent.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/common_tools/__init__.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/common_tools/duckduckgo.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/common_tools/tavily.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/exceptions.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/format_as_xml.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/messages.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/__init__.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/anthropic.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/bedrock.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/cohere.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/fallback.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/function.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/gemini.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/groq.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/instrumented.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/mistral.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/test.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/models/wrapper.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/providers/__init__.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/providers/anthropic.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/providers/azure.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/providers/bedrock.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/providers/cohere.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/providers/deepseek.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/providers/google_gla.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/providers/google_vertex.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/providers/groq.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/providers/mistral.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/providers/openai.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/py.typed +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/result.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/settings.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/tools.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pydantic_ai/usage.py +0 -0
- {pydantic_ai_slim-0.0.50 → pydantic_ai_slim-0.0.52}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pydantic-ai-slim
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.52
|
|
4
4
|
Summary: Agent Framework / shim to use Pydantic with LLMs, slim package
|
|
5
5
|
Author-email: Samuel Colvin <samuel@pydantic.dev>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -29,7 +29,7 @@ Requires-Dist: exceptiongroup; python_version < '3.11'
|
|
|
29
29
|
Requires-Dist: griffe>=1.3.2
|
|
30
30
|
Requires-Dist: httpx>=0.27
|
|
31
31
|
Requires-Dist: opentelemetry-api>=1.28.0
|
|
32
|
-
Requires-Dist: pydantic-graph==0.0.
|
|
32
|
+
Requires-Dist: pydantic-graph==0.0.52
|
|
33
33
|
Requires-Dist: pydantic>=2.10
|
|
34
34
|
Requires-Dist: typing-inspection>=0.4.0
|
|
35
35
|
Provides-Extra: anthropic
|
|
@@ -45,7 +45,7 @@ Requires-Dist: cohere>=5.13.11; (platform_system != 'Emscripten') and extra == '
|
|
|
45
45
|
Provides-Extra: duckduckgo
|
|
46
46
|
Requires-Dist: duckduckgo-search>=7.0.0; extra == 'duckduckgo'
|
|
47
47
|
Provides-Extra: evals
|
|
48
|
-
Requires-Dist: pydantic-evals==0.0.
|
|
48
|
+
Requires-Dist: pydantic-evals==0.0.52; extra == 'evals'
|
|
49
49
|
Provides-Extra: groq
|
|
50
50
|
Requires-Dist: groq>=0.15.0; extra == 'groq'
|
|
51
51
|
Provides-Extra: logfire
|
|
@@ -114,7 +114,18 @@ class MCPServerStdio(MCPServer):
|
|
|
114
114
|
from pydantic_ai import Agent
|
|
115
115
|
from pydantic_ai.mcp import MCPServerStdio
|
|
116
116
|
|
|
117
|
-
server = MCPServerStdio(
|
|
117
|
+
server = MCPServerStdio( # (1)!
|
|
118
|
+
'deno',
|
|
119
|
+
args=[
|
|
120
|
+
'run',
|
|
121
|
+
'-N',
|
|
122
|
+
'-R=node_modules',
|
|
123
|
+
'-W=node_modules',
|
|
124
|
+
'--node-modules-dir=auto',
|
|
125
|
+
'jsr:@pydantic/mcp-run-python',
|
|
126
|
+
'stdio',
|
|
127
|
+
]
|
|
128
|
+
)
|
|
118
129
|
agent = Agent('openai:gpt-4o', mcp_servers=[server])
|
|
119
130
|
|
|
120
131
|
async def main():
|
|
@@ -177,8 +188,7 @@ class MCPServerHTTP(MCPServer):
|
|
|
177
188
|
...
|
|
178
189
|
```
|
|
179
190
|
|
|
180
|
-
1. E.g. you might be connecting to a server run with `
|
|
181
|
-
see [MCP Run Python](../mcp/run-python.md) for more information.
|
|
191
|
+
1. E.g. you might be connecting to a server run with [`mcp-run-python`](../mcp/run-python.md).
|
|
182
192
|
2. This will connect to a server running on `localhost:3001`.
|
|
183
193
|
"""
|
|
184
194
|
|
|
@@ -630,7 +630,8 @@ class OpenAIResponsesModel(Model):
|
|
|
630
630
|
'parameters': f.parameters_json_schema,
|
|
631
631
|
'type': 'function',
|
|
632
632
|
'description': f.description,
|
|
633
|
-
|
|
633
|
+
# TODO(Marcelo): We should make this configurable, and if True, set `additionalProperties` to False.
|
|
634
|
+
'strict': False,
|
|
634
635
|
}
|
|
635
636
|
|
|
636
637
|
async def _map_message(self, messages: list[ModelMessage]) -> tuple[str, list[responses.ResponseInputItemParam]]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|