llama-cpp-agent
Active·★ 658·Updated 2026-03-09
★ Trending★ Hidden Gem
llama-cpp-agent is a Python framework for interacting with LLMs running via llama.cpp. It provides a unified interface for chat, structured function calls, and JSON-formatted output — including models not explicitly fine-tuned for function calling. Developers can define tools and callable functions that the agent invokes directly, making it practical for building local agentic workflows without cloud dependencies.
#agent-framework#Communication
01
Features
01Structured function calls for models running via llama.cpp
02JSON-structured output even from non-function-call-finetuned models
03Chat interface with multi-turn conversation support
04Python-native tool/function definition and binding
05Compatible with local LLM deployments — no cloud required
02
Compatibility
Python
Python 3.9+
Verified via docs
llama.cpp
Native
Verified via docs
Ollama
Supported
Verified via docs
03
Quick start
1
$ pip install llama-cpp-agent
04
Use cases
↳Building local agentic pipelines with open-source LLMs
↳Extracting structured data from LLM responses without fine-tuning
↳Prototyping function-calling workflows on consumer hardware
05
Alternatives
Comments
Log in to leave a comment
No comments yet. Be the first!