We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3934b9 commit 2d30ebbCopy full SHA for 2d30ebb
libs/langchain/langchain_classic/agents/tool_calling_agent/base.py
@@ -83,11 +83,15 @@ def magic_function(input: int) -> int:
83
```
84
85
Prompt:
86
-
87
The agent prompt must have an `agent_scratchpad` key that is a
88
`MessagesPlaceholder`. Intermediate agent actions and tool output
89
messages will be passed in here.
90
+ Troubleshooting:
91
+ - If you encounter `invalid_tool_calls` errors, ensure that your tool
92
+ functions return properly formatted responses. Tool outputs should be
93
+ serializable to JSON. For custom objects, implement proper __str__ or
94
+ to_dict methods.
95
"""
96
missing_vars = {"agent_scratchpad"}.difference(
97
prompt.input_variables + list(prompt.partial_variables),
0 commit comments