Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
b9587750
Unverified
Commit
b9587750
authored
Jul 02, 2025
by
cronoik-inceptionai
Committed by
GitHub
Jul 02, 2025
Browse files
Documentation update tool_calling: mapping back to function from response (#20373)
parent
706ff132
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/features/tool_calling.md
docs/features/tool_calling.md
+1
-1
No files found.
docs/features/tool_calling.md
View file @
b9587750
...
@@ -53,7 +53,7 @@ Next, make a request to the model that should result in it using the available t
...
@@ -53,7 +53,7 @@ Next, make a request to the model that should result in it using the available t
tool_call = response.choices[0].message.tool_calls[0].function
tool_call = response.choices[0].message.tool_calls[0].function
print(f"Function called: {tool_call.name}")
print(f"Function called: {tool_call.name}")
print(f"Arguments: {tool_call.arguments}")
print(f"Arguments: {tool_call.arguments}")
print(f"Result: {
get_weather
(**json.loads(tool_call.arguments))}")
print(f"Result: {
tool_functions[tool_call.name]
(**json.loads(tool_call.arguments))}")
```
```
Example output:
Example output:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment