Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/durable_execution/temporal.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ brew install temporal
temporal server start-dev
```

And installing Pydantic AI with Temporal [open-source library](https://github.com/temporalio/sdk-python):

```bash
pip/uv-add 'pydantic-ai[temporal]'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pydantic-ai depends on pydantic-ai-slim[...,temporal,...], so explicit installation is only necessary when using pydantic-ai-slim directly. This is not the case for DBOS and Prefect which are not including in pydantic-ai by default.

Can you update the docs to make that more clear please?

```

Or if you're using the slim package, you can install it with the `temporal` (and `openai` in this case) optional groups:

```bash
pip/uv-add 'pydantic-ai-slim[temporal,openai]'
```


```python {title="temporal_agent.py" test="skip"}
import uuid

Expand Down