Skip to main content

Module runner

Module runner 

Source
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§

FanoutTurnSink
A TurnSink that 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§

TurnSink
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.