Skip to content

Commit 90137ff

Browse files
committed
chore(ag-ui): add ag-ui to pydantic-ai-slim extras
Add ag-ui to the list of extras in pydantic-ai-slim to ensure that the adapter_ag_ui package is included when installing pydantic-ai-slim with all extras, fixing the issue where mkdocs fails to build due to missing dependencies.
1 parent aa59389 commit 90137ff

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

docs/ag-ui.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,23 @@ You can run the example with:
5050
uvicorn agent_to_ag_ui:app --host 0.0.0.0 --port 8000
5151
```
5252

53-
This will expose the agent as an AG-UI server, and you can start sending requests to it.
54-
55-
See more about [exposing PydanticAI agents as AG-UI servers](#pydanticai-agent-to-ag-ui-server).
53+
This will expose the agent as an AG-UI server, and you can start sending
54+
requests to it.
5655

5756
## Adapter AG UI
5857

59-
**AdapterAGUI** is an adapter between PydanticAI agents and the AG-UI protocol
60-
written in Python.
58+
[AdapterAGUI][adapter_ag_ui.AdapterAGUI]is an adapter between PydanticAI agents
59+
and the AG-UI protocol written in Python.
6160

6261
### Design
6362

6463
The adapter receives messages in the form of a
65-
[`RunAgentInput.state`](https://docs.ag-ui.com/sdk/js/core/types#runagentinput)
64+
[`RunAgentInput`](https://docs.ag-ui.com/sdk/js/core/types#runagentinput)
6665
which describes the details of a request being passed to the agent including
67-
messages and state. These are then translated to PydanticAI types, passed to the
68-
provided agent when then process the request. Results from the agent are then
69-
streamed back to the caller.
66+
messages and state. These are then converted to PydanticAI types, passed to the
67+
provided agent which then process the request. Results from the agent are
68+
converted from PydanticAI types to AG-UI events and streamed back to the caller
69+
as Server-Sent Events (SSE).
7070

7171
A user request may require multiple round trips between client UI and PydanticAI
7272
server, depending on the tools and events needed.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ requires-python = ">=3.9"
4646

4747
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
4848
dependencies = [
49-
"pydantic-ai-slim[openai,vertexai,google,groq,anthropic,mistral,cohere,bedrock,cli,mcp,evals,a2a]=={{ version }}",
49+
"pydantic-ai-slim[openai,vertexai,google,groq,anthropic,mistral,cohere,bedrock,cli,mcp,evals,a2a,ag-ui]=={{ version }}",
5050
]
5151

5252
[tool.hatch.metadata.hooks.uv-dynamic-versioning.optional-dependencies]

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)