Skip to content

Commit 6bc8b16

Browse files
committed
fix example to use tool_plain
1 parent 055e120 commit 6bc8b16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/agent/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ def to_web(self) -> Any:
14861486
14871487
agent = Agent('openai:gpt-5')
14881488
1489-
@agent.tool
1489+
@agent.tool_plain
14901490
def get_weather(city: str) -> str:
14911491
return f'The weather in {city} is sunny'
14921492

0 commit comments

Comments
 (0)