ToolException Traceback (most recent call last)
in <cell line: 87>()
94
95 # Invoke the agent with the user input and the current chat history
---> 96 response = agent_executor.invoke({"input": user_input})
97 # print(response)
98 print("Bot:", response["output"])
9 frames
/usr/local/lib/python3.10/dist-packages/langchain_core/tools.py in _to_args_and_kwargs(self, tool_input)
723 all_args = list(args) + list(kwargs.values())
724 if len(all_args) != 1:
--> 725 raise ToolException(
726 f"""Too many arguments to single-input tool {self.name}.
727 Consider using StructuredTool instead."""
ToolException: Too many arguments to single-input tool Time.
Consider using StructuredTool instead. Args: []
User: what is the time
9 frames /usr/local/lib/python3.10/dist-packages/langchain_core/tools.py in _to_args_and_kwargs(self, tool_input) 723 all_args = list(args) + list(kwargs.values()) 724 if len(all_args) != 1: --> 725 raise ToolException( 726 f"""Too many arguments to single-input tool {self.name}. 727 Consider using StructuredTool instead."""
ToolException: Too many arguments to single-input tool Time. Consider using StructuredTool instead. Args: []