@posthog/ai 8.16.3 → 8.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,6 +186,8 @@ type PayloadOptions<T> = (T & {
186
186
  } & { [K in keyof T]?: never; });
187
187
  interface ItemIdentifiers {
188
188
  id?: string;
189
+ /** Model used for this execution. Omitted or null inherits the experiment's model. */
190
+ modelVersion?: string | null;
189
191
  caseKey?: string | null;
190
192
  trial?: string | null;
191
193
  datasetItemIdentifier?: string | null;
@@ -233,6 +235,7 @@ declare class EvaluationItem {
233
235
  static fromDatasetItem(item: DatasetItem, options?: {
234
236
  output?: JSONValue;
235
237
  id?: string;
238
+ modelVersion?: string | null;
236
239
  caseKey?: string;
237
240
  trial?: string;
238
241
  applicationTraceId?: string;
@@ -624,6 +624,7 @@ const RESULT_FIELDS = {
624
624
  metadata: "metadata"
625
625
  };
626
626
  const ITEM_IDS = {
627
+ modelVersion: "model_version",
627
628
  caseKey: "case_key",
628
629
  trial: "trial",
629
630
  datasetItemIdentifier: "dataset_item_identifier",
@@ -722,6 +723,7 @@ var EvaluationItem = class EvaluationItem {
722
723
  keys(options, [
723
724
  "output",
724
725
  "id",
726
+ "modelVersion",
725
727
  "caseKey",
726
728
  "trial",
727
729
  "applicationTraceId"