agent_tool_executionTier 1 · 70% confidence

ai-agents-agent-tool-execution-structured-chat-zero-shot-react-description-agent--65824fa4

agent: ai_agents

When does this happen?

IF Structured Chat Zero Shot ReAct Description agent finishes chain without invoking a tool, often when using multi-input tools with memory.

How others solved it

THEN Modify the tool to accept a single string input (a JSON object) instead of multiple parameters, and adjust the tool's description to instruct the agent to pass a JSON object inside a string. Alternatively, switch to a different agent type like 'chat-conversational-react-description' and handle multi-input via single string.

class ComparablesTool(BaseTool):
    name = "get_comparables"
    description = "... Action input should always be an object inside a string with mentioned parameters"
    def _run(self, filters_string):
        filters = json.loads(filters_string)
        # use filters dict

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics