Rust API reference¶
The Rust API is documented via standard rustdoc. Until we publish to crates.io, browse it locally:
Or after the first crates.io publish, on docs.rs:
| Crate | docs.rs |
|---|---|
tako-core |
docs.rs/tako-core |
tako-runtime |
docs.rs/tako-runtime |
tako-orchestrator |
docs.rs/tako-orchestrator |
tako-governance |
docs.rs/tako-governance |
tako-mcp |
docs.rs/tako-mcp |
tako-compat |
docs.rs/tako-compat |
tako-providers-anthropic |
docs.rs/tako-providers-anthropic |
tako-providers-openai |
docs.rs/tako-providers-openai |
tako-providers-azure-openai |
docs.rs/tako-providers-azure-openai |
tako-providers-bedrock |
docs.rs/tako-providers-bedrock |
tako-providers-vertex |
docs.rs/tako-providers-vertex |
tako-providers-http-generic |
docs.rs/tako-providers-http-generic |
Core surface¶
The five public traits in tako-core:
LlmProvider— vendor-neutral chat + stream APITool— single tool invocationMcpTransport— MCP client transport (stdio, HTTP, …)Router— provider/role selection (Phase 3 Trinity)PolicyEngine— Allow / Deny / RedactMessages / ForceModel decisions
Public types:
Capabilities,ChatRequest,ChatResponse,ChatChunk,ContentPart,FinishReason,Message,Principal,Role,ToolCallDelta,ToolSchema,UsageTakoError(errors are flat — match on the variant)