pydantic-ai-examples 1.47.0__py3-none-any.whl → 1.48.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/ag_ui/api/agentic_generative_ui.py +3 -1
- pydantic_ai_examples/ag_ui/api/shared_state.py +3 -3
- pydantic_ai_examples/data_analyst.py +1 -1
- pydantic_ai_examples/question_graph.py +4 -2
- {pydantic_ai_examples-1.47.0.dist-info → pydantic_ai_examples-1.48.0.dist-info}/METADATA +4 -4
- {pydantic_ai_examples-1.47.0.dist-info → pydantic_ai_examples-1.48.0.dist-info}/RECORD +8 -8
- {pydantic_ai_examples-1.47.0.dist-info → pydantic_ai_examples-1.48.0.dist-info}/WHEEL +0 -0
- {pydantic_ai_examples-1.47.0.dist-info → pydantic_ai_examples-1.48.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -27,7 +27,9 @@ class Step(BaseModel):
|
|
|
27
27
|
class Plan(BaseModel):
|
|
28
28
|
"""Represents a plan with multiple steps."""
|
|
29
29
|
|
|
30
|
-
steps: list[Step] = Field(
|
|
30
|
+
steps: list[Step] = Field(
|
|
31
|
+
default_factory=list[Step], description='The steps in the plan'
|
|
32
|
+
)
|
|
31
33
|
|
|
32
34
|
|
|
33
35
|
class JSONPatchOp(BaseModel):
|
|
@@ -62,18 +62,18 @@ class Recipe(BaseModel):
|
|
|
62
62
|
description='The skill level required for the recipe',
|
|
63
63
|
)
|
|
64
64
|
special_preferences: list[SpecialPreferences] = Field(
|
|
65
|
-
default_factory=list,
|
|
65
|
+
default_factory=list[SpecialPreferences],
|
|
66
66
|
description='Any special preferences for the recipe',
|
|
67
67
|
)
|
|
68
68
|
cooking_time: CookingTime = Field(
|
|
69
69
|
default=CookingTime.FIVE_MIN, description='The cooking time of the recipe'
|
|
70
70
|
)
|
|
71
71
|
ingredients: list[Ingredient] = Field(
|
|
72
|
-
default_factory=list,
|
|
72
|
+
default_factory=list[Ingredient],
|
|
73
73
|
description='Ingredients for the recipe',
|
|
74
74
|
)
|
|
75
75
|
instructions: list[str] = Field(
|
|
76
|
-
default_factory=list, description='Instructions for the recipe'
|
|
76
|
+
default_factory=list[str], description='Instructions for the recipe'
|
|
77
77
|
)
|
|
78
78
|
|
|
79
79
|
|
|
@@ -9,7 +9,7 @@ from pydantic_ai import Agent, ModelRetry, RunContext
|
|
|
9
9
|
|
|
10
10
|
@dataclass
|
|
11
11
|
class AnalystAgentDeps:
|
|
12
|
-
output: dict[str, pd.DataFrame] = field(default_factory=dict)
|
|
12
|
+
output: dict[str, pd.DataFrame] = field(default_factory=dict[str, pd.DataFrame])
|
|
13
13
|
|
|
14
14
|
def store(self, value: pd.DataFrame) -> str:
|
|
15
15
|
"""Store the output in deps and return the reference such as Out[1] to be used by the LLM."""
|
|
@@ -32,8 +32,10 @@ ask_agent = Agent('openai:gpt-5', output_type=str)
|
|
|
32
32
|
@dataclass
|
|
33
33
|
class QuestionState:
|
|
34
34
|
question: str | None = None
|
|
35
|
-
ask_agent_messages: list[ModelMessage] = field(default_factory=list)
|
|
36
|
-
evaluate_agent_messages: list[ModelMessage] = field(
|
|
35
|
+
ask_agent_messages: list[ModelMessage] = field(default_factory=list[ModelMessage])
|
|
36
|
+
evaluate_agent_messages: list[ModelMessage] = field(
|
|
37
|
+
default_factory=list[ModelMessage]
|
|
38
|
+
)
|
|
37
39
|
|
|
38
40
|
|
|
39
41
|
@dataclass
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pydantic-ai-examples
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.48.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
|
|
@@ -31,11 +31,11 @@ Requires-Dist: duckdb>=1.3.2
|
|
|
31
31
|
Requires-Dist: fastapi>=0.115.4
|
|
32
32
|
Requires-Dist: gradio>=5.31.0
|
|
33
33
|
Requires-Dist: logfire[asyncpg,fastapi,httpx,sqlite3]>=3.14.1
|
|
34
|
-
Requires-Dist: mcp[cli]
|
|
34
|
+
Requires-Dist: mcp[cli]<2.0,>=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.48.0
|
|
38
|
+
Requires-Dist: pydantic-evals==1.48.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,11 +3,11 @@ 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=NKXyJmmIAJAA81Cj0-FQB1ypW3iDH0aiMzbPaBgjXKc,3683
|
|
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
|
|
10
|
-
pydantic_ai_examples/question_graph.py,sha256=
|
|
10
|
+
pydantic_ai_examples/question_graph.py,sha256=fQRJDeZnfb5hENbTWGnMTlnfW56wxBnukuUK949etRA,5115
|
|
11
11
|
pydantic_ai_examples/rag.py,sha256=t1um_C3EqX7dhbdopWFqYgHfnKUTyeVWxD3SK7AUdio,8010
|
|
12
12
|
pydantic_ai_examples/roulette_wheel.py,sha256=2YHKbGzYOkLsd98hO3ntjM6pChR1UpmsRrLD36Qh5f0,1654
|
|
13
13
|
pydantic_ai_examples/sql_gen.py,sha256=akgJv4TSImw6O4NRgQZh92QITSmDeEyvoGQcU3oUNFQ,5159
|
|
@@ -19,10 +19,10 @@ pydantic_ai_examples/ag_ui/__init__.py,sha256=ZZs2V-5e9RaLl_7hJAq9-0Juk_f0mk2Vr7
|
|
|
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
|
|
21
21
|
pydantic_ai_examples/ag_ui/api/agentic_chat.py,sha256=QGb7q4AMq5PD1-D-S-71GsMs3wAhH2niUeRryhjL12s,577
|
|
22
|
-
pydantic_ai_examples/ag_ui/api/agentic_generative_ui.py,sha256=
|
|
22
|
+
pydantic_ai_examples/ag_ui/api/agentic_generative_ui.py,sha256=r-w2BIEqGsTjLUdqWrHV5Pf157q4dorJs7pkEnndGrg,3551
|
|
23
23
|
pydantic_ai_examples/ag_ui/api/human_in_the_loop.py,sha256=Jb_0Sryb4mUOZmr1k9MVTciGUAcC8-tzuyNCaCTWZhc,807
|
|
24
24
|
pydantic_ai_examples/ag_ui/api/predictive_state_updates.py,sha256=PO3SZPCzmWowpEPnqez-oLlMRsPD3MnJArpdwDYThO4,2165
|
|
25
|
-
pydantic_ai_examples/ag_ui/api/shared_state.py,sha256=
|
|
25
|
+
pydantic_ai_examples/ag_ui/api/shared_state.py,sha256=iRV3aKVZnPanR2Z2HkIihD5D3ukYURVBk_3IUEG1ifw,3880
|
|
26
26
|
pydantic_ai_examples/ag_ui/api/tool_based_generative_ui.py,sha256=rW0Inzd9_yDqdTE6HmnnF7M-LsR_l4woiwlGbJBHLSM,261
|
|
27
27
|
pydantic_ai_examples/evals/__init__.py,sha256=4f1v2o4F-gnUVtlkZU-dpwwwbLhqRxMcZv676atjNLg,115
|
|
28
28
|
pydantic_ai_examples/evals/agent.py,sha256=o_l6I4DF3HXh7fgsmyz7mViq1ckdFV1Hxq_B7KJPLa0,2041
|
|
@@ -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.48.0.dist-info/METADATA,sha256=CtS3YqIInzme7GL_4fC2Z6tE0GtTG7_1rzcbBi_sO84,2770
|
|
48
|
+
pydantic_ai_examples-1.48.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
49
|
+
pydantic_ai_examples-1.48.0.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
|
|
50
|
+
pydantic_ai_examples-1.48.0.dist-info/RECORD,,
|
|
File without changes
|
{pydantic_ai_examples-1.47.0.dist-info → pydantic_ai_examples-1.48.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|