DeepResearch
DeepResearch copied to clipboard
React_agent: Custom tool descriptions not included in prompts, and function_list parameter is unused
Problem Description
-
Tool descriptions are not passed to the prompt: When registering custom tools, their descriptions (defined in the tool class) are not being included in the prompt sent to the LLM. This means the model lacks context about what each tool does and how to use it properly.
-
The
function_listparameter is non-functional: TheMultiTurnReactAgentclass accepts afunction_listparameter but never uses it because:- The
__init__method doesn't callsuper().__init__() - The agent relies entirely on a global
TOOL_MAPinstead of the passedfunction_list - This makes the parameter misleading and breaks expected inheritance behavior
- The
Expected Behavior
- Tool descriptions should be dynamically included in the system prompt
- The function_list parameter should either work as expected or be removed
- The agent should follow proper OOP patterns with parent class initialization
Questions
- Are there plans to refactor this code for better maintainability and proper OOP design?
- Is this project open to community contributions? We'd be happy to submit PRs to address these issues.
Would love to contribute if the project is accepting PRs!
Thanks my friends
+1