pydantic-ai 0.0.28__tar.gz → 0.0.29__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.

Files changed (62) hide show
  1. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/PKG-INFO +3 -3
  2. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/pyproject.toml +3 -3
  3. pydantic_ai-0.0.29/tests/graph/test_utils.py +13 -0
  4. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/.gitignore +0 -0
  5. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/LICENSE +0 -0
  6. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/Makefile +0 -0
  7. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/README.md +0 -0
  8. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/__init__.py +0 -0
  9. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/assets/kiwi.png +0 -0
  10. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/assets/marcelo.mp3 +0 -0
  11. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/conftest.py +0 -0
  12. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/example_modules/README.md +0 -0
  13. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/example_modules/bank_database.py +0 -0
  14. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/example_modules/fake_database.py +0 -0
  15. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/example_modules/weather_service.py +0 -0
  16. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/graph/__init__.py +0 -0
  17. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/graph/test_graph.py +0 -0
  18. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/graph/test_history.py +0 -0
  19. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/graph/test_mermaid.py +0 -0
  20. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/graph/test_state.py +0 -0
  21. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/import_examples.py +0 -0
  22. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/json_body_serializer.py +0 -0
  23. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/__init__.py +0 -0
  24. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/cassettes/test_anthropic/test_image_url_input.yaml +0 -0
  25. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/cassettes/test_anthropic/test_image_url_input_invalid_mime_type.yaml +0 -0
  26. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/cassettes/test_anthropic/test_multiple_parallel_tool_calls.yaml +0 -0
  27. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/cassettes/test_gemini/test_image_as_binary_content_input.yaml +0 -0
  28. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/cassettes/test_gemini/test_image_url_input.yaml +0 -0
  29. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/cassettes/test_groq/test_image_as_binary_content_input.yaml +0 -0
  30. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/cassettes/test_groq/test_image_url_input.yaml +0 -0
  31. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/cassettes/test_openai/test_audio_as_binary_content_input.yaml +0 -0
  32. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/cassettes/test_openai/test_image_as_binary_content_input.yaml +0 -0
  33. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/cassettes/test_openai/test_openai_o1_mini_system_role[developer].yaml +0 -0
  34. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/cassettes/test_openai/test_openai_o1_mini_system_role[system].yaml +0 -0
  35. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/mock_async_stream.py +0 -0
  36. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_anthropic.py +0 -0
  37. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_cohere.py +0 -0
  38. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_fallback.py +0 -0
  39. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_gemini.py +0 -0
  40. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_groq.py +0 -0
  41. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_instrumented.py +0 -0
  42. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_mistral.py +0 -0
  43. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_model.py +0 -0
  44. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_model_function.py +0 -0
  45. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_model_names.py +0 -0
  46. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_model_test.py +0 -0
  47. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_openai.py +0 -0
  48. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/models/test_vertexai.py +0 -0
  49. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_agent.py +0 -0
  50. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_deps.py +0 -0
  51. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_examples.py +0 -0
  52. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_format_as_xml.py +0 -0
  53. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_json_body_serializer.py +0 -0
  54. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_live.py +0 -0
  55. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_logfire.py +0 -0
  56. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_parts_manager.py +0 -0
  57. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_streaming.py +0 -0
  58. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_tools.py +0 -0
  59. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_usage_limits.py +0 -0
  60. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/test_utils.py +0 -0
  61. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/tests/typed_agent.py +0 -0
  62. {pydantic_ai-0.0.28 → pydantic_ai-0.0.29}/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.28
3
+ Version: 0.0.29
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.28
31
+ Requires-Dist: pydantic-ai-slim[anthropic,cohere,groq,mistral,openai,vertexai]==0.0.29
32
32
  Provides-Extra: examples
33
- Requires-Dist: pydantic-ai-examples==0.0.28; extra == 'examples'
33
+ Requires-Dist: pydantic-ai-examples==0.0.29; 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.28"
7
+ version = "0.0.29"
8
8
  description = "Agent Framework / shim to use Pydantic with LLMs"
9
9
  authors = [{ name = "Samuel Colvin", email = "samuel@pydantic.dev" }]
10
10
  license = "MIT"
@@ -32,7 +32,7 @@ classifiers = [
32
32
  requires-python = ">=3.9"
33
33
 
34
34
  dependencies = [
35
- "pydantic-ai-slim[openai,vertexai,groq,anthropic,mistral,cohere]==0.0.28",
35
+ "pydantic-ai-slim[openai,vertexai,groq,anthropic,mistral,cohere]==0.0.29",
36
36
  ]
37
37
 
38
38
  [project.urls]
@@ -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.28"]
45
+ examples = ["pydantic-ai-examples==0.0.29"]
46
46
  logfire = ["logfire>=2.3"]
47
47
 
48
48
  [tool.uv.sources]
@@ -0,0 +1,13 @@
1
+ from threading import Thread
2
+
3
+ from pydantic_graph._utils import get_event_loop
4
+
5
+
6
+ def test_get_event_loop_in_thread():
7
+ def get_and_close_event_loop():
8
+ event_loop = get_event_loop()
9
+ event_loop.close()
10
+
11
+ thread = Thread(target=get_and_close_event_loop)
12
+ thread.start()
13
+ thread.join()
File without changes
File without changes
File without changes
File without changes