unified-llm-client
    Preparing search index...

    Type Alias StreamChunk

    StreamChunk:
        | StreamEventBase & { delta: string; type: "text-delta" }
        | StreamEventBase & { id: string; name: string; type: "tool-call-start" }
        | StreamEventBase & {
            argsDelta: string;
            id: string;
            type: "tool-call-delta";
        }
        | StreamEventBase & {
            args: JsonObject;
            id: string;
            name: string;
            type: "tool-call-arguments";
        }
        | StreamEventBase & {
            id: string;
            isError?: boolean;
            name: string;
            result: JsonValue;
            type: "tool-call-result";
        }
        | StreamEventBase & {
            finishReason: CanonicalFinishReason;
            type: "done";
            usage: UsageMetrics;
        }
        | StreamEventBase & { error: Error; type: "error" }
        | StreamEventBase & {
            model: string;
            provider: CanonicalProvider;
            type: "response-start";
        }
        | StreamEventBase & { type: "reasoning-start" }
        | StreamEventBase & { delta: string; type: "reasoning-delta" }
        | StreamEventBase & { type: "reasoning-end" }
        | StreamEventBase & { type: "usage-update"; usage: UsageMetrics }
        | StreamEventBase & { attempt: number; error?: Error; type: "retry" }
        | StreamEventBase & {
            status: "refusal" | "structured-output";
            type: "response-status";
        }