pydantic-ai-examples 1.32.0__py3-none-any.whl → 1.46.0__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.
- pydantic_ai_examples/data_analyst.py +2 -2
- pydantic_ai_examples/weather_agent_gradio.py +0 -1
- {pydantic_ai_examples-1.32.0.dist-info → pydantic_ai_examples-1.46.0.dist-info}/METADATA +5 -5
- {pydantic_ai_examples-1.32.0.dist-info → pydantic_ai_examples-1.46.0.dist-info}/RECORD +6 -6
- {pydantic_ai_examples-1.32.0.dist-info → pydantic_ai_examples-1.46.0.dist-info}/WHEEL +0 -0
- {pydantic_ai_examples-1.32.0.dist-info → pydantic_ai_examples-1.46.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -47,7 +47,7 @@ def load_dataset(
|
|
|
47
47
|
"""
|
|
48
48
|
# begin load data from hf
|
|
49
49
|
builder = datasets.load_dataset_builder(path) # pyright: ignore[reportUnknownMemberType]
|
|
50
|
-
splits: dict[str, datasets.SplitInfo] = builder.info.splits or {}
|
|
50
|
+
splits: dict[str, datasets.SplitInfo] = builder.info.splits or {}
|
|
51
51
|
if split not in splits:
|
|
52
52
|
raise ModelRetry(
|
|
53
53
|
f'{split} is not valid for dataset {path}. Valid splits are {",".join(splits.keys())}'
|
|
@@ -87,7 +87,7 @@ def run_duckdb(ctx: RunContext[AnalystAgentDeps], dataset: str, sql: str) -> str
|
|
|
87
87
|
data = ctx.deps.get(dataset)
|
|
88
88
|
result = duckdb.query_df(df=data, virtual_table_name='dataset', sql_query=sql)
|
|
89
89
|
# pass the result as ref (because DuckDB SQL can select many rows, creating another huge dataframe)
|
|
90
|
-
ref = ctx.deps.store(result.df())
|
|
90
|
+
ref = ctx.deps.store(result.df())
|
|
91
91
|
return f'Executed SQL, result is `{ref}`'
|
|
92
92
|
|
|
93
93
|
|
|
@@ -99,7 +99,6 @@ with gr.Blocks() as demo:
|
|
|
99
99
|
past_messages = gr.State([])
|
|
100
100
|
chatbot = gr.Chatbot(
|
|
101
101
|
label='Packing Assistant',
|
|
102
|
-
type='messages',
|
|
103
102
|
avatar_images=(None, 'https://ai.pydantic.dev/img/logo-white.svg'),
|
|
104
103
|
examples=[
|
|
105
104
|
{'text': 'What is the weather like in Miami?'},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pydantic-ai-examples
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.46.0
|
|
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
|
|
@@ -29,13 +29,13 @@ Requires-Dist: datasets>=4.0.0
|
|
|
29
29
|
Requires-Dist: devtools>=0.12.2
|
|
30
30
|
Requires-Dist: duckdb>=1.3.2
|
|
31
31
|
Requires-Dist: fastapi>=0.115.4
|
|
32
|
-
Requires-Dist: gradio>=5.
|
|
32
|
+
Requires-Dist: gradio>=5.31.0
|
|
33
33
|
Requires-Dist: logfire[asyncpg,fastapi,httpx,sqlite3]>=3.14.1
|
|
34
|
-
Requires-Dist: mcp[cli]>=1.
|
|
34
|
+
Requires-Dist: mcp[cli]>=1.25.0
|
|
35
35
|
Requires-Dist: modal>=1.0.4
|
|
36
36
|
Requires-Dist: pandas>=2.2.3
|
|
37
|
-
Requires-Dist: pydantic-ai-slim[ag-ui,anthropic,groq,openai,vertexai]==1.
|
|
38
|
-
Requires-Dist: pydantic-evals==1.
|
|
37
|
+
Requires-Dist: pydantic-ai-slim[ag-ui,anthropic,groq,openai,vertexai]==1.46.0
|
|
38
|
+
Requires-Dist: pydantic-evals==1.46.0
|
|
39
39
|
Requires-Dist: python-multipart>=0.0.17
|
|
40
40
|
Requires-Dist: rich>=13.9.2
|
|
41
41
|
Requires-Dist: uvicorn>=0.32.0
|
|
@@ -3,7 +3,7 @@ pydantic_ai_examples/bank_support.py,sha256=5y53eLwfRUu1Ys_qQxd8hzbSMbnkCnd5Cx27
|
|
|
3
3
|
pydantic_ai_examples/chat_app.html,sha256=90XhxrpDAT09mPVTn9edEn8PqAD-tHxWkeeMz9r_okQ,2580
|
|
4
4
|
pydantic_ai_examples/chat_app.py,sha256=AX28rI0TR9lTPLDOd0uEkmirvfIZCRyCGr_VdGiOkHM,7053
|
|
5
5
|
pydantic_ai_examples/chat_app.ts,sha256=2KfZ2rJU2o0iCPjelyqEi5sH6vfemzWaa5Evx_VcAE4,3307
|
|
6
|
-
pydantic_ai_examples/data_analyst.py,sha256=
|
|
6
|
+
pydantic_ai_examples/data_analyst.py,sha256=dPurkmDLD3q93EPnAFpujYEp29hFGtOCwYQMTB_eCJM,3664
|
|
7
7
|
pydantic_ai_examples/flight_booking.py,sha256=x8FbztbAiqNdDACzal1O5M80syjt8UuGm_wqHpybeQM,7415
|
|
8
8
|
pydantic_ai_examples/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
pydantic_ai_examples/pydantic_model.py,sha256=4u_-sdpKSF_lRMLSI-WVYwsyIxgdOpq-8LSCJunoyvA,774
|
|
@@ -14,7 +14,7 @@ pydantic_ai_examples/sql_gen.py,sha256=akgJv4TSImw6O4NRgQZh92QITSmDeEyvoGQcU3oUN
|
|
|
14
14
|
pydantic_ai_examples/stream_markdown.py,sha256=4uEK6dzC9jVcQTRaYBEDzYfYAJPYHZWfLJ-ZMtmI8y4,2453
|
|
15
15
|
pydantic_ai_examples/stream_whales.py,sha256=Yoa7IuqN_6fowfYSINW39uPCthYu9FKChF-QBmQqWb8,2721
|
|
16
16
|
pydantic_ai_examples/weather_agent.py,sha256=FZF7pgL2U24m-ymFUw6MnqASVpXOfl49ilrYAtZXlOo,3185
|
|
17
|
-
pydantic_ai_examples/weather_agent_gradio.py,sha256=
|
|
17
|
+
pydantic_ai_examples/weather_agent_gradio.py,sha256=sLYZhEf4dzV1BaAR46Lxcr_UOar3YoodD8EtlZQtZm4,4694
|
|
18
18
|
pydantic_ai_examples/ag_ui/__init__.py,sha256=ZZs2V-5e9RaLl_7hJAq9-0Juk_f0mk2Vr7a4QT2QB-k,1174
|
|
19
19
|
pydantic_ai_examples/ag_ui/__main__.py,sha256=PMycatJt8Abb-Q8HXRGZoEY6vnOcvRebH7iI9MxLknA,225
|
|
20
20
|
pydantic_ai_examples/ag_ui/api/__init__.py,sha256=Pe307_ET_ERKBP-8Vs4L1yZRkK3ILPpajwxDpeW8YiI,673
|
|
@@ -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-1.
|
|
48
|
-
pydantic_ai_examples-1.
|
|
49
|
-
pydantic_ai_examples-1.
|
|
50
|
-
pydantic_ai_examples-1.
|
|
47
|
+
pydantic_ai_examples-1.46.0.dist-info/METADATA,sha256=hG6225RoBiXA6A7U_I0Pg3GWbGjqWs30Yb6e8TvoYEM,2765
|
|
48
|
+
pydantic_ai_examples-1.46.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
49
|
+
pydantic_ai_examples-1.46.0.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
|
|
50
|
+
pydantic_ai_examples-1.46.0.dist-info/RECORD,,
|
|
File without changes
|
{pydantic_ai_examples-1.32.0.dist-info → pydantic_ai_examples-1.46.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|