AAI SDK
    Preparing search index...

    Type Alias GenerateOptions

    Options for one LLM generation call.

    type GenerateOptions = {
        llm?: LlmProvider | string;
        maxOutputTokens?: number;
        prompt: string;
        schema?: StandardSchemaV1 | Record<string, unknown>;
        system?: string;
        temperature?: number;
    }
    Index
    llm?: LlmProvider | string

    LLM provider for this call: a descriptor from @alexkroman1/aai/llm, or a model-id string ("creator/model" routes through the Vercel AI Gateway; a bare id through the AssemblyAI LLM Gateway — same shorthand as agent({ llm })). Defaults to the agent's own pipeline llm. Credentials resolve from the agent's env — an S2S agent can use generate by naming a provider whose API key it holds as a secret.

    maxOutputTokens?: number

    Cap on generated tokens passed through to the provider.

    prompt: string

    The user prompt for this call.

    schema?: StandardSchemaV1 | Record<string, unknown>

    Schema for structured output. When set, the model is constrained to the schema and the result's object carries the parsed value. Accepts a Zod schema (or any Standard Schema convertible to JSON Schema) — the typed result follows from it — or a plain JSON Schema object, in which case object is unknown.

    system?: string

    Optional system prompt.

    temperature?: number

    Sampling temperature passed through to the provider.