pydantic-ai-slim 0.0.49__tar.gz → 0.0.50__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.49 → pydantic_ai_slim-0.0.50}/PKG-INFO +3 -3
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/gemini.py +6 -5
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/.gitignore +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/README.md +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/__init__.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/__main__.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/_agent_graph.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/_cli.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/_griffe.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/_parts_manager.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/_pydantic.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/_result.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/_system_prompt.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/_utils.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/agent.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/common_tools/__init__.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/common_tools/duckduckgo.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/common_tools/tavily.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/exceptions.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/format_as_xml.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/mcp.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/messages.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/__init__.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/anthropic.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/bedrock.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/cohere.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/fallback.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/function.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/groq.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/instrumented.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/mistral.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/openai.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/test.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/models/wrapper.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/providers/__init__.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/providers/anthropic.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/providers/azure.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/providers/bedrock.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/providers/cohere.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/providers/deepseek.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/providers/google_gla.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/providers/google_vertex.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/providers/groq.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/providers/mistral.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/providers/openai.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/py.typed +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/result.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/settings.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/tools.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/pydantic_ai/usage.py +0 -0
- {pydantic_ai_slim-0.0.49 → pydantic_ai_slim-0.0.50}/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.50
|
|
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.50
|
|
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.50; extra == 'evals'
|
|
49
49
|
Provides-Extra: groq
|
|
50
50
|
Requires-Dist: groq>=0.15.0; extra == 'groq'
|
|
51
51
|
Provides-Extra: logfire
|
|
@@ -135,7 +135,8 @@ class GeminiModel(Model):
|
|
|
135
135
|
async with self._make_request(
|
|
136
136
|
messages, False, cast(GeminiModelSettings, model_settings or {}), model_request_parameters
|
|
137
137
|
) as http_response:
|
|
138
|
-
|
|
138
|
+
data = await http_response.aread()
|
|
139
|
+
response = _gemini_response_ta.validate_json(data)
|
|
139
140
|
return self._process_response(response), _metadata_as_usage(response)
|
|
140
141
|
|
|
141
142
|
@asynccontextmanager
|
|
@@ -640,10 +641,7 @@ class _GeminiFunction(TypedDict):
|
|
|
640
641
|
|
|
641
642
|
def _function_from_abstract_tool(tool: ToolDefinition) -> _GeminiFunction:
|
|
642
643
|
json_schema = _GeminiJsonSchema(tool.parameters_json_schema).simplify()
|
|
643
|
-
f = _GeminiFunction(
|
|
644
|
-
name=tool.name,
|
|
645
|
-
description=tool.description,
|
|
646
|
-
)
|
|
644
|
+
f = _GeminiFunction(name=tool.name, description=tool.description)
|
|
647
645
|
if json_schema.get('properties'):
|
|
648
646
|
f['parameters'] = json_schema
|
|
649
647
|
return f
|
|
@@ -770,6 +768,9 @@ class _GeminiJsonSchema:
|
|
|
770
768
|
def _simplify(self, schema: dict[str, Any], refs_stack: tuple[str, ...]) -> None:
|
|
771
769
|
schema.pop('title', None)
|
|
772
770
|
schema.pop('default', None)
|
|
771
|
+
schema.pop('$schema', None)
|
|
772
|
+
schema.pop('exclusiveMaximum', None)
|
|
773
|
+
schema.pop('exclusiveMinimum', None)
|
|
773
774
|
if ref := schema.pop('$ref', None):
|
|
774
775
|
# noinspection PyTypeChecker
|
|
775
776
|
key = re.sub(r'^#/\$defs/', '', ref)
|
|
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
|
|
File without changes
|