Type alias GenerateOptions<T>

GenerateOptions<T>: {
    groupedProperties?: T extends undefined
        ? string[]
        : (keyof T)[];
    groupedTask?: string;
    singlePrompt?: string;
}

Options available when defining queries using methods in the collection.generate namespace.

Type Parameters

  • T

Type declaration

  • Optional groupedProperties?: T extends undefined
        ? string[]
        : (keyof T)[]

    The properties to use as context to be injected into the groupedTask prompt when performing the grouped generation.

  • Optional groupedTask?: string

    The prompt to use when generating content relevant to objects returned by the query as a whole.

  • Optional singlePrompt?: string

    The prompt to use when generating content relevant to each object of the collection individually.