Skip to content

Add Agent event_stream_handler function #2306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

DouweM
Copy link
Contributor

@DouweM DouweM commented Jul 24, 2025

Closes #1977

  • Add to run, run_sync, and run_stream
    • Note that this won't be supported with Temporal, as the handler needs to be registered outside of the workflow
  • Tests
  • Docs

Copy link

github-actions bot commented Jul 24, 2025

Docs Preview

commit: 7d1f175
Preview URL: https://bea8c2b0-pydantic-ai-previews.pydantic.workers.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Agent event_stream_handler function as alternative to Agent.iter
1 participant