Skip to main content

Module agent_loop

Module agent_loop 

Source
Expand description

Agent loop — Rust port of packages/agent/src/agent-loop.ts.

Streams assistant deltas, executes tool calls, and surfaces permission decisions. Cancellation is honored via StreamOptions::cancel.

Structs§

AgentRun

Functions§

run_agent
run_agent_with_history
Continue a run with an existing transcript. Use this for pi --resume.