Enhance the verification of the logic that involves the use of think_tool#223
Open
breath57 (breath57) wants to merge 1 commit intolangchain-ai:mainfrom
Open
Enhance the verification of the logic that involves the use of think_tool#223breath57 (breath57) wants to merge 1 commit intolangchain-ai:mainfrom
breath57 (breath57) wants to merge 1 commit intolangchain-ai:mainfrom
Conversation
…tool and add FORCE_THINK_TOOL configuration and related reminders - Introduced `FORCE_THINK_TOOL` environment variable to enforce reflection before tool execution. - Updated `.env.example` and `README.md` to document the new variable. - Enhanced `deep_researcher.py` and `supervisor_tools` logic to check for correct tool call order. - Added reminders for supervisors and researchers regarding the use of `think_tool` in conjunction with other tools. - Implemented utility functions to check for mixed tool calls and retrieve previous tool names.
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.
Background
Since the invocation of the think_tool is requested through prompts, there is a possibility that the agent may bypass the invocation of think_tool. This modification is aimed at enhancing the stability of the invocation of think_tool.
Modified
Enhance the verification of the logic that involves the use of think_tool and add FORCE_THINK_TOOL configuration and related reminders
FORCE_THINK_TOOLenvironment variable to enforce reflection before tool execution.deep_researcher.pyandsupervisor_toolslogic to check for correct tool call order.think_toolin conjunction with other tools.sreenshot