pydantic-ai-slim 1.12.0__tar.gz
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_slim-1.12.0/.gitignore +23 -0
- pydantic_ai_slim-1.12.0/LICENSE +21 -0
- pydantic_ai_slim-1.12.0/PKG-INFO +118 -0
- pydantic_ai_slim-1.12.0/README.md +11 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/__init__.py +239 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/__main__.py +6 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_a2a.py +306 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_agent_graph.py +1278 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_cli.py +365 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_function_schema.py +303 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_griffe.py +174 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_instrumentation.py +95 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_json_schema.py +190 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_mcp.py +123 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_otel_messages.py +69 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_output.py +1015 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_parts_manager.py +386 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_run_context.py +69 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_system_prompt.py +35 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_thinking_part.py +31 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_tool_manager.py +272 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/_utils.py +509 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ag_ui.py +163 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/agent/__init__.py +1523 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/agent/abstract.py +1374 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/agent/wrapper.py +252 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/builtin_tools.py +341 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/common_tools/__init__.py +0 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/common_tools/duckduckgo.py +76 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/common_tools/tavily.py +81 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/direct.py +402 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/__init__.py +0 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/dbos/__init__.py +6 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/dbos/_agent.py +900 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/dbos/_mcp_server.py +90 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/dbos/_model.py +137 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/dbos/_utils.py +10 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/prefect/__init__.py +15 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/prefect/_agent.py +861 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/prefect/_cache_policies.py +102 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/prefect/_function_toolset.py +58 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/prefect/_mcp_server.py +60 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/prefect/_model.py +152 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/prefect/_toolset.py +67 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/prefect/_types.py +44 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/temporal/__init__.py +149 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/temporal/_agent.py +961 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/temporal/_function_toolset.py +97 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/temporal/_logfire.py +63 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/temporal/_mcp_server.py +146 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/temporal/_model.py +188 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/temporal/_run_context.py +58 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/durable_exec/temporal/_toolset.py +145 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/exceptions.py +175 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ext/__init__.py +0 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ext/aci.py +76 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ext/langchain.py +71 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/format_prompt.py +208 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/mcp.py +956 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/messages.py +1789 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/__init__.py +986 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/anthropic.py +959 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/bedrock.py +758 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/cohere.py +353 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/fallback.py +158 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/function.py +417 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/gemini.py +965 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/google.py +964 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/groq.py +703 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/huggingface.py +529 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/instrumented.py +535 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/mcp_sampling.py +99 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/mistral.py +788 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/openai.py +2311 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/outlines.py +572 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/test.py +514 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/models/wrapper.py +74 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/output.py +390 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/__init__.py +82 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/amazon.py +8 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/anthropic.py +8 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/cohere.py +8 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/deepseek.py +8 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/google.py +106 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/grok.py +8 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/groq.py +23 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/harmony.py +15 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/meta.py +8 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/mistral.py +8 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/moonshotai.py +8 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/openai.py +240 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/profiles/qwen.py +19 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/__init__.py +169 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/anthropic.py +85 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/azure.py +141 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/bedrock.py +215 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/cerebras.py +96 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/cohere.py +75 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/deepseek.py +81 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/fireworks.py +99 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/gateway.py +184 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/github.py +112 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/google.py +223 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/google_gla.py +52 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/google_vertex.py +240 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/grok.py +94 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/groq.py +130 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/heroku.py +82 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/huggingface.py +115 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/litellm.py +134 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/mistral.py +81 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/moonshotai.py +94 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/nebius.py +102 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/ollama.py +107 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/openai.py +85 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/openrouter.py +110 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/outlines.py +40 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/ovhcloud.py +95 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/together.py +96 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/providers/vercel.py +113 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/py.typed +0 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/result.py +764 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/retries.py +382 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/run.py +399 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/settings.py +185 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/tools.py +512 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/__init__.py +27 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/_dynamic.py +87 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/abstract.py +191 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/approval_required.py +32 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/combined.py +99 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/external.py +52 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/fastmcp.py +215 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/filtered.py +24 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/function.py +350 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/prefixed.py +41 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/prepared.py +36 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/renamed.py +42 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/toolsets/wrapper.py +51 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/__init__.py +16 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/_adapter.py +386 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/_event_stream.py +591 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/_messages_builder.py +28 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/ag_ui/__init__.py +9 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/ag_ui/_adapter.py +187 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/ag_ui/_event_stream.py +236 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/ag_ui/app.py +148 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/vercel_ai/__init__.py +16 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/vercel_ai/_adapter.py +199 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/vercel_ai/_event_stream.py +187 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/vercel_ai/_utils.py +16 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/vercel_ai/request_types.py +275 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/ui/vercel_ai/response_types.py +230 -0
- pydantic_ai_slim-1.12.0/pydantic_ai/usage.py +397 -0
- pydantic_ai_slim-1.12.0/pyproject.toml +125 -0
- pydantic_ai_slim-1.12.0/venv +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
site
|
|
2
|
+
.venv
|
|
3
|
+
dist
|
|
4
|
+
__pycache__
|
|
5
|
+
.env
|
|
6
|
+
.dev.vars
|
|
7
|
+
/scratch/
|
|
8
|
+
/.coverage
|
|
9
|
+
env*/
|
|
10
|
+
/TODO.md
|
|
11
|
+
/postgres-data/
|
|
12
|
+
.DS_Store
|
|
13
|
+
.chat_app_messages.sqlite
|
|
14
|
+
.cache/
|
|
15
|
+
.vscode/
|
|
16
|
+
/question_graph_history.json
|
|
17
|
+
/docs-site/.wrangler/
|
|
18
|
+
node_modules/
|
|
19
|
+
**.idea/
|
|
20
|
+
.coverage*
|
|
21
|
+
/test_tmp/
|
|
22
|
+
.mcp.json
|
|
23
|
+
.claude/
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Pydantic Services Inc. 2024 to present
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pydantic-ai-slim
|
|
3
|
+
Version: 1.12.0
|
|
4
|
+
Summary: Agent Framework / shim to use Pydantic with LLMs, slim package
|
|
5
|
+
Project-URL: Homepage, https://github.com/pydantic/pydantic-ai/tree/main/pydantic_ai_slim
|
|
6
|
+
Project-URL: Source, https://github.com/pydantic/pydantic-ai/tree/main/pydantic_ai_slim
|
|
7
|
+
Project-URL: Documentation, https://ai.pydantic.dev/install/#slim-install
|
|
8
|
+
Project-URL: Changelog, https://github.com/pydantic/pydantic-ai/releases
|
|
9
|
+
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>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Environment :: MacOS X
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Intended Audience :: Information Technology
|
|
17
|
+
Classifier: Intended Audience :: System Administrators
|
|
18
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
19
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
20
|
+
Classifier: Operating System :: Unix
|
|
21
|
+
Classifier: Programming Language :: Python
|
|
22
|
+
Classifier: Programming Language :: Python :: 3
|
|
23
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
28
|
+
Classifier: Topic :: Internet
|
|
29
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
|
+
Requires-Python: >=3.10
|
|
31
|
+
Requires-Dist: exceptiongroup; python_version < '3.11'
|
|
32
|
+
Requires-Dist: genai-prices>=0.0.35
|
|
33
|
+
Requires-Dist: griffe>=1.3.2
|
|
34
|
+
Requires-Dist: httpx>=0.27
|
|
35
|
+
Requires-Dist: opentelemetry-api>=1.28.0
|
|
36
|
+
Requires-Dist: pydantic-graph==1.12.0
|
|
37
|
+
Requires-Dist: pydantic>=2.10
|
|
38
|
+
Requires-Dist: typing-inspection>=0.4.0
|
|
39
|
+
Provides-Extra: a2a
|
|
40
|
+
Requires-Dist: fasta2a>=0.4.1; extra == 'a2a'
|
|
41
|
+
Provides-Extra: ag-ui
|
|
42
|
+
Requires-Dist: ag-ui-protocol>=0.1.8; extra == 'ag-ui'
|
|
43
|
+
Requires-Dist: starlette>=0.45.3; extra == 'ag-ui'
|
|
44
|
+
Provides-Extra: anthropic
|
|
45
|
+
Requires-Dist: anthropic>=0.70.0; extra == 'anthropic'
|
|
46
|
+
Provides-Extra: bedrock
|
|
47
|
+
Requires-Dist: boto3>=1.39.0; extra == 'bedrock'
|
|
48
|
+
Provides-Extra: cli
|
|
49
|
+
Requires-Dist: argcomplete>=3.5.0; extra == 'cli'
|
|
50
|
+
Requires-Dist: prompt-toolkit>=3; extra == 'cli'
|
|
51
|
+
Requires-Dist: pyperclip>=1.9.0; extra == 'cli'
|
|
52
|
+
Requires-Dist: rich>=13; extra == 'cli'
|
|
53
|
+
Provides-Extra: cohere
|
|
54
|
+
Requires-Dist: cohere>=5.18.0; (platform_system != 'Emscripten') and extra == 'cohere'
|
|
55
|
+
Provides-Extra: dbos
|
|
56
|
+
Requires-Dist: dbos>=1.14.0; extra == 'dbos'
|
|
57
|
+
Provides-Extra: duckduckgo
|
|
58
|
+
Requires-Dist: ddgs>=9.0.0; extra == 'duckduckgo'
|
|
59
|
+
Provides-Extra: evals
|
|
60
|
+
Requires-Dist: pydantic-evals==1.12.0; extra == 'evals'
|
|
61
|
+
Provides-Extra: fastmcp
|
|
62
|
+
Requires-Dist: fastmcp>=2.12.0; extra == 'fastmcp'
|
|
63
|
+
Provides-Extra: google
|
|
64
|
+
Requires-Dist: google-genai>=1.46.0; extra == 'google'
|
|
65
|
+
Provides-Extra: groq
|
|
66
|
+
Requires-Dist: groq>=0.25.0; extra == 'groq'
|
|
67
|
+
Provides-Extra: huggingface
|
|
68
|
+
Requires-Dist: huggingface-hub[inference]>=0.33.5; extra == 'huggingface'
|
|
69
|
+
Provides-Extra: logfire
|
|
70
|
+
Requires-Dist: logfire[httpx]>=3.14.1; extra == 'logfire'
|
|
71
|
+
Provides-Extra: mcp
|
|
72
|
+
Requires-Dist: mcp>=1.12.3; extra == 'mcp'
|
|
73
|
+
Provides-Extra: mistral
|
|
74
|
+
Requires-Dist: mistralai>=1.9.10; extra == 'mistral'
|
|
75
|
+
Provides-Extra: openai
|
|
76
|
+
Requires-Dist: openai>=1.107.2; extra == 'openai'
|
|
77
|
+
Provides-Extra: outlines-llamacpp
|
|
78
|
+
Requires-Dist: outlines[llamacpp]<1.3.0,>=1.0.0; extra == 'outlines-llamacpp'
|
|
79
|
+
Provides-Extra: outlines-mlxlm
|
|
80
|
+
Requires-Dist: outlines[mlxlm]<1.3.0,>=1.0.0; (sys_platform != 'darwin' or platform_machine != 'x86_64') and extra == 'outlines-mlxlm'
|
|
81
|
+
Provides-Extra: outlines-sglang
|
|
82
|
+
Requires-Dist: outlines[sglang]<1.3.0,>=1.0.0; extra == 'outlines-sglang'
|
|
83
|
+
Requires-Dist: pillow; extra == 'outlines-sglang'
|
|
84
|
+
Provides-Extra: outlines-transformers
|
|
85
|
+
Requires-Dist: outlines[transformers]<1.3.0,>=1.0.0; (sys_platform != 'darwin' or platform_machine != 'x86_64') and extra == 'outlines-transformers'
|
|
86
|
+
Requires-Dist: pillow; extra == 'outlines-transformers'
|
|
87
|
+
Requires-Dist: torch; (sys_platform != 'darwin' or platform_machine != 'x86_64') and extra == 'outlines-transformers'
|
|
88
|
+
Requires-Dist: transformers>=4.0.0; extra == 'outlines-transformers'
|
|
89
|
+
Provides-Extra: outlines-vllm-offline
|
|
90
|
+
Requires-Dist: outlines<1.3.0,>=1.0.0; extra == 'outlines-vllm-offline'
|
|
91
|
+
Requires-Dist: torch; (sys_platform != 'darwin' or platform_machine != 'x86_64') and extra == 'outlines-vllm-offline'
|
|
92
|
+
Requires-Dist: vllm; (python_version < '3.12' and (sys_platform != 'darwin' or platform_machine != 'x86_64')) and extra == 'outlines-vllm-offline'
|
|
93
|
+
Provides-Extra: prefect
|
|
94
|
+
Requires-Dist: prefect>=3.4.21; extra == 'prefect'
|
|
95
|
+
Provides-Extra: retries
|
|
96
|
+
Requires-Dist: tenacity>=8.2.3; extra == 'retries'
|
|
97
|
+
Provides-Extra: tavily
|
|
98
|
+
Requires-Dist: tavily-python>=0.5.0; extra == 'tavily'
|
|
99
|
+
Provides-Extra: temporal
|
|
100
|
+
Requires-Dist: temporalio==1.18.2; extra == 'temporal'
|
|
101
|
+
Provides-Extra: ui
|
|
102
|
+
Requires-Dist: starlette>=0.45.3; extra == 'ui'
|
|
103
|
+
Provides-Extra: vertexai
|
|
104
|
+
Requires-Dist: google-auth>=2.36.0; extra == 'vertexai'
|
|
105
|
+
Requires-Dist: requests>=2.32.2; extra == 'vertexai'
|
|
106
|
+
Description-Content-Type: text/markdown
|
|
107
|
+
|
|
108
|
+
# Pydantic AI Slim
|
|
109
|
+
|
|
110
|
+
[](https://github.com/pydantic/pydantic-ai/actions/workflows/ci.yml?query=branch%3Amain)
|
|
111
|
+
[](https://coverage-badge.samuelcolvin.workers.dev/redirect/pydantic/pydantic-ai)
|
|
112
|
+
[](https://pypi.python.org/pypi/pydantic-ai-slim)
|
|
113
|
+
[](https://github.com/pydantic/pydantic-ai)
|
|
114
|
+
[](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE)
|
|
115
|
+
|
|
116
|
+
Pydantic AI core logic with minimal required dependencies.
|
|
117
|
+
|
|
118
|
+
For more information on how to use this package see [ai.pydantic.dev/install](https://ai.pydantic.dev/install/).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Pydantic AI Slim
|
|
2
|
+
|
|
3
|
+
[](https://github.com/pydantic/pydantic-ai/actions/workflows/ci.yml?query=branch%3Amain)
|
|
4
|
+
[](https://coverage-badge.samuelcolvin.workers.dev/redirect/pydantic/pydantic-ai)
|
|
5
|
+
[](https://pypi.python.org/pypi/pydantic-ai-slim)
|
|
6
|
+
[](https://github.com/pydantic/pydantic-ai)
|
|
7
|
+
[](https://github.com/pydantic/pydantic-ai/blob/main/LICENSE)
|
|
8
|
+
|
|
9
|
+
Pydantic AI core logic with minimal required dependencies.
|
|
10
|
+
|
|
11
|
+
For more information on how to use this package see [ai.pydantic.dev/install](https://ai.pydantic.dev/install/).
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
from importlib.metadata import version as _metadata_version
|
|
2
|
+
|
|
3
|
+
from .agent import (
|
|
4
|
+
Agent,
|
|
5
|
+
CallToolsNode,
|
|
6
|
+
EndStrategy,
|
|
7
|
+
InstrumentationSettings,
|
|
8
|
+
ModelRequestNode,
|
|
9
|
+
UserPromptNode,
|
|
10
|
+
capture_run_messages,
|
|
11
|
+
)
|
|
12
|
+
from .builtin_tools import (
|
|
13
|
+
CodeExecutionTool,
|
|
14
|
+
ImageGenerationTool,
|
|
15
|
+
MCPServerTool,
|
|
16
|
+
MemoryTool,
|
|
17
|
+
UrlContextTool,
|
|
18
|
+
WebSearchTool,
|
|
19
|
+
WebSearchUserLocation,
|
|
20
|
+
)
|
|
21
|
+
from .exceptions import (
|
|
22
|
+
AgentRunError,
|
|
23
|
+
ApprovalRequired,
|
|
24
|
+
CallDeferred,
|
|
25
|
+
FallbackExceptionGroup,
|
|
26
|
+
IncompleteToolCall,
|
|
27
|
+
ModelHTTPError,
|
|
28
|
+
ModelRetry,
|
|
29
|
+
UnexpectedModelBehavior,
|
|
30
|
+
UsageLimitExceeded,
|
|
31
|
+
UserError,
|
|
32
|
+
)
|
|
33
|
+
from .format_prompt import format_as_xml
|
|
34
|
+
from .messages import (
|
|
35
|
+
AgentStreamEvent,
|
|
36
|
+
AudioFormat,
|
|
37
|
+
AudioMediaType,
|
|
38
|
+
AudioUrl,
|
|
39
|
+
BaseToolCallPart,
|
|
40
|
+
BaseToolReturnPart,
|
|
41
|
+
BinaryContent,
|
|
42
|
+
BinaryImage,
|
|
43
|
+
BuiltinToolCallPart,
|
|
44
|
+
BuiltinToolReturnPart,
|
|
45
|
+
DocumentFormat,
|
|
46
|
+
DocumentMediaType,
|
|
47
|
+
DocumentUrl,
|
|
48
|
+
FilePart,
|
|
49
|
+
FileUrl,
|
|
50
|
+
FinalResultEvent,
|
|
51
|
+
FinishReason,
|
|
52
|
+
FunctionToolCallEvent,
|
|
53
|
+
FunctionToolResultEvent,
|
|
54
|
+
HandleResponseEvent,
|
|
55
|
+
ImageFormat,
|
|
56
|
+
ImageMediaType,
|
|
57
|
+
ImageUrl,
|
|
58
|
+
ModelMessage,
|
|
59
|
+
ModelMessagesTypeAdapter,
|
|
60
|
+
ModelRequest,
|
|
61
|
+
ModelRequestPart,
|
|
62
|
+
ModelResponse,
|
|
63
|
+
ModelResponsePart,
|
|
64
|
+
ModelResponsePartDelta,
|
|
65
|
+
ModelResponseStreamEvent,
|
|
66
|
+
MultiModalContent,
|
|
67
|
+
PartDeltaEvent,
|
|
68
|
+
PartEndEvent,
|
|
69
|
+
PartStartEvent,
|
|
70
|
+
RetryPromptPart,
|
|
71
|
+
SystemPromptPart,
|
|
72
|
+
TextPart,
|
|
73
|
+
TextPartDelta,
|
|
74
|
+
ThinkingPart,
|
|
75
|
+
ThinkingPartDelta,
|
|
76
|
+
ToolCallPart,
|
|
77
|
+
ToolCallPartDelta,
|
|
78
|
+
ToolReturn,
|
|
79
|
+
ToolReturnPart,
|
|
80
|
+
UserContent,
|
|
81
|
+
UserPromptPart,
|
|
82
|
+
VideoFormat,
|
|
83
|
+
VideoMediaType,
|
|
84
|
+
VideoUrl,
|
|
85
|
+
)
|
|
86
|
+
from .output import NativeOutput, PromptedOutput, StructuredDict, TextOutput, ToolOutput
|
|
87
|
+
from .profiles import (
|
|
88
|
+
DEFAULT_PROFILE,
|
|
89
|
+
InlineDefsJsonSchemaTransformer,
|
|
90
|
+
JsonSchemaTransformer,
|
|
91
|
+
ModelProfile,
|
|
92
|
+
ModelProfileSpec,
|
|
93
|
+
)
|
|
94
|
+
from .run import AgentRun, AgentRunResult, AgentRunResultEvent
|
|
95
|
+
from .settings import ModelSettings
|
|
96
|
+
from .tools import DeferredToolRequests, DeferredToolResults, RunContext, Tool, ToolApproved, ToolDefinition, ToolDenied
|
|
97
|
+
from .toolsets import (
|
|
98
|
+
AbstractToolset,
|
|
99
|
+
ApprovalRequiredToolset,
|
|
100
|
+
CombinedToolset,
|
|
101
|
+
ExternalToolset,
|
|
102
|
+
FilteredToolset,
|
|
103
|
+
FunctionToolset,
|
|
104
|
+
PrefixedToolset,
|
|
105
|
+
PreparedToolset,
|
|
106
|
+
RenamedToolset,
|
|
107
|
+
ToolsetFunc,
|
|
108
|
+
ToolsetTool,
|
|
109
|
+
WrapperToolset,
|
|
110
|
+
)
|
|
111
|
+
from .usage import RequestUsage, RunUsage, UsageLimits
|
|
112
|
+
|
|
113
|
+
__all__ = (
|
|
114
|
+
'__version__',
|
|
115
|
+
# agent
|
|
116
|
+
'Agent',
|
|
117
|
+
'EndStrategy',
|
|
118
|
+
'CallToolsNode',
|
|
119
|
+
'ModelRequestNode',
|
|
120
|
+
'UserPromptNode',
|
|
121
|
+
'capture_run_messages',
|
|
122
|
+
'InstrumentationSettings',
|
|
123
|
+
# exceptions
|
|
124
|
+
'AgentRunError',
|
|
125
|
+
'CallDeferred',
|
|
126
|
+
'ApprovalRequired',
|
|
127
|
+
'ModelRetry',
|
|
128
|
+
'ModelHTTPError',
|
|
129
|
+
'FallbackExceptionGroup',
|
|
130
|
+
'IncompleteToolCall',
|
|
131
|
+
'UnexpectedModelBehavior',
|
|
132
|
+
'UsageLimitExceeded',
|
|
133
|
+
'UserError',
|
|
134
|
+
# messages
|
|
135
|
+
'AgentStreamEvent',
|
|
136
|
+
'AudioFormat',
|
|
137
|
+
'AudioMediaType',
|
|
138
|
+
'AudioUrl',
|
|
139
|
+
'BaseToolCallPart',
|
|
140
|
+
'BaseToolReturnPart',
|
|
141
|
+
'BinaryContent',
|
|
142
|
+
'BuiltinToolCallPart',
|
|
143
|
+
'BuiltinToolReturnPart',
|
|
144
|
+
'DocumentFormat',
|
|
145
|
+
'DocumentMediaType',
|
|
146
|
+
'DocumentUrl',
|
|
147
|
+
'FileUrl',
|
|
148
|
+
'FilePart',
|
|
149
|
+
'FinalResultEvent',
|
|
150
|
+
'FinishReason',
|
|
151
|
+
'FunctionToolCallEvent',
|
|
152
|
+
'FunctionToolResultEvent',
|
|
153
|
+
'HandleResponseEvent',
|
|
154
|
+
'ImageFormat',
|
|
155
|
+
'ImageMediaType',
|
|
156
|
+
'ImageUrl',
|
|
157
|
+
'BinaryImage',
|
|
158
|
+
'ModelMessage',
|
|
159
|
+
'ModelMessagesTypeAdapter',
|
|
160
|
+
'ModelRequest',
|
|
161
|
+
'ModelRequestPart',
|
|
162
|
+
'ModelResponse',
|
|
163
|
+
'ModelResponsePart',
|
|
164
|
+
'ModelResponsePartDelta',
|
|
165
|
+
'ModelResponseStreamEvent',
|
|
166
|
+
'MultiModalContent',
|
|
167
|
+
'PartDeltaEvent',
|
|
168
|
+
'PartEndEvent',
|
|
169
|
+
'PartStartEvent',
|
|
170
|
+
'RetryPromptPart',
|
|
171
|
+
'SystemPromptPart',
|
|
172
|
+
'TextPart',
|
|
173
|
+
'TextPartDelta',
|
|
174
|
+
'ThinkingPart',
|
|
175
|
+
'ThinkingPartDelta',
|
|
176
|
+
'ToolCallPart',
|
|
177
|
+
'ToolCallPartDelta',
|
|
178
|
+
'ToolReturn',
|
|
179
|
+
'ToolReturnPart',
|
|
180
|
+
'UserContent',
|
|
181
|
+
'UserPromptPart',
|
|
182
|
+
'VideoFormat',
|
|
183
|
+
'VideoMediaType',
|
|
184
|
+
'VideoUrl',
|
|
185
|
+
# profiles
|
|
186
|
+
'ModelProfile',
|
|
187
|
+
'ModelProfileSpec',
|
|
188
|
+
'DEFAULT_PROFILE',
|
|
189
|
+
'InlineDefsJsonSchemaTransformer',
|
|
190
|
+
'JsonSchemaTransformer',
|
|
191
|
+
# tools
|
|
192
|
+
'Tool',
|
|
193
|
+
'ToolDefinition',
|
|
194
|
+
'RunContext',
|
|
195
|
+
'DeferredToolRequests',
|
|
196
|
+
'DeferredToolResults',
|
|
197
|
+
'ToolApproved',
|
|
198
|
+
'ToolDenied',
|
|
199
|
+
# toolsets
|
|
200
|
+
'AbstractToolset',
|
|
201
|
+
'ApprovalRequiredToolset',
|
|
202
|
+
'CombinedToolset',
|
|
203
|
+
'ExternalToolset',
|
|
204
|
+
'FilteredToolset',
|
|
205
|
+
'FunctionToolset',
|
|
206
|
+
'PrefixedToolset',
|
|
207
|
+
'PreparedToolset',
|
|
208
|
+
'RenamedToolset',
|
|
209
|
+
'ToolsetFunc',
|
|
210
|
+
'ToolsetTool',
|
|
211
|
+
'WrapperToolset',
|
|
212
|
+
# builtin_tools
|
|
213
|
+
'WebSearchTool',
|
|
214
|
+
'WebSearchUserLocation',
|
|
215
|
+
'UrlContextTool',
|
|
216
|
+
'CodeExecutionTool',
|
|
217
|
+
'ImageGenerationTool',
|
|
218
|
+
'MemoryTool',
|
|
219
|
+
'MCPServerTool',
|
|
220
|
+
# output
|
|
221
|
+
'ToolOutput',
|
|
222
|
+
'NativeOutput',
|
|
223
|
+
'PromptedOutput',
|
|
224
|
+
'TextOutput',
|
|
225
|
+
'StructuredDict',
|
|
226
|
+
# format_prompt
|
|
227
|
+
'format_as_xml',
|
|
228
|
+
# settings
|
|
229
|
+
'ModelSettings',
|
|
230
|
+
# usage
|
|
231
|
+
'RunUsage',
|
|
232
|
+
'RequestUsage',
|
|
233
|
+
'UsageLimits',
|
|
234
|
+
# run
|
|
235
|
+
'AgentRun',
|
|
236
|
+
'AgentRunResult',
|
|
237
|
+
'AgentRunResultEvent',
|
|
238
|
+
)
|
|
239
|
+
__version__ = _metadata_version('pydantic_ai_slim')
|