-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Introduce streaming tool and support streaming for AgentTool
and TeamTool
.
#6712
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6712 +/- ##
==========================================
+ Coverage 79.75% 79.84% +0.08%
==========================================
Files 232 232
Lines 17414 17513 +99
==========================================
+ Hits 13889 13983 +94
- Misses 3525 3530 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! Super happy you decided to go this way with the events :)
@copilot can you help me increase the test coverage? |
Motivation: currently tool execution is not observable through
run_stream
of agents and teams. This is necessary especially forAgentTool
andTeamTool
.This PR addresses this issue by makign the following changes:
BaseStreamTool
inautogen_core.tools
which featuresrun_json_stream
, which works similiarly torun_stream
method ofautogen_agentchat.base.TaskRunner
.TeamTool
andAgentTool
to subclass theBaseStreamTool
StreamingWorkbench
interface featuringcall_tool_stream
StaticStreamingWorkbench
implementationAssistantAgent
, useStaticStreamingWorkbench
.Example:
output