Skip to content

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
breath57:feat/enhance_think_tool_check
Open

Enhance the verification of the logic that involves the use of think_tool#223
breath57 (breath57) wants to merge 1 commit intolangchain-ai:mainfrom
breath57:feat/enhance_think_tool_check

Conversation

@breath57
Copy link

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

  • Introduced FORCE_THINK_TOOL environment variable to enforce reflection before tool execution.
  • 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.

sreenshot

  1. Parallel invocation of think_tool and other tools
image
  1. Before invoking the ConductSearch tool, the think_tool was not invoked.
image

…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.
@breath57 breath57 (breath57) changed the title Enhance the verification of the logic that involves the use of think_tool and add FORCE_THINK_TOOL configuration and related reminders Enhance the verification of the logic that involves the use of think_tool Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant