AAI SDK
    Preparing search index...

    Type Alias GenerateResult<T>

    Result of one LLM generation call.

    type GenerateResult<T = unknown> = {
        object?: T;
        text: string;
    }

    Type Parameters

    • T = unknown
    Index
    object?: T

    The schema-validated object when schema was set; absent otherwise.

    text: string

    The generated text. For schema calls, the JSON-stringified object.