Documentation
¶
Overview ¶
Recipe 10: Tool / Function Calling
Let the model decide when to invoke tools (functions). The application defines a set of tools, the model generates a tool call, the application executes it, and feeds the result back for a final natural-language answer.
This is the core pattern behind agentic systems that combine LLM reasoning with real-world actions (API calls, database queries, calculations, etc.).
Usage:
go run ./docs/cookbook/10-tool-calling/ --model path/to/model.gguf go run ./docs/cookbook/10-tool-calling/ --model path/to/model.gguf --query "What time is it in London?"
Click to show internal directories.
Click to hide internal directories.