Skip to content

Examples

Steven Enamakel edited this page Oct 22, 2026 · 11 revisions

Examples

The runnable examples live in crates/tinyagents-integration-tests/examples/. They demonstrate model calls, tools, structured output, and harness behavior.

Example What it shows
openai_chat.rs A model call through AgentHarness.
openai_tools.rs Harness tool execution with an OpenAI-compatible model.
openai_structured.rs Structured-output requests.
agent_loop_tools.rs A deterministic local harness run with tools.
harness_stress.rs Concurrent harness calls and event handling.

Run an example from the workspace root with cargo run -p tinyagents-integration-tests --example <name>. Live examples require the provider credentials documented by that example.

TinyAgents

Provider-neutral agent harness and tools for Rust.

Getting started

Concepts

Modules

Providers

Contributing


Clone this wiki locally