-
Notifications
You must be signed in to change notification settings - Fork 4.5k
chore: update parallel and custom function step events streaming logic #4954
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dirkbrnd
reviewed
Oct 9, 2025
dirkbrnd
reviewed
Oct 9, 2025
dirkbrnd
reviewed
Oct 9, 2025
dirkbrnd
reviewed
Oct 9, 2025
ysolanky
approved these changes
Oct 9, 2025
kausmeows
added a commit
to agno-agi/agno-docs
that referenced
this pull request
Oct 10, 2025
## Description Add details about how to stream agent and team events from within the custom function step so they are caught properly in the chat page and streams the info. ## Type of Change - [ ] Bug fix (errors, broken links, outdated info) - [ ] New content - [x] Content improvement - [ ] Other: ____ ## Related Issues/PRs (if applicable) - Related SDK PR: agno-agi/agno#4954 ## Checklist - [ ] Content is accurate and up-to-date - [ ] All links tested and working - [ ] Code examples verified (if applicable) - [ ] Spelling and grammar checked - [ ] Screenshots updated (if applicable) --------- Co-authored-by: manu <manuhortet@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
step.py
) when we doself.active_executor.run
. This workflow context consists of things like step id, step name, step index etc which is then put in RunOutputEvent used by FE.agent.run()
inside it. this agent run is completely unanimous and not in the flow of our execution. like the user decides to trigger it. and we cant directly inject that workflow_context into this run, so - in case of this step even if we yield events the FE wont know about which step it belongs to because it doesn't have access to thatstep_id
etc info.Now we inspect all events that are yielded during the workflow run, and set the workflow context variables on them before yielding upwards.
Type of change
Checklist
./scripts/format.sh
and./scripts/validate.sh
)Additional Notes
Add any important context (deployment instructions, screenshots, security considerations, etc.)