pydantic-ai-examples 1.11.0__py3-none-any.whl → 1.11.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.
- pydantic_ai_examples/rag.py +2 -2
- {pydantic_ai_examples-1.11.0.dist-info → pydantic_ai_examples-1.11.1.dist-info}/METADATA +3 -3
- {pydantic_ai_examples-1.11.0.dist-info → pydantic_ai_examples-1.11.1.dist-info}/RECORD +5 -5
- {pydantic_ai_examples-1.11.0.dist-info → pydantic_ai_examples-1.11.1.dist-info}/WHEEL +0 -0
- {pydantic_ai_examples-1.11.0.dist-info → pydantic_ai_examples-1.11.1.dist-info}/licenses/LICENSE +0 -0
pydantic_ai_examples/rag.py
CHANGED
|
@@ -115,7 +115,7 @@ async def build_search_db():
|
|
|
115
115
|
async with httpx.AsyncClient() as client:
|
|
116
116
|
response = await client.get(DOCS_JSON)
|
|
117
117
|
response.raise_for_status()
|
|
118
|
-
sections =
|
|
118
|
+
sections = sections_ta.validate_json(response.content)
|
|
119
119
|
|
|
120
120
|
openai = AsyncOpenAI()
|
|
121
121
|
logfire.instrument_openai(openai)
|
|
@@ -183,7 +183,7 @@ class DocsSection:
|
|
|
183
183
|
return '\n\n'.join((f'path: {self.path}', f'title: {self.title}', self.content))
|
|
184
184
|
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
sections_ta = TypeAdapter(list[DocsSection])
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
# pyright: reportUnknownMemberType=false
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pydantic-ai-examples
|
|
3
|
-
Version: 1.11.
|
|
3
|
+
Version: 1.11.1
|
|
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
|
|
@@ -34,8 +34,8 @@ Requires-Dist: logfire[asyncpg,fastapi,httpx,sqlite3]>=3.14.1
|
|
|
34
34
|
Requires-Dist: mcp[cli]>=1.4.1
|
|
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.11.
|
|
38
|
-
Requires-Dist: pydantic-evals==1.11.
|
|
37
|
+
Requires-Dist: pydantic-ai-slim[ag-ui,anthropic,groq,openai,vertexai]==1.11.1
|
|
38
|
+
Requires-Dist: pydantic-evals==1.11.1
|
|
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
|
|
@@ -8,7 +8,7 @@ pydantic_ai_examples/flight_booking.py,sha256=x8FbztbAiqNdDACzal1O5M80syjt8UuGm_
|
|
|
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
10
|
pydantic_ai_examples/question_graph.py,sha256=ERjlfHxKXswISed6TJtj60SFoTIYe-PyCTZoYR4OJkY,5073
|
|
11
|
-
pydantic_ai_examples/rag.py,sha256=
|
|
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
|
|
14
14
|
pydantic_ai_examples/stream_markdown.py,sha256=4uEK6dzC9jVcQTRaYBEDzYfYAJPYHZWfLJ-ZMtmI8y4,2453
|
|
@@ -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.11.
|
|
48
|
-
pydantic_ai_examples-1.11.
|
|
49
|
-
pydantic_ai_examples-1.11.
|
|
50
|
-
pydantic_ai_examples-1.11.
|
|
47
|
+
pydantic_ai_examples-1.11.1.dist-info/METADATA,sha256=kDYdstutdPyElRpWtts9E6UO9YcRKySxbAGWJquoZ_Q,2763
|
|
48
|
+
pydantic_ai_examples-1.11.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
49
|
+
pydantic_ai_examples-1.11.1.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
|
|
50
|
+
pydantic_ai_examples-1.11.1.dist-info/RECORD,,
|
|
File without changes
|
{pydantic_ai_examples-1.11.0.dist-info → pydantic_ai_examples-1.11.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|