intellibrix v1.0.0
    Preparing search index...

    Type Alias LoopEvent

    LoopEvent:
        | { stepIndex: number; type: "step-start" }
        | { result: StepResult; stepIndex: number; type: "step-finish" }
        | {
            input: unknown;
            toolCallId: string;
            toolName: string;
            type: "tool-call-start";
        }
        | {
            input: unknown;
            toolCallId: string;
            toolName: string;
            type: "tool-call-approval-required";
        }
        | { toolCallId: string; toolName: string; type: "tool-call-denied" }
        | {
            isError?: boolean;
            output: unknown;
            toolCallId: string;
            toolName: string;
            type: "tool-call-finish";
        }
        | { messages: Message[]; steps: number; type: "loop-finish" }
        | { error: unknown; type: "error" }

    Typed events emitted at every stage of runAgentLoop.