Skip to content

Commit 8a0bbcc

Browse files
committed
Update docs/tests
1 parent 9a92f05 commit 8a0bbcc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/builtin-tools.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ agent = Agent('anthropic:claude-sonnet-4-0', builtin_tools=[UrlContextTool()])
334334

335335
result = agent.run_sync('What is the first sentence on https://ai.pydantic.dev?')
336336
print(result.output)
337-
#> Pydantic AI is a Python agent framework designed to make it less painful to build production grade applications with Generative AI.
337+
"""
338+
Pydantic AI is a Python agent framework designed to make it less painful to build production grade applications with Generative AI.
339+
"""
338340
```
339341

340342
_(This example is complete, it can be run "as is")_

tests/test_examples.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,8 @@ async def call_tool(
526526
'Tell me about the pydantic/pydantic-ai repo.': 'The pydantic/pydantic-ai repo is a Python agent framework for building Generative AI applications.',
527527
'What do I have on my calendar today?': "You're going to spend all day playing with Pydantic AI.",
528528
'Write a long story about a cat': 'Once upon a time, there was a curious cat named Whiskers who loved to explore the world around him...',
529+
'What is the first sentence on https://ai.pydantic.dev?': 'Pydantic AI is a Python agent framework designed to make it less painful to build production grade applications with Generative AI.',
530+
'What is this? https://ai.pydantic.dev': 'A Python agent framework for building Generative AI applications.',
529531
}
530532

531533
tool_responses: dict[tuple[str, str], str] = {

0 commit comments

Comments
 (0)