Troupekit and ADK-Rust
ADK-Rust is a Rust agent development kit with a very wide scope: agents, graphs, teams, MCP, A2A, voice, browser use and evals. We compared release v2.3.0 from 2026-10-09, checked on 2026-11-28. Its main branch is far ahead of that release, so newer features may be missing here.
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 ADK-Rust
From the function tools guide (function-tools.md):
use adk_rust::prelude::*;
use adk_rust::Launcher;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use serde_json::json;
use std::sync::Arc;
#[derive(JsonSchema, Serialize, Deserialize)]
struct WeatherParams {
/// The city or location to get weather for
location: String,
}
#[tokio::main]
async fn main() -> anyhow::Result<()> {
dotenvy::dotenv().ok();
let api_key = std::env::var("GOOGLE_API_KEY")?;
let model = GeminiModel::new(&api_key, "gemini-3.7-flash")?;
// Weather tool with proper schema
let weather_tool = FunctionTool::new(
"get_weather",
"Get current weather for a location",
|_ctx, args| async move {
let location = args.get("location")
.and_then(|v| v.as_str())
.unwrap_or("unknown");
Ok(json!({
"location": location,
"temperature": "22°C",
"conditions": "sunny"
}))
},
)
.with_parameters_schema::<WeatherParams>(); // Required for LLM to call correctly!
let agent = LlmAgentBuilder::new("weather_agent")
.instruction("You help users check the weather. Always use the get_weather tool.")
.model(Arc::new(model))
.tool(Arc::new(weather_tool))
.build()?;
Launcher::new(Arc::new(agent)).run().await?;
Ok(())
}
Durable resume is a feature of graph agents. With the SQLite checkpointer, "if a graph execution crashes or the process restarts, execution resumes from the last persisted checkpoint" (graph-agents.md):
#![allow(unused)]
fn main() {
use adk_graph::checkpoint::SqliteCheckpointer;
let checkpointer = SqliteCheckpointer::new("checkpoints.db").await?;
let graph = StateGraph::with_channels(&["task", "result"])
// ... nodes and edges
.compile()?
.with_checkpointer(checkpointer);
}
A crash during a super-step runs every node of that step again, including nodes that had finished (graph-agents.md). The spend cap is TeamBudget, with max_tokens and max_cost_microusd, on team runs (team.rs); we found no cap on a single agent or graph.
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
| ADK-Rust 2.3.0 | Troupekit 0.4 | |
|---|---|---|
| Durability | Graph agents with SqliteCheckpointer; at-least-once per super-step | Any agent or graph, checkpointed after every step once checkpoints use Storage::sqlite; a crash repeats the interrupted step, including every tool call or parallel branch in it |
| Spend limits | TeamBudget in tokens and millionths of a USD, for team runs | USD per call, per run and per period, when you set them, on any agent or graph |
| Tracing | adk-telemetry with OpenTelemetry and an SQLite span export (telemetry.md) | Own tracer, JSONL and an HTML viewer |
| Evals | adk-eval: trajectory, rubric, LLM judge and A/B, with CI output (README) | Evals on the persona, checked on every run; an eval harness is planned for 0.7 |
| Offline and on-device | mistral.rs in process through adk-mistralrs (README), and Ollama | 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 | Yes, it is a Rust library | Yes, it is a Rust library |
Where ADK-Rust is better
Scope. Its README lists 42 crates and 104 runnable examples (README), with MCP client and server, A2A, realtime voice, browser and computer use, an eval framework and 18 model providers. Troupekit covers a much smaller surface.
Where troupekit is different
Durability and money caps work on every agent, not only on graphs or teams, once you set Storage::sqlite checkpoints and the limits. The checkpoint store, the spend ledger, memory and the search index share one SQLite file, and a route policy moves each call between the device and the cloud.