10-tool-calling

command
v1.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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?"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL