A self-improving RLM agent for coding workflows and long-running autonomous tasks.
Rust
pa-agent
The agent loop.
Scope
Turn loop: drives a provider stream, dispatches tool calls, enforces max-turn and sequencing semantics, handles partial streams, retries on stream failure, propagates aborts.
Non-goals
No tool implementations (pa-core), no providers (pa-ai), no session persistence, no UI. The loop is tool-agnostic: it receives a ToolDispatcher boundary.
Public API
run_loop (session inputs -> stream of loop events), ToolDispatcher trait. Loop internals pub(crate).
Depends on
No workspace dependencies.