mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 17:15:23 -04:00
Tool calling example may have a glitch - seems to only record the result of the last tool call #242
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @janspoerer on GitHub (Mar 18, 2025).
The tool calling example in /examples/tools.py seems to only record the last tool call.
Am I seeing this correctly? If so, please let me know; I'll make a PR.
@xuzexin-hz commented on GitHub (May 2, 2025):
No problem. You can try: What is three plus one, then plus two? The result is 6. hahaha
I think the actual tool call should be like this: