docs: update custom tool call snippet (#2754)

This commit is contained in:
Vadym Barda
2024-12-13 09:42:13 -05:00
committed by GitHub
parent 980b592631
commit 4c3958f0be
+1 -1
View File
@@ -98,7 +98,7 @@ This is a special case of updating the graph state from tools where in addition
```python
def call_tools(state):
...
commands = [tools_by_name[call["name"].invoke(call, config={"coerce_tool_content": False}) for tool_call in tool_calls]
commands = [tools_by_name[tool_call["name"]].invoke(tool_call) for tool_call in tool_calls]
return commands
```