-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
Steven Enamakel edited this page Jun 29, 2026
·
2 revisions
This page covers the shortest path from checkout to a running TinyAgents graph.
Until the crate is published, depend on the repository directly:
[dependencies]
tinyagents = { git = "https://github.com/tinyhumansai/rustagents" }For local development inside this repository:
[dependencies]
tinyagents = { path = "." }git clone git@github.com:tinyhumansai/rustagents.git
cd rustagents
cargo testUseful local checks:
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo build --all-targets
cargo testThe local graph example does not need provider credentials:
cargo run --example basic_graphIt builds a two-node graph:
flowchart TD
Start((START)) --> Agent[agent]
Agent -->|needs_tool| Tool[tool]
Tool --> Agent
Agent -->|done| End((END))
The graph threads typed Rust state through each node, uses conditional routing
after the agent node, and exits when the state no longer needs the tool.
export OPENAI_API_KEY=...
cargo run --features openai --example openai_chatOptional environment variables:
export OPENAI_MODEL=gpt-4.1-mini
export OPENAI_BASE_URL=https://api.openai.com/v1The OpenAI feature also powers OpenAI-compatible providers through provider specs and helper constructors. See Providers.
-
src/graph/: durable graph runtime. -
src/harness/: model, tool, middleware, event, usage, provider, and testkit primitives. -
src/language/:.ragparsing, compiling, and registry binding. -
src/registry/: capability catalog and model catalog. -
examples/: runnable examples. -
docs/spec/: contributor-facing system specification. -
wiki/: GitHub wiki source, tracked as a submodule.
Recursive language-model (RLM) harness for Rust.
Getting started
Concepts
Modules
Providers
Contributing