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

[Feature Request]: Filtering output messages #593

Open
marklysze opened this issue Jan 21, 2025 · 0 comments
Open

[Feature Request]: Filtering output messages #593

marklysze opened this issue Jan 21, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@marklysze
Copy link
Collaborator

marklysze commented Jan 21, 2025

Is your feature request related to a problem? Please describe.

During a swarm workflow, there are some messages flowing to the output that relate to internally created tools that aren't important for the output.

For example, here's a snippet for a flow between two agents using an internally created tool called: transfer_planner_agent_to_reviewer_agent

Next speaker: planner_agent

planner_agent (to chat_manager):

***** Suggested tool call (call_yFKdOk8AsYvGh8oIV5OPTSxG): transfer_planner_agent_to_reviewer_agent *****
Arguments: 
{}
*********************************************************************************************************

--------------------------------------------------------------------------------

Next speaker: Tool_Execution


>>>>>>>> EXECUTING FUNCTION transfer_planner_agent_to_reviewer_agent...
Call ID: call_yFKdOk8AsYvGh8oIV5OPTSxG
Input arguments: {}
Tool_Execution (to chat_manager):

***** Response from calling tool (call_yFKdOk8AsYvGh8oIV5OPTSxG) *****
SwarmAgent --> reviewer_agent
**********************************************************************

--------------------------------------------------------------------------------

Next speaker: reviewer_agent

It would be better to suppress this to:

Next speaker: planner_agent

Next speaker: reviewer_agent

OR be able to customise the messages, e.g. where these specific tool calls can have a customised message

Next speaker: planner_agent

Transferring to reviewer_agent from OnCondition hand-off

Next speaker: planner_agent

Describe the solution you'd like

When registering tools it would be good to have options:

  • Suppress from output
  • Choose the message format
  • Provide a specific message

Additional context

N/A

@marklysze marklysze added the enhancement New feature or request label Jan 21, 2025
@davorrunje davorrunje self-assigned this Jan 21, 2025
@davorrunje davorrunje added this to ag2 Jan 21, 2025
@davorrunje davorrunje moved this to Todo in ag2 Jan 21, 2025
@davorrunje davorrunje assigned kumaranvpl and unassigned davorrunje Jan 21, 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
Projects
Status: Todo
Development

No branches or pull requests

3 participants