Documentation
    Preparing search index...

    Interface LlmGeneration

    Terminal generation result. Its content replaces any provisional deltas. Only finish: "stop" is normal completed output; toolUse carries at least one tool call, and length / refusal results carry no tool calls.

    interface LlmGeneration {
        content: LlmOutputPart[];
        finish: LlmFinish;
        usage?: LlmUsage;
    }
    Index

    Properties

    Properties

    content: LlmOutputPart[]

    Complete accumulated output; may be empty for length or refusal.

    finish: LlmFinish
    usage?: LlmUsage