You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples/ag-ui.md
+46-13Lines changed: 46 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
-
#PydanticAIAG-UI Examples
1
+
#Agent User Interaction (AG-UI) Protocol
2
2
3
-
This example uses PydanticAI agents with the[AG-UI Dojo](https://github.com/ag-ui-protocol/ag-ui/tree/main/typescript-sdk/apps/dojo) example app.
3
+
This example uses Pydantic AI agents with the[AG-UI Dojo](https://github.com/ag-ui-protocol/ag-ui/tree/main/typescript-sdk/apps/dojo) example app.
4
+
5
+
See the[AG-UI docs](../ag-ui.md) for more information about the AG-UI integration.
4
6
5
7
##Prerequisites
6
8
7
9
1. An[OpenAI API key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key)
8
-
2. A clone of the[AG-UI repository](https://github.com/ag-ui-protocol/ag-ui)
9
10
10
11
##Running
11
12
@@ -20,28 +21,36 @@ This example uses PydanticAI agents with the [AG-UI Dojo](https://github.com/ag-
20
21
2. Run the example AG-UI app
21
22
22
23
```shell
24
+
export OPENAI_API_KEY=<your api key>
23
25
python/uv-run -m pydantic_ai_examples.ag_ui
24
26
```
25
27
26
28
2. Run the AG-UI Dojo example frontend
27
-
1. Move to the cloned AG-UI repository directory
28
-
2. In the`typescript-sdk/integrations/pydantic-ai` directory, copy`.env-sample` to`.env`
29
-
3. Open itin your editor andset`OPENAI_API_KEY` to a valid OpenAI key
30
-
4. Open a terminalin the`typescript-sdk` directory
31
-
5. Run the Dojo app following the [official instructions](https://github.com/ag-ui-protocol/ag-ui/tree/main/typescript-sdk/apps/dojo#development-setup)
29
+
1. Clone the [AG-UI repository](https://github.com/ag-ui-protocol/ag-ui)
3. Run the Dojo app following the [official instructions](https://github.com/ag-ui-protocol/ag-ui/tree/main/typescript-sdk/apps/dojo#development-setup)