@archastro/sdk
    Preparing search index...

    Interface AIChatStreamDone

    Terminal event marking the end of a streaming chat completion (SSE done event).

    interface AIChatStreamDone {
        finish_reason?: string;
        run_count?: number;
        total_usage?: Record<string, unknown>;
        usage?: Record<string, unknown>;
    }
    Index

    Properties

    finish_reason?: string

    The overall finish reason for the completion.

    run_count?: number

    Number of model runs executed, including continuations triggered by tool calls.

    total_usage?: Record<string, unknown>

    Aggregate token usage across every run in the completion (including tool-call continuations), keyed by model ID.

    usage?: Record<string, unknown>

    Token usage for the final run, keyed by model ID.