Skip to content

Commit 24e8441

Browse files
committed
List restate as an optional dependency
1 parent cea3363 commit 24e8441

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

docs/durable_execution/restate.md

Whitespace-only changes.

docs/install.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ pip/uv-add "pydantic-ai-slim[openai]"
5858
* `a2a` - installs `fasta2a` [PyPI ↗](https://pypi.org/project/fasta2a){:target="_blank"}
5959
* `ag-ui` - installs `ag-ui-protocol` [PyPI ↗](https://pypi.org/project/ag-ui-protocol){:target="_blank"} and `starlette` [PyPI ↗](https://pypi.org/project/starlette){:target="_blank"}
6060
* `dbos` - installs [`dbos`](durable_execution/dbos.md) [PyPI ↗](https://pypi.org/project/dbos){:target="_blank"}
61+
* `restate` - installs [`restate`](durable_execution/restate.md) [PyPI ↗](https://pypi.org/project/restate-sdk){:target="_blank"}
6162

6263
See the [models](models/overview.md) documentation for information on which optional dependencies are required for each model.
6364

pydantic_ai_slim/pydantic_ai/durable_exec/restate/_agent.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def create_agent(self, context: Context) -> AbstractAgent[AgentDepsT, OutputData
4545
Note that the agent will automatically wrap tool calls with restate's `ctx.run()`.
4646
4747
Example:
48-
```python
4948
...
5049
agent_provider = RestateAgentProvider(weather_agent)
5150
@@ -57,7 +56,6 @@ async def get_weather(ctx: restate.Context, city: str):
5756
result = await agent.run(f'What is the weather in {city}?')
5857
return result.output
5958
...
60-
```
6159
6260
Args:
6361
context: The Restate context to use for the agent.
@@ -86,7 +84,6 @@ def create_agent_with_advanced_tools(
8684
since the tools may use the context in different ways.
8785
8886
Example:
89-
```python
9087
...
9188
9289
@dataclass
@@ -112,7 +109,6 @@ async def get_weather(ctx: restate.Context, city: str):
112109
result = await agent.run(f'What is the weather in {city}?', deps=WeatherDeps(restate_context=ctx, ...))
113110
return result.output
114111
...
115-
```
116112
117113
Args:
118114
get_context: A callable that extracts the Restate context from the agent's dependencies.

0 commit comments

Comments
 (0)