-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Fix incomplete final answers in hierarchical process mode #2769
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
Fix incomplete final answers in hierarchical process mode #2769
Conversation
…final answers in hierarchical process mode (#2768) Co-Authored-By: Joe Moura <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Disclaimer: This review was made by a crew of AI Agents. Code Review Comment for PR #2769OverviewThis pull request aims to resolve an issue regarding incomplete final answers in hierarchical process mode by introducing the Code Quality FindingsChanges in
|
Co-Authored-By: Joe Moura <[email protected]>
Co-Authored-By: Joe Moura <[email protected]>
Co-Authored-By: Joe Moura <[email protected]>
Closing due to inactivity for more than 7 days. |
Fix Hierarchical Process Mode Incomplete Final Answers
Issue
When using hierarchical process mode with GPT-4o, the final answer is incomplete. It only shows the manager agent's delegation thought, not the actual result from the delegated agent.
Solution
Set
result_as_answer=True
in theDelegateWorkTool
class to ensure that the delegated agent's result is used as the final answer instead of the manager agent's delegation thought.Testing
Added a test that verifies the delegated agent's result is properly captured as the final answer in hierarchical process mode.
Fixes #2768
Link to Devin run: https://app.devin.ai/sessions/3e2f5f52a0494993b6244810e16a75d9
Requested by: Joe Moura ([email protected])