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 706ff13 commit b958775Copy full SHA for b958775
docs/features/tool_calling.md
@@ -53,7 +53,7 @@ Next, make a request to the model that should result in it using the available t
53
tool_call = response.choices[0].message.tool_calls[0].function
54
print(f"Function called: {tool_call.name}")
55
print(f"Arguments: {tool_call.arguments}")
56
- print(f"Result: {get_weather(**json.loads(tool_call.arguments))}")
+ print(f"Result: {tool_functions[tool_call.name](**json.loads(tool_call.arguments))}")
57
```
58
59
Example output:
0 commit comments