pydantic-ai-slim 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.whl

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/messages.py CHANGED
@@ -763,7 +763,9 @@ class ThinkingPartDelta:
763
763
  ValueError: If `part` is not a `ThinkingPart`.
764
764
  """
765
765
  if isinstance(part, ThinkingPart):
766
- return replace(part, content=part.content + self.content_delta if self.content_delta else None)
766
+ new_content = part.content + self.content_delta if self.content_delta else part.content
767
+ new_signature = self.signature_delta if self.signature_delta is not None else part.signature
768
+ return replace(part, content=new_content, signature=new_signature)
767
769
  elif isinstance(part, ThinkingPartDelta):
768
770
  if self.content_delta is None and self.signature_delta is None:
769
771
  raise ValueError('Cannot apply ThinkingPartDelta with no content or signature')
@@ -139,8 +139,11 @@ KnownModelName = TypeAliasType(
139
139
  'google-gla:gemini-2.0-flash-lite-preview-02-05',
140
140
  'google-gla:gemini-2.0-pro-exp-02-05',
141
141
  'google-gla:gemini-2.5-flash-preview-05-20',
142
+ 'google-gla:gemini-2.5-flash',
143
+ 'google-gla:gemini-2.5-flash-lite-preview-06-17',
142
144
  'google-gla:gemini-2.5-pro-exp-03-25',
143
145
  'google-gla:gemini-2.5-pro-preview-05-06',
146
+ 'google-gla:gemini-2.5-pro',
144
147
  'google-vertex:gemini-1.5-flash',
145
148
  'google-vertex:gemini-1.5-flash-8b',
146
149
  'google-vertex:gemini-1.5-pro',
@@ -149,8 +152,11 @@ KnownModelName = TypeAliasType(
149
152
  'google-vertex:gemini-2.0-flash-lite-preview-02-05',
150
153
  'google-vertex:gemini-2.0-pro-exp-02-05',
151
154
  'google-vertex:gemini-2.5-flash-preview-05-20',
155
+ 'google-vertex:gemini-2.5-flash',
156
+ 'google-vertex:gemini-2.5-flash-lite-preview-06-17',
152
157
  'google-vertex:gemini-2.5-pro-exp-03-25',
153
158
  'google-vertex:gemini-2.5-pro-preview-05-06',
159
+ 'google-vertex:gemini-2.5-pro',
154
160
  'gpt-3.5-turbo',
155
161
  'gpt-3.5-turbo-0125',
156
162
  'gpt-3.5-turbo-0301',
@@ -54,8 +54,11 @@ LatestGeminiModelNames = Literal[
54
54
  'gemini-2.0-flash-lite-preview-02-05',
55
55
  'gemini-2.0-pro-exp-02-05',
56
56
  'gemini-2.5-flash-preview-05-20',
57
+ 'gemini-2.5-flash',
58
+ 'gemini-2.5-flash-lite-preview-06-17',
57
59
  'gemini-2.5-pro-exp-03-25',
58
60
  'gemini-2.5-pro-preview-05-06',
61
+ 'gemini-2.5-pro',
59
62
  ]
60
63
  """Latest Gemini models."""
61
64
 
@@ -79,8 +79,11 @@ LatestGoogleModelNames = Literal[
79
79
  'gemini-2.0-flash-lite-preview-02-05',
80
80
  'gemini-2.0-pro-exp-02-05',
81
81
  'gemini-2.5-flash-preview-05-20',
82
+ 'gemini-2.5-flash',
83
+ 'gemini-2.5-flash-lite-preview-06-17',
82
84
  'gemini-2.5-pro-exp-03-25',
83
85
  'gemini-2.5-pro-preview-05-06',
86
+ 'gemini-2.5-pro',
84
87
  ]
85
88
  """Latest Gemini models."""
86
89
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydantic-ai-slim
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Agent Framework / shim to use Pydantic with LLMs, slim package
5
5
  Author-email: Samuel Colvin <samuel@pydantic.dev>, Marcelo Trylesinski <marcelotryle@gmail.com>, David Montague <david@pydantic.dev>, Alex Hall <alex@pydantic.dev>
6
6
  License-Expression: MIT
@@ -30,11 +30,11 @@ Requires-Dist: exceptiongroup; python_version < '3.11'
30
30
  Requires-Dist: griffe>=1.3.2
31
31
  Requires-Dist: httpx>=0.27
32
32
  Requires-Dist: opentelemetry-api>=1.28.0
33
- Requires-Dist: pydantic-graph==0.3.0
33
+ Requires-Dist: pydantic-graph==0.3.1
34
34
  Requires-Dist: pydantic>=2.10
35
35
  Requires-Dist: typing-inspection>=0.4.0
36
36
  Provides-Extra: a2a
37
- Requires-Dist: fasta2a==0.3.0; extra == 'a2a'
37
+ Requires-Dist: fasta2a==0.3.1; extra == 'a2a'
38
38
  Provides-Extra: anthropic
39
39
  Requires-Dist: anthropic>=0.52.0; extra == 'anthropic'
40
40
  Provides-Extra: bedrock
@@ -48,7 +48,7 @@ Requires-Dist: cohere>=5.13.11; (platform_system != 'Emscripten') and extra == '
48
48
  Provides-Extra: duckduckgo
49
49
  Requires-Dist: duckduckgo-search>=7.0.0; extra == 'duckduckgo'
50
50
  Provides-Extra: evals
51
- Requires-Dist: pydantic-evals==0.3.0; extra == 'evals'
51
+ Requires-Dist: pydantic-evals==0.3.1; extra == 'evals'
52
52
  Provides-Extra: google
53
53
  Requires-Dist: google-genai>=1.15.0; extra == 'google'
54
54
  Provides-Extra: groq
@@ -16,7 +16,7 @@ pydantic_ai/exceptions.py,sha256=IdFw594Ou7Vn4YFa7xdZ040_j_6nmyA3MPANbC7sys4,317
16
16
  pydantic_ai/format_as_xml.py,sha256=IINfh1evWDphGahqHNLBArB5dQ4NIqS3S-kru35ztGg,372
17
17
  pydantic_ai/format_prompt.py,sha256=qdKep95Sjlr7u1-qag4JwPbjoURbG0GbeU_l5ODTNw4,4466
18
18
  pydantic_ai/mcp.py,sha256=OkbwSBODgeC4BX2QIvTmECZJbeSYtjZ15ZPnEyf95UI,20157
19
- pydantic_ai/messages.py,sha256=Z8cNpaEcMgdJpyE9ydBLBDJV0A-Hf-GllLAWeUKY4_0,36124
19
+ pydantic_ai/messages.py,sha256=7GtSO0x3nypiIZZOiAf72woeTqhuf7W21-jbYS582RQ,36300
20
20
  pydantic_ai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  pydantic_ai/result.py,sha256=YlcR0QAQIejz3fbZ50zYfHKIZco0dwmnZTxytV-n3oM,24609
22
22
  pydantic_ai/settings.py,sha256=eRJs2fI2yaIrhtYRlWqKlC9KnFaJHvslgSll8NQ20jc,3533
@@ -27,14 +27,14 @@ pydantic_ai/common_tools/duckduckgo.py,sha256=Ty9tu1rCwMfGKgz1JAaC2q_4esmL6QvpkH
27
27
  pydantic_ai/common_tools/tavily.py,sha256=Q1xxSF5HtXAaZ10Pp-OaDOHXwJf2mco9wScGEQXD7E4,2495
28
28
  pydantic_ai/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  pydantic_ai/ext/langchain.py,sha256=TI8B6eBjEGKFfvwyLgC_-0eeba4hDJq7wLZ0OZhbiWw,1967
30
- pydantic_ai/models/__init__.py,sha256=LhBw4yxIEMByJPthAiWtQwGgNlj3cQkOaX6wtzeMFjA,27947
30
+ pydantic_ai/models/__init__.py,sha256=mE7tcHZM0uAwkUA67rGwetB_lQB-lXJpNdJh-_xe8aI,28224
31
31
  pydantic_ai/models/anthropic.py,sha256=s7yvNObBfS-gcXLT0vU8UXjLHITsbr5kkXgP1SYkPms,23832
32
32
  pydantic_ai/models/bedrock.py,sha256=67qf_mFnx0kfmKoI96zLOAUn3P47PxPqMrQsaYUrJJ0,29120
33
33
  pydantic_ai/models/cohere.py,sha256=UU04-_O-KLgC4DUpM-g4FBPoTOatbmVJJ7mkZNBGsbQ,12626
34
34
  pydantic_ai/models/fallback.py,sha256=idOYGMo3CZzpCBT8DDiuPAAgnV2jzluDUq3ESb3KteM,4981
35
35
  pydantic_ai/models/function.py,sha256=xvN_oNKw0X4c16oe1l3MX2_kJtFWMOMaseMNO6eNBYI,11709
36
- pydantic_ai/models/gemini.py,sha256=d8HY9nc-tcuWFmA5OdKsWABMTpXq68sUL6xE8zY6dzs,37383
37
- pydantic_ai/models/google.py,sha256=AVXC3CPG1aduGXSc0XFEYnrT6LsNKfNWp-kmf1SQssg,22294
36
+ pydantic_ai/models/gemini.py,sha256=zDEZIPnlH9CtlJwZh6TizqzXqz0XidMjGLYpeCNXwHI,37472
37
+ pydantic_ai/models/google.py,sha256=Xvw1nXji3WtDnsQrC9SFHYfmvwxQM303sxvy55QEK0U,22383
38
38
  pydantic_ai/models/groq.py,sha256=lojKRdvg0p-EtZ20Z2CS4I0goq4CoGkLj3LuYHA6o-I,18497
39
39
  pydantic_ai/models/instrumented.py,sha256=vVq7mS071EXS2PZ3NJ4Zgt93iQgAscFr2dyg9fAeuCE,15703
40
40
  pydantic_ai/models/mistral.py,sha256=LHm3F2yVKoE1uDjEPtTPug6duHwr4A42qey2Pncqqx4,30093
@@ -70,8 +70,8 @@ pydantic_ai/providers/mistral.py,sha256=EIUSENjFuGzBhvbdrarUTM4VPkesIMnZrzfnEKHO
70
70
  pydantic_ai/providers/openai.py,sha256=7iGij0EaFylab7dTZAZDgXr78tr-HsZrn9EI9AkWBNQ,3091
71
71
  pydantic_ai/providers/openrouter.py,sha256=NXjNdnlXIBrBMMqbzcWQnowXOuZh4NHikXenBn5h3mc,4061
72
72
  pydantic_ai/providers/together.py,sha256=zFVSMSm5jXbpkNouvBOTjWrPmlPpCp6sQS5LMSyVjrQ,3482
73
- pydantic_ai_slim-0.3.0.dist-info/METADATA,sha256=GmMBkJvakRA_lUHh_jO941_uxk5JwGKgWNle0dLCAOQ,3846
74
- pydantic_ai_slim-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
75
- pydantic_ai_slim-0.3.0.dist-info/entry_points.txt,sha256=kbKxe2VtDCYS06hsI7P3uZGxcVC08-FPt1rxeiMpIps,50
76
- pydantic_ai_slim-0.3.0.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
77
- pydantic_ai_slim-0.3.0.dist-info/RECORD,,
73
+ pydantic_ai_slim-0.3.1.dist-info/METADATA,sha256=8uDjyRLcxtA2jerv037Q6HrnBQMsVS0BhtGV6nI5sP8,3846
74
+ pydantic_ai_slim-0.3.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
75
+ pydantic_ai_slim-0.3.1.dist-info/entry_points.txt,sha256=kbKxe2VtDCYS06hsI7P3uZGxcVC08-FPt1rxeiMpIps,50
76
+ pydantic_ai_slim-0.3.1.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
77
+ pydantic_ai_slim-0.3.1.dist-info/RECORD,,