pydantic-ai-slim 0.2.14__py3-none-any.whl → 0.2.15__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.

@@ -346,8 +346,10 @@ class GoogleModel(Model):
346
346
  else:
347
347
  assert_never(part)
348
348
 
349
- if message_parts: # pragma: no branch
350
- contents.append({'role': 'user', 'parts': message_parts})
349
+ # Google GenAI requires at least one part in the message.
350
+ if not message_parts:
351
+ message_parts = [{'text': ''}]
352
+ contents.append({'role': 'user', 'parts': message_parts})
351
353
  elif isinstance(m, ModelResponse):
352
354
  contents.append(_content_model_response(m))
353
355
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydantic-ai-slim
3
- Version: 0.2.14
3
+ Version: 0.2.15
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.2.14
33
+ Requires-Dist: pydantic-graph==0.2.15
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.2.14; extra == 'a2a'
37
+ Requires-Dist: fasta2a==0.2.15; 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.2.14; extra == 'evals'
51
+ Requires-Dist: pydantic-evals==0.2.15; extra == 'evals'
52
52
  Provides-Extra: google
53
53
  Requires-Dist: google-genai>=1.15.0; extra == 'google'
54
54
  Provides-Extra: groq
@@ -31,7 +31,7 @@ pydantic_ai/models/cohere.py,sha256=bQLTQguqVXkzkPgWmMncrxApO9CQ7YtgrmFwa057g7g,
31
31
  pydantic_ai/models/fallback.py,sha256=idOYGMo3CZzpCBT8DDiuPAAgnV2jzluDUq3ESb3KteM,4981
32
32
  pydantic_ai/models/function.py,sha256=rnihsyakyieCGbEyxfqzvoBHnR_3LJn4x6DXQqdAAM4,11458
33
33
  pydantic_ai/models/gemini.py,sha256=27y4JPGU0EJzGpYZpv6WlAYzHdW_1oD4fRISjoQMKW0,35823
34
- pydantic_ai/models/google.py,sha256=6aHUz5lnzA2cxAhF5l9ff5vx0ubtdIUsjHVUyKFjjCM,20991
34
+ pydantic_ai/models/google.py,sha256=jwmbnBixiBZQFwEa89NJGkeH7iVmKzXhPuf6ONpgduM,21095
35
35
  pydantic_ai/models/groq.py,sha256=MVJO8DQbgO7NlRA898hTdFnKz1Y42c31u8BDoYDxGIg,17848
36
36
  pydantic_ai/models/instrumented.py,sha256=Y3SxAlP9cCX_Ch02c8qN9mrWMY9_tuyj6zMeN5Gz-W0,12356
37
37
  pydantic_ai/models/mistral.py,sha256=pTywq_QCjjAlRC5uTQ9DQeONH0Fsc1cYUVku9BW21Wk,29614
@@ -66,8 +66,8 @@ pydantic_ai/providers/mistral.py,sha256=EIUSENjFuGzBhvbdrarUTM4VPkesIMnZrzfnEKHO
66
66
  pydantic_ai/providers/openai.py,sha256=7iGij0EaFylab7dTZAZDgXr78tr-HsZrn9EI9AkWBNQ,3091
67
67
  pydantic_ai/providers/openrouter.py,sha256=NXjNdnlXIBrBMMqbzcWQnowXOuZh4NHikXenBn5h3mc,4061
68
68
  pydantic_ai/providers/together.py,sha256=zFVSMSm5jXbpkNouvBOTjWrPmlPpCp6sQS5LMSyVjrQ,3482
69
- pydantic_ai_slim-0.2.14.dist-info/METADATA,sha256=IgrJ_FIHP6CYpxOy9DroNyZzT2VAro7Ni7DgwlxkYJo,3850
70
- pydantic_ai_slim-0.2.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
71
- pydantic_ai_slim-0.2.14.dist-info/entry_points.txt,sha256=kbKxe2VtDCYS06hsI7P3uZGxcVC08-FPt1rxeiMpIps,50
72
- pydantic_ai_slim-0.2.14.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
73
- pydantic_ai_slim-0.2.14.dist-info/RECORD,,
69
+ pydantic_ai_slim-0.2.15.dist-info/METADATA,sha256=zRVYY87obQ7R55tqSHCx3RTz2EYcN9tD5AEp14b8ddk,3850
70
+ pydantic_ai_slim-0.2.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
71
+ pydantic_ai_slim-0.2.15.dist-info/entry_points.txt,sha256=kbKxe2VtDCYS06hsI7P3uZGxcVC08-FPt1rxeiMpIps,50
72
+ pydantic_ai_slim-0.2.15.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
73
+ pydantic_ai_slim-0.2.15.dist-info/RECORD,,