Documentation Index
Fetch the complete documentation index at: https://spacesail.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Code
cookbook/models/llama_cpp/tool_use.py
"""Run `pip install ddgs` to install dependencies."""
from agno.agent import Agent
from agno.models.llama_cpp import LlamaCpp
from agno.tools.duckduckgo import DuckDuckGoTools
agent = Agent(
model=LlamaCpp(id="ggml-org/gpt-oss-20b-GGUF"),
tools=[DuckDuckGoTools()],
markdown=True,
)
agent.print_response("Whats happening in France?")
Usage
Create a virtual environment
Open the Terminal and create a python virtual environment.python3 -m venv .venv
source .venv/bin/activate
Install LlamaCpp
Follow the LlamaCpp installation guide and start the server:llama-server -hf ggml-org/gpt-oss-20b-GGUF --ctx-size 0 --jinja -ub 2048 -b 2048
Run Agent
python cookbook/models/llama_cpp/tool_use.py