Open
Conversation
Backend (autogenui/web/app.py, autogenui/provider.py): - Change final result WebSocket event type from "result" to "TaskResultEvent" for consistency. - Implement logic to extract final result from a designated "final_responder" agent instead of the last message. - Fix race condition by sending TerminationEvent immediately after TaskResultEvent and breaking the stream loop. - Fix TypeError in provider.py when loading agent config with 'tools' set to null. - Correctly use message.source to determine sender name for WebSocket events sent to frontend. Frontend (frontend/src/components/chat/chatview.tsx, frontend/src/components/chat/messagelist.tsx): - Revert frontend logic to listen for "TaskResultEvent" and update finalResponse/status (result primarily shown in Processing Steps). - Fix JSON parsing error caused by WebSocket "pong" messages. - Ensure "View Processing Steps" collapse panel correctly collapses on completion using a dynamic key. Configuration (notebooks/default_team.json): - Update default team config to include separate "writing_agent" and "final_responder" agents. - Increase max_messages in default team termination condition to accommodate the new agent.
- Updated final_responder's system message to explicitly instruct summarizing *before* outputting TERMINATE on a new line. - Changed group chat termination condition to TextMentionTermination to reliably stop the conversation upon seeing "TERMINATE". - Filtered trailing "TERMINATE" text in frontend/messagelist.tsx to prevent displaying the termination signal to the user.
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
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.
No description provided.