Documentation
¶
Overview ¶
Command agentic-tool-use demonstrates function calling (tool use) with a language model using the zerfoo one-line API.
The model is given a set of tools (functions) it can invoke. When the model decides to call a tool, the application executes the function locally and feeds the result back for a follow-up generation. This is the core pattern behind agentic systems that combine LLM reasoning with real-world actions.
Usage:
go build -o agentic-tool-use ./examples/agentic-tool-use/ ./agentic-tool-use --model path/to/model.gguf ./agentic-tool-use --model path/to/model.gguf --query "What is the weather in Tokyo?"
Click to show internal directories.
Click to hide internal directories.