Live Engine
Select Topic
easyLangchain Agents
You define a tool using the
@tool decorator and then pass it to an AgentExecutor. When the agent runs, it raises ValidationError: tool_input must be a string. The tool signature is def search(query: str, top_k: int) -> str. What is the root cause?