Skip to content

feat: #864 support streaming nested tool events in Agent.as_tool #1057

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vrtnis
Copy link
Contributor

@vrtnis vrtnis commented Jul 10, 2025

  • Add stream_inner_events flag to allow sub-agent tool call visibility
  • Use Runner.run_streamed for streaming inner agents
  • Emit nested tool_called/tool_output events in parent stream
  • Add test coverage for inner streaming behavior

Resolves #864

@vrtnis vrtnis force-pushed the enhancement/add-streaming-inner-events branch from da3a057 to 5a0ce3a Compare July 10, 2025 23:40
- Add `stream_inner_events` flag to allow sub-agent tool call visibility
- Use `Runner.run_streamed` for streaming inner agents
- Emit nested tool_called/tool_output events in parent stream
- Add comprehensive test coverage for inner streaming behavior
@vrtnis vrtnis force-pushed the enhancement/add-streaming-inner-events branch from 5a0ce3a to dcfaf3f Compare July 10, 2025 23:47
@seratch seratch added enhancement New feature or request feature:core labels Jul 11, 2025
@seratch seratch requested a review from rm-openai July 11, 2025 02:06
@seratch seratch changed the title feat: support streaming nested tool events in Agent.as_tool feat: #864 support streaming nested tool events in Agent.as_tool Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature:core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Agent.as_tool hides nested tool‑call events — blocks parallel sub‑agents with streaming
2 participants