Type alias GenerativeGroupByReturn<T>

GenerativeGroupByReturn<T>: {
    generated?: string;
    groups: Record<string, GenerativeGroupByResult<T>>;
    objects: GroupByObject<T>[];
}

The return of a query method in the collection.generate namespace where the groupBy argument was specified.

Type Parameters

  • T

Type declaration

  • Optional generated?: string

    The LLM-generated output applicable to this query as a whole.

  • groups: Record<string, GenerativeGroupByResult<T>>

    The groups that were created by the query.

  • objects: GroupByObject<T>[]

    The objects that were found by the query.