Type alias GenerativeGroupByReturn<T, C>

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

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

Type Parameters

Type declaration

  • Optional generated?: string

    Deprecated

    (use generative.text instead) The LLM-generated output applicable to this query as a whole.

  • Optional generative?: GenerativeGrouped<C>
  • groups: Record<string, GenerativeGroupByResult<T, C>>

    The groups that were created by the query.

  • objects: GroupByObject<T>[]

    The objects that were found by the query.