pub enum LoopEvent {
Start {
task: RuntimeTask,
},
LLMResponse {
message: Message,
},
ToolResults {
results: Vec<ToolResult>,
},
Signal {
signal: RuntimeSignal,
},
MilestoneResult {
result: MilestoneCheckResult,
},
SubAgentCompleted {
result: SubAgentResult,
},
Timeout,
}Expand description
Events fed into the state machine from the SDK layer.
Variants§
Start
Fields
§
task: RuntimeTaskLLMResponse
ToolResults
Fields
§
results: Vec<ToolResult>Signal
Inbound signal from SignalRouter — Critical/High urgency may interrupt.
Fields
§
signal: RuntimeSignalMilestoneResult
Result of evaluating the current milestone phase’s criteria.
Feed this back after handling LoopAction::EvaluateMilestone.
Fields
§
result: MilestoneCheckResultSubAgentCompleted
Sub-agent run completed — result is injected into the loop as context.
Fields
§
result: SubAgentResultTimeout
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoopEvent
impl RefUnwindSafe for LoopEvent
impl Send for LoopEvent
impl Sync for LoopEvent
impl Unpin for LoopEvent
impl UnsafeUnpin for LoopEvent
impl UnwindSafe for LoopEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more