Troupekit and Agno
Agno is a Python framework for agents, teams and workflows with storage, tracing and evals included. Several troupekit features take ideas from it. We compared agno at v3.2.1, checked on 2026-11-28.
The same agent
The test agent is small on purpose: a persona, one tool, a run that is killed and resumed, and a spend cap.
In Agno
From the quickstart cookbook, with one toolkit (agent_with_tools.py):
from agno.agent import Agent
from agno.models.google import Gemini
from agno.tools.yfinance import YFinanceTools
# ---------------------------------------------------------------------------
# Create the Agent
# ---------------------------------------------------------------------------
agent_with_tools = Agent(
name="Agent with Tools",
model=Gemini(id="gemini-3.6-flash"),
instructions=[
"Use Yahoo Finance for facts that can change.",
"Lead with the answer, then show the evidence.",
"Use a table when comparing companies.",
"Say when data is unavailable; never invent a value.",
"Keep the response concise and do not give personalized financial advice.",
],
tools=[
YFinanceTools(
enable_company_info=True,
enable_stock_fundamentals=True,
enable_company_news=True,
)
],
add_datetime_to_context=True,
markdown=True,
)
# ---------------------------------------------------------------------------
# Run the Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
agent_with_tools.print_response(
"Give me a quick market brief on NVIDIA",
stream=True,
)
For a kill and resume, give the agent a database and checkpoint="tool-batch", which writes the run after each batch of tool calls; the default writes only when a run ends, so a crash mid-run loses the work (README). The cookbook kills a worker with SIGKILL and continues the run (01_crash_recovery.py):
def build_agent() -> Agent:
return Agent(
name="research-agent",
model=OpenAIResponses(id="gpt-5.4"),
db=SqliteDb(session_table="checkpoint_demo", db_file=DB_FILE),
checkpoint="tool-batch",
tools=[slow_search, slow_fetch_detail],
instructions=(
"Use slow_search to find results, then call slow_fetch_detail on EACH "
"result one at a time. Summarize what you learned at the end."
),
)
recovery_agent = build_agent()
resumed = await recovery_agent.acontinue_run(
run_id=crashed_run.run_id, session_id=SESSION_ID
)
There is no cap in money or tokens. tool_call_limit caps tool calls (agent.py), and cost is recorded in the run metrics, not enforced (metrics.py).
In troupekit
The persona is the doc comment and the tool is a #[tool] function. This is the tool_agent example:
#![allow(unused)]
fn main() {
/// Adds numbers with the add tool.
#[agent(model = "openai/gpt-6-luna", tools = [add])]
fn calc() {}
}
A role, a goal, evals, a spend cap of 5 000 millionths of a dollar per run and the checkpoint store are keys on the same macro. This one is from a test of the kit:
#![allow(unused)]
fn main() {
#[agent(
model = "fake/m",
role = "Checks facts.",
goal = "A short answer.",
display_name = "Fact Checker",
evals = ["min_items(items, 1)"],
limits = Limits { run: Some(5_000), ..Limits::default() },
checkpoints = Storage::memory(),
max_turns = 3,
max_tokens = 256,
retries = 1,
laws = "tests/fixtures/rules.bend",
auto_laws = false,
)]
}
In 0.4 the laws key is validated at build and not enforced by the run (Proofs and laws). With the SQLite store as checkpoints, a new process resumes a killed run by its id. This is the kill_model_call example, which is killed in the middle of a local model call:
#![allow(unused)]
fn main() {
("resume", Some(id)) => {
let run_id: RunId = serde_json::from_str(&format!("\"{id}\""))?;
let text = built.resume(run_id).await?;
println!("RESUMED {}", text.len());
}
}
Nothing else is needed: no server, no second process to run the engine, no Python. Durable runs and Spend limits say what each part guarantees.
Side by side
| Agno 3.2.1 | Troupekit 0.4 | |
|---|---|---|
| Durability | Opt-in checkpoint="tool-batch" with a database; the default writes at the end of a run | Checkpoint after every step, model calls and tool batches alike, whenever the SQLite store is used |
| Spend limits | None; a tool-call limit, and cost recorded | USD per call, per run and per period, when you set them; checked before each call |
| Tracing | OpenTelemetry spans stored in the Agno database, through an extra package (tracing) | Own tracer, JSONL and an HTML viewer |
| Evals | Accuracy, agent-as-judge, performance and reliability evals (eval) | Evals on the persona, checked on every run |
| Offline and on-device | Ollama, LM Studio, vLLM, and a llama.cpp server client (llama_cpp.py); no in-process model found | llama.cpp in process, Ollama, and a route policy per call |
| Mobile | None found | Builds for iOS and Android in CI; Swift and Kotlin bindings since 0.4, built from source |
| Single binary | Needs Python 3.9 or newer (pyproject.toml) | Compiles into your program |
Where Agno is better
Breadth in one package: 54 model providers, more than 150 tool modules and more than a dozen storage back ends at this tag, plus richer evals, MCP tools and per-tool approval today. Troupekit has a handful of providers and one store, and pauses for a person only at a workflow's human node.
Where troupekit is different
Once checkpoints use Storage::sqlite, every step is checkpointed, model calls as well as tool batches, with no separate checkpoint mode to pick, and a cap in money you set is checked before each call. The model can run in the same process, and the core compiles for phones.