@archastro/sdk
    Preparing search index...

    Interface AIChatStreamMessageComplete

    The fully assembled assistant message for one run of a streaming chat completion (SSE message_complete event).

    interface AIChatStreamMessageComplete {
        finish_reason?: string;
        message: AIMessage;
        usage?: Record<string, unknown>;
    }
    Index

    Properties

    finish_reason?: string

    Why the model stopped generating this message, e.g. "stop", "length", or "tool_calls".

    message: AIMessage

    The complete assistant message for this run, assembled from the preceding deltas.

    usage?: Record<string, unknown>

    Token consumption for this run, keyed by model ID. null when usage data is unavailable.