Skip to content
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

Add API for streaming events #687

Closed
wants to merge 1 commit into from
Closed

Conversation

dmontagu
Copy link
Contributor

Follow-up on #468, adding an API for streaming the actual events happening in an agent run.

This still needs tests and docs.

Copy link

cloudflare-workers-and-pages bot commented Jan 14, 2025

Deploying pydantic-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: 746496b
Status: ✅  Deploy successful!
Preview URL: https://cf1cd75a.pydantic-ai.pages.dev
Branch Preview URL: https://dmontagu-stream-events.pydantic-ai.pages.dev

View logs

@dmontagu dmontagu force-pushed the dmontagu/stream-events branch from eba4d46 to 746496b Compare January 14, 2025 16:50
@Krosik19
Copy link

Krosik19 commented Jan 16, 2025

after tool is called no other messages are streamed
using deepseek v3

@sydney-runkle
Copy link
Member

@Krosik19,

Is that specific to this PR, or a general problem with streaming?

@bprh
Copy link

bprh commented Jan 27, 2025

@Krosik19,

Is that specific to this PR, or a general problem with streaming?

I think it may be general to streaming. I was just asking a question about how our tools could maybe generate a message back to the user that they are being used. Giving some idea of what is going on. Some of my tools take many seconds to perform their routines.

@dmontagu
Copy link
Contributor Author

dmontagu commented Feb 6, 2025

Closing in favor of an approach based on #833

@dmontagu dmontagu closed this Feb 6, 2025
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.

4 participants