Expand description
Engine-level stream processing — TUI-agnostic event handling.
Processes StreamEvent variants, tracks subagent state and usage, and returns renderer-agnostic actions.
Structs§
- Subagent
Tracker - Subagent tracking state.
Enums§
- Engine
Stream Event - What happened during a stream event — renderer decides how to display.
- Stream
Completion - What the caller should do after stream completion.
Functions§
- process_
stream_ event - Convert a raw StreamEvent into an EngineStreamEvent. Also handles message history capture and returns completion signals.
- process_
stream_ event_ with_ terminal_ capture - Process one stream event and invoke
terminal_captureonly after a typed, successful terminal turn. The hook is deliberately infallible: capture enqueue/build/provider failures cannot replace the completed outcome. - repair_
history_ after_ failure - Repair conversation history after a turn failure.