pydantic-ai-examples 0.7.2__py3-none-any.whl → 0.7.3__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-examples might be problematic. Click here for more details.

@@ -13,7 +13,7 @@ from rich.prompt import Prompt
13
13
 
14
14
  from pydantic_ai import Agent, ModelRetry, RunContext
15
15
  from pydantic_ai.messages import ModelMessage
16
- from pydantic_ai.usage import Usage, UsageLimits
16
+ from pydantic_ai.usage import RunUsage, UsageLimits
17
17
 
18
18
  # 'if-token-present' means nothing will be sent (and the example will work) if you don't have logfire configured
19
19
  logfire.configure(send_to_logfire='if-token-present')
@@ -182,7 +182,7 @@ async def main():
182
182
  req_date=datetime.date(2025, 1, 10),
183
183
  )
184
184
  message_history: list[ModelMessage] | None = None
185
- usage: Usage = Usage()
185
+ usage: RunUsage = RunUsage()
186
186
  # run the agent until a satisfactory flight is found
187
187
  while True:
188
188
  result = await search_agent.run(
@@ -213,7 +213,7 @@ async def main():
213
213
  )
214
214
 
215
215
 
216
- async def find_seat(usage: Usage) -> SeatPreference:
216
+ async def find_seat(usage: RunUsage) -> SeatPreference:
217
217
  message_history: list[ModelMessage] | None = None
218
218
  while True:
219
219
  answer = Prompt.ask('What seat would you like?')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydantic-ai-examples
3
- Version: 0.7.2
3
+ Version: 0.7.3
4
4
  Summary: Examples of how to use Pydantic AI and what it can do.
5
5
  Author-email: Samuel Colvin <samuel@pydantic.dev>, Marcelo Trylesinski <marcelotryle@gmail.com>, David Montague <david@pydantic.dev>, Alex Hall <alex@pydantic.dev>, Douwe Maan <douwe@pydantic.dev>
6
6
  License-Expression: MIT
@@ -35,8 +35,8 @@ Requires-Dist: logfire[asyncpg,fastapi,httpx,sqlite3]>=3.14.1
35
35
  Requires-Dist: mcp[cli]>=1.4.1; python_version >= '3.10'
36
36
  Requires-Dist: modal>=1.0.4
37
37
  Requires-Dist: pandas>=2.2.3
38
- Requires-Dist: pydantic-ai-slim[ag-ui,anthropic,groq,openai,vertexai]==0.7.2
39
- Requires-Dist: pydantic-evals==0.7.2
38
+ Requires-Dist: pydantic-ai-slim[ag-ui,anthropic,groq,openai,vertexai]==0.7.3
39
+ Requires-Dist: pydantic-evals==0.7.3
40
40
  Requires-Dist: python-multipart>=0.0.17
41
41
  Requires-Dist: rich>=13.9.2
42
42
  Requires-Dist: uvicorn>=0.32.0
@@ -4,7 +4,7 @@ pydantic_ai_examples/chat_app.html,sha256=90XhxrpDAT09mPVTn9edEn8PqAD-tHxWkeeMz9
4
4
  pydantic_ai_examples/chat_app.py,sha256=zrurOhwbjPDTYi9FkYZF3wMxc2AT9PFckM-xngQ5188,7105
5
5
  pydantic_ai_examples/chat_app.ts,sha256=2KfZ2rJU2o0iCPjelyqEi5sH6vfemzWaa5Evx_VcAE4,3307
6
6
  pydantic_ai_examples/data_analyst.py,sha256=vSpfIWpxNgaZqKx2DJD721ZA3QgSjaZkTixy5OHz9xY,3753
7
- pydantic_ai_examples/flight_booking.py,sha256=ilB-fYJEvopmqfRkAz4hK6zodZ4LHfatb4RR0-XxKb0,7438
7
+ pydantic_ai_examples/flight_booking.py,sha256=YPCS6v6RtVggFawPMhAjTPFMuihPlecM5a5QB919Pqc,7450
8
8
  pydantic_ai_examples/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pydantic_ai_examples/pydantic_model.py,sha256=EQsHBig2bvb0PG_2XDgP9Le5xJ4n8eZJzQDGQYhDykg,775
10
10
  pydantic_ai_examples/question_graph.py,sha256=POIBYGNDRyqAg08ReglBPcAZAcqHJMdcpCA2VOwiWNw,5107
@@ -44,7 +44,7 @@ pydantic_ai_examples/slack_lead_qualifier/modal.py,sha256=f464AaeyP-n3UIfvEVVc4D
44
44
  pydantic_ai_examples/slack_lead_qualifier/models.py,sha256=WTp6D2WCASXqrjPVT3vGgTSYATLPBM3_cjq9wvXMRao,1586
45
45
  pydantic_ai_examples/slack_lead_qualifier/slack.py,sha256=VJVfMeUXYClWUJBLHNuaW8PB2sxjNzpTC-O_AJwcxQ4,833
46
46
  pydantic_ai_examples/slack_lead_qualifier/store.py,sha256=04vB4eZWKk_Tx0b9K4QuVI1U24JEyJyBS4X76cui7OI,896
47
- pydantic_ai_examples-0.7.2.dist-info/METADATA,sha256=D7knZNmZuE7kHHaImilkCXNgyCEEIpxjNLUyAWk8i9E,2846
48
- pydantic_ai_examples-0.7.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
49
- pydantic_ai_examples-0.7.2.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
50
- pydantic_ai_examples-0.7.2.dist-info/RECORD,,
47
+ pydantic_ai_examples-0.7.3.dist-info/METADATA,sha256=zfVQ-M3peu1O369F6pKItoRqlz8usWSZFv0lH4i7Q-8,2846
48
+ pydantic_ai_examples-0.7.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
49
+ pydantic_ai_examples-0.7.3.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
50
+ pydantic_ai_examples-0.7.3.dist-info/RECORD,,