-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Initial Checks
- I confirm that I'm using the latest version of Pydantic AI
- I confirm that I searched for my issue in https://github.com/pydantic/pydantic-ai/issues before opening this issue
Description
As reported on Slack: https://pydanticlogfire.slack.com/archives/C083V7PMHHA/p1765485304294729
run_stream_sync:
run_stream:
Example Code
import asyncio
import logfire
from pydantic_ai import Agent
logfire.configure()
logfire.instrument_pydantic_ai()
agent = Agent("openai:gpt-5.2")
response = agent.run_stream_sync("What is the capital of the UK?")
print(response.get_output())
async def main():
async with agent.run_stream("What is the capital of the UK?") as response:
print(await response.get_output())
asyncio.run(main())Python, Pydantic AI & LLM client version
main
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working