Type Alias: LoopEvent
LoopEvent = {
content:string;type:"text_delta"; } | {toolCalls:LoopToolCallRequest[];type:"tool_call_request"; } | {result:LoopToolCallResult;toolName:string;type:"tool_result"; } | {error:string;toolName:string;type:"tool_error"; } | {iteration:number;type:"max_iterations_reached"; } | {totalIterations:number;type:"loop_complete"; }
Defined in: packages/agentos/src/orchestration/runtime/LoopController.ts:176
Discriminated union of all events emitted by LoopController.execute.
Consumers can switch on event.type to handle each case.