Expand description
The pure agent turn-loop.
This is the Rust heart of Flue’s agent-coordinator.ts turn logic — but
only the pure loop: send messages + tool defs to a ModelProvider,
append assistant messages, execute any tool calls, append their results,
and repeat until the model stops calling tools or max_turns is hit.
The loop talks only to ModelProvider + Arc<dyn Tool> and knows nothing
about sessions, events, sandboxes, or persistence — those live in
fluers-runtime’s coordinator (MVP 3+).
Structs§
- Fanout
Turn Sink - A
TurnSinkthat fans a turn out to multiple inner sinks, in order. - RunConfig
- Configuration for a single agent run.
- RunOutcome
- The outcome of a completed agent run.
Traits§
- Turn
Sink - A sink notified after each turn’s messages are appended to the history.
Functions§
- run_
agent - Run the agent loop.
- run_
agent_ streaming - Streaming variant of
run_agent.