Skip to content

Commit 2064ceb

Browse files
committed
Fix import order in Temporal durable execution docs
1 parent 4ca08e4 commit 2064ceb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/durable_execution/temporal.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ from pydantic_ai.durable_exec.temporal import TemporalAgent, TemporalFunctionToo
298298
def web_search(query: str) -> str:
299299
"""Search the web for information."""
300300
# Actual web search implementation
301-
return f"Search results for: {query}"
301+
return f'Search results for: {query}'
302302

303303

304304
def calculate(expression: str) -> str:
305305
"""Evaluate a mathematical expression."""
306306
# Actual calculation implementation
307-
return f"Result: {expression}"
307+
return f'Result: {expression}'
308308

309309

310310
# Create a shared toolset
@@ -393,12 +393,14 @@ You can also pre-register toolsets with names and reference them by name at runt
393393

394394
```python {title="named_toolset_temporal.py" test="skip"}
395395
from temporalio import workflow
396+
396397
from pydantic_ai import Agent, FunctionToolset
397398
from pydantic_ai.durable_exec.temporal import TemporalAgent, TemporalFunctionToolset
398399

400+
399401
# Define tools and toolset
400402
def magic_trick(input: str) -> str:
401-
return f"Magic: {input}"
403+
return f'Magic: {input}'
402404

403405
magic_toolset = FunctionToolset(tools=[magic_trick], id='magic')
404406

0 commit comments

Comments
 (0)