793         name_to_tool_map, color_mapping, inputs, intermediate_steps        794     )        795     if isinstance(next_step_output, AgentFinish):        796         return self._return(next_step_output, intermediate_steps)    File ~/code/lc/lckg/langchain/agents/agent.py:695, in AgentExecutor._take_next_step(self, name_to_tool_map, color_mapping, inputs, intermediate_steps)        693         tool_run_kwargs["llm_prefix"] = ""        694     # We then call the tool on the tool input to get an observation    --> 695     observation = tool.run(        696         agent_action.tool_input,        697         verbose=self.verbose,        698         color=color,        699         **tool_run_kwargs,        700     )        701 else:        702     tool_run_kwargs = self.agent.tool_run_logging_kwargs()    File ~/code/lc/lckg/langchain/tools/base.py:110, in BaseTool.run(self, tool_input, verbose, start_color, color, **kwargs)        101 def run(        102     self,        103     tool_input: Union[str, Dict],       (...)        107     **kwargs: Any,        108 ) -> str:        109     """Run the tool."""    --> 110     run_input = self._parse_input(tool_input)        111     if not self.verbose and verbose is not None:        112         verbose_ = verbose    File ~/code/lc/lckg/langchain/tools/base.py:71, in BaseTool._parse_input(self, tool_input)         69 if issubclass(input_args, BaseModel):         70     key_ = next(iter(input_args.__fields__.keys()))    ---> 71     input_args.parse_obj({key_: tool_input})         72 # Passing as a positional argument is more straightforward for         73 # backwards compatability         74 return tool_input    File ~/code/lc/lckg/.venv/lib/python3.11/site-packages/pydantic/main.py:526, in pydantic.main.BaseModel.parse_obj()    File ~/code/lc/lckg/.venv/lib/python3.11/site-packages/pydantic/main.py:341, in pydantic.main.BaseModel.__init__()    ValidationError: 1 validation error for ToolInputSchema    __root__
By default, tools infer the argument schema by inspecting the function signature. For more strict requirements, custom input schema can be specified, along with custom validation logic.
By default, tools infer the argument schema by inspecting the function signature. For more strict requirements, custom input schema can be specified, along with custom validation logic. ->: 793         name_to_tool_map, color_mapping, inputs, intermediate_steps        794     )        795     if isinstance(next_step_output, AgentFinish):        796         return self._return(next_step_output, intermediate_steps)    File ~/code/lc/lckg/langchain/agents/agent.py:695, in AgentExecutor._take_next_step(self, name_to_tool_map, color_mapping, inputs, intermediate_steps)        693         tool_run_kwargs["llm_prefix"] = ""        694     # We then call the tool on the tool input to get an observation    --> 695     observation = tool.run(        696         agent_action.tool_input,        697         verbose=self.verbose,        698         color=color,        699         **tool_run_kwargs,        700     )        701 else:        702     tool_run_kwargs = self.agent.tool_run_logging_kwargs()    File ~/code/lc/lckg/langchain/tools/base.py:110, in BaseTool.run(self, tool_input, verbose, start_color, color, **kwargs)        101 def run(        102     self,        103     tool_input: Union[str, Dict],       (...)        107     **kwargs: Any,        108 ) -> str:        109     """Run the tool."""    --> 110     run_input = self._parse_input(tool_input)        111     if not self.verbose and verbose is not None:        112         verbose_ = verbose    File ~/code/lc/lckg/langchain/tools/base.py:71, in BaseTool._parse_input(self, tool_input)         69 if issubclass(input_args, BaseModel):         70     key_ = next(iter(input_args.__fields__.keys()))    ---> 71     input_args.parse_obj({key_: tool_input})         72 # Passing as a positional argument is more straightforward for         73 # backwards compatability         74 return tool_input    File ~/code/lc/lckg/.venv/lib/python3.11/site-packages/pydantic/main.py:526, in pydantic.main.BaseModel.parse_obj()    File ~/code/lc/lckg/.venv/lib/python3.11/site-packages/pydantic/main.py:341, in pydantic.main.BaseModel.__init__()    ValidationError: 1 validation error for ToolInputSchema    __root__