Skip to main content

agent/
lib.rs

1//! Rust port of Ultron's `packages/agent` loop (`agent-loop.ts`) and `Agent` (`agent.ts`): turns over a streaming
2//! function, tool execution, the steering queue, abort, and the emitted [`AgentEvent`] stream.
3//!
4//! Evidence: `fixtures/generate.mjs` drives the TypeScript `Agent` with the TypeScript faux provider and records every
5//! provider call and agent event; `tests/loop.rs` replays the provider events here and compares the agent events.
6
7mod agent;
8mod agent_loop;
9mod types;
10
11pub use agent::{Agent, AgentControl, AgentOptions, QueueMode};
12pub use agent_loop::agent_loop;
13pub use types::*;