AAI SDK
    Preparing search index...

    Type Alias GenerateFn

    GenerateFn: {
        <S extends StandardSchemaV1<unknown, unknown>>(
            options: GenerateOptions & { schema: S },
        ): Promise<GenerateResult<InferSchemaOutput<S>>>;
        (options: GenerateOptions): Promise<GenerateResult<unknown>>;
    }

    One-shot LLM generation — the signature of ctx.generate. A call with a Standard Schema schema returns a result whose object is typed by that schema; a plain-JSON-Schema or schemaless call returns unknown.

    Type Declaration