pydantic-ai 0.0.26__tar.gz → 0.0.27__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 might be problematic. Click here for more details.
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/PKG-INFO +3 -3
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/pyproject.toml +3 -3
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/conftest.py +5 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/cassettes/test_gemini/test_image_as_binary_content_input.yaml +7 -7
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/cassettes/test_gemini/test_image_url_input.yaml +12 -12
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/mock_async_stream.py +5 -1
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_anthropic.py +42 -19
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_cohere.py +29 -8
- pydantic_ai-0.0.27/tests/models/test_fallback.py +207 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_gemini.py +5 -4
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_groq.py +42 -19
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_mistral.py +56 -86
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_model_function.py +7 -7
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_openai.py +53 -28
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_agent.py +14 -14
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_examples.py +32 -4
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_streaming.py +8 -8
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/.gitignore +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/LICENSE +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/Makefile +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/README.md +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/__init__.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/assets/kiwi.png +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/assets/marcelo.mp3 +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/example_modules/README.md +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/example_modules/bank_database.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/example_modules/fake_database.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/example_modules/weather_service.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/graph/__init__.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/graph/test_graph.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/graph/test_history.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/graph/test_mermaid.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/graph/test_state.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/import_examples.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/json_body_serializer.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/__init__.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/cassettes/test_anthropic/test_image_url_input.yaml +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/cassettes/test_anthropic/test_multiple_parallel_tool_calls.yaml +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/cassettes/test_groq/test_image_as_binary_content_input.yaml +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/cassettes/test_groq/test_image_url_input.yaml +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/cassettes/test_openai/test_audio_as_binary_content_input.yaml +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/cassettes/test_openai/test_image_as_binary_content_input.yaml +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/cassettes/test_openai/test_openai_o1_mini_system_role[developer].yaml +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/cassettes/test_openai/test_openai_o1_mini_system_role[system].yaml +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_instrumented.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_model.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_model_names.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_model_test.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/models/test_vertexai.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_deps.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_format_as_xml.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_json_body_serializer.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_live.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_logfire.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_parts_manager.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_tools.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_usage_limits.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/test_utils.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/typed_agent.py +0 -0
- {pydantic_ai-0.0.26 → pydantic_ai-0.0.27}/tests/typed_graph.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pydantic-ai
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.27
|
|
4
4
|
Summary: Agent Framework / shim to use Pydantic with LLMs
|
|
5
5
|
Project-URL: Homepage, https://ai.pydantic.dev
|
|
6
6
|
Project-URL: Source, https://github.com/pydantic/pydantic-ai
|
|
@@ -28,9 +28,9 @@ Classifier: Topic :: Internet
|
|
|
28
28
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Requires-Python: >=3.9
|
|
31
|
-
Requires-Dist: pydantic-ai-slim[anthropic,cohere,groq,mistral,openai,vertexai]==0.0.
|
|
31
|
+
Requires-Dist: pydantic-ai-slim[anthropic,cohere,groq,mistral,openai,vertexai]==0.0.27
|
|
32
32
|
Provides-Extra: examples
|
|
33
|
-
Requires-Dist: pydantic-ai-examples==0.0.
|
|
33
|
+
Requires-Dist: pydantic-ai-examples==0.0.27; extra == 'examples'
|
|
34
34
|
Provides-Extra: logfire
|
|
35
35
|
Requires-Dist: logfire>=2.3; extra == 'logfire'
|
|
36
36
|
Description-Content-Type: text/markdown
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pydantic-ai"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.27"
|
|
8
8
|
description = "Agent Framework / shim to use Pydantic with LLMs"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "Samuel Colvin", email = "samuel@pydantic.dev" },
|
|
@@ -33,7 +33,7 @@ classifiers = [
|
|
|
33
33
|
]
|
|
34
34
|
requires-python = ">=3.9"
|
|
35
35
|
|
|
36
|
-
dependencies = ["pydantic-ai-slim[openai,vertexai,groq,anthropic,mistral,cohere]==0.0.
|
|
36
|
+
dependencies = ["pydantic-ai-slim[openai,vertexai,groq,anthropic,mistral,cohere]==0.0.27"]
|
|
37
37
|
|
|
38
38
|
[project.urls]
|
|
39
39
|
Homepage = "https://ai.pydantic.dev"
|
|
@@ -42,7 +42,7 @@ Documentation = "https://ai.pydantic.dev"
|
|
|
42
42
|
Changelog = "https://github.com/pydantic/pydantic-ai/releases"
|
|
43
43
|
|
|
44
44
|
[project.optional-dependencies]
|
|
45
|
-
examples = ["pydantic-ai-examples==0.0.
|
|
45
|
+
examples = ["pydantic-ai-examples==0.0.27"]
|
|
46
46
|
logfire = ["logfire>=2.3"]
|
|
47
47
|
|
|
48
48
|
[tool.uv.sources]
|
|
@@ -186,6 +186,11 @@ def set_event_loop() -> Iterator[None]:
|
|
|
186
186
|
new_loop.close()
|
|
187
187
|
|
|
188
188
|
|
|
189
|
+
def raise_if_exception(e: Any) -> None:
|
|
190
|
+
if isinstance(e, Exception):
|
|
191
|
+
raise e
|
|
192
|
+
|
|
193
|
+
|
|
189
194
|
def pytest_recording_configure(config: Any, vcr: VCR):
|
|
190
195
|
from . import json_body_serializer
|
|
191
196
|
|