@arizeai/phoenix-client 6.8.0 → 6.9.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.
Files changed (170) hide show
  1. package/README.md +77 -0
  2. package/dist/esm/__generated__/api/v1.d.ts +313 -19
  3. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  4. package/dist/esm/constants/serverRequirements.d.ts +2 -0
  5. package/dist/esm/constants/serverRequirements.d.ts.map +1 -1
  6. package/dist/esm/constants/serverRequirements.js +15 -0
  7. package/dist/esm/constants/serverRequirements.js.map +1 -1
  8. package/dist/esm/datasets/appendDatasetExamples.d.ts +9 -3
  9. package/dist/esm/datasets/appendDatasetExamples.d.ts.map +1 -1
  10. package/dist/esm/datasets/appendDatasetExamples.js +23 -3
  11. package/dist/esm/datasets/appendDatasetExamples.js.map +1 -1
  12. package/dist/esm/datasets/createDataset.d.ts +4 -1
  13. package/dist/esm/datasets/createDataset.d.ts.map +1 -1
  14. package/dist/esm/datasets/createDataset.js +38 -3
  15. package/dist/esm/datasets/createDataset.js.map +1 -1
  16. package/dist/esm/datasets/getDatasetExamples.d.ts.map +1 -1
  17. package/dist/esm/datasets/getDatasetExamples.js +3 -2
  18. package/dist/esm/datasets/getDatasetExamples.js.map +1 -1
  19. package/dist/esm/datasets/index.d.ts +0 -1
  20. package/dist/esm/datasets/index.d.ts.map +1 -1
  21. package/dist/esm/datasets/index.js +0 -1
  22. package/dist/esm/datasets/index.js.map +1 -1
  23. package/dist/esm/experiments/resumeEvaluation.d.ts.map +1 -1
  24. package/dist/esm/experiments/resumeEvaluation.js +2 -1
  25. package/dist/esm/experiments/resumeEvaluation.js.map +1 -1
  26. package/dist/esm/experiments/resumeExperiment.d.ts.map +1 -1
  27. package/dist/esm/experiments/resumeExperiment.js +3 -2
  28. package/dist/esm/experiments/resumeExperiment.js.map +1 -1
  29. package/dist/esm/experiments/runExperiment.js +1 -1
  30. package/dist/esm/experiments/runExperiment.js.map +1 -1
  31. package/dist/esm/sessions/addSessionNote.d.ts +45 -0
  32. package/dist/esm/sessions/addSessionNote.d.ts.map +1 -0
  33. package/dist/esm/sessions/addSessionNote.js +45 -0
  34. package/dist/esm/sessions/addSessionNote.js.map +1 -0
  35. package/dist/esm/sessions/index.d.ts +1 -0
  36. package/dist/esm/sessions/index.d.ts.map +1 -1
  37. package/dist/esm/sessions/index.js +1 -0
  38. package/dist/esm/sessions/index.js.map +1 -1
  39. package/dist/esm/spans/addSpanNote.d.ts +5 -3
  40. package/dist/esm/spans/addSpanNote.d.ts.map +1 -1
  41. package/dist/esm/spans/addSpanNote.js +7 -4
  42. package/dist/esm/spans/addSpanNote.js.map +1 -1
  43. package/dist/esm/traces/addTraceAnnotation.d.ts +43 -0
  44. package/dist/esm/traces/addTraceAnnotation.d.ts.map +1 -0
  45. package/dist/esm/traces/addTraceAnnotation.js +43 -0
  46. package/dist/esm/traces/addTraceAnnotation.js.map +1 -0
  47. package/dist/esm/traces/addTraceNote.d.ts +5 -2
  48. package/dist/esm/traces/addTraceNote.d.ts.map +1 -1
  49. package/dist/esm/traces/addTraceNote.js +7 -3
  50. package/dist/esm/traces/addTraceNote.js.map +1 -1
  51. package/dist/esm/traces/index.d.ts +3 -0
  52. package/dist/esm/traces/index.d.ts.map +1 -1
  53. package/dist/esm/traces/index.js +2 -0
  54. package/dist/esm/traces/index.js.map +1 -1
  55. package/dist/esm/traces/logTraceAnnotations.d.ts +53 -0
  56. package/dist/esm/traces/logTraceAnnotations.d.ts.map +1 -0
  57. package/dist/esm/traces/logTraceAnnotations.js +50 -0
  58. package/dist/esm/traces/logTraceAnnotations.js.map +1 -0
  59. package/dist/esm/traces/types.d.ts +24 -0
  60. package/dist/esm/traces/types.d.ts.map +1 -0
  61. package/dist/esm/traces/types.js +38 -0
  62. package/dist/esm/traces/types.js.map +1 -0
  63. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  64. package/dist/esm/types/datasets.d.ts +10 -1
  65. package/dist/esm/types/datasets.d.ts.map +1 -1
  66. package/dist/esm/utils/apiErrorUtils.d.ts +2 -0
  67. package/dist/esm/utils/apiErrorUtils.d.ts.map +1 -0
  68. package/dist/esm/utils/apiErrorUtils.js +19 -0
  69. package/dist/esm/utils/apiErrorUtils.js.map +1 -0
  70. package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
  71. package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
  72. package/dist/src/__generated__/api/v1.d.ts +313 -19
  73. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  74. package/dist/src/constants/serverRequirements.d.ts +2 -0
  75. package/dist/src/constants/serverRequirements.d.ts.map +1 -1
  76. package/dist/src/constants/serverRequirements.js +16 -1
  77. package/dist/src/constants/serverRequirements.js.map +1 -1
  78. package/dist/src/datasets/appendDatasetExamples.d.ts +9 -3
  79. package/dist/src/datasets/appendDatasetExamples.d.ts.map +1 -1
  80. package/dist/src/datasets/appendDatasetExamples.js +24 -5
  81. package/dist/src/datasets/appendDatasetExamples.js.map +1 -1
  82. package/dist/src/datasets/createDataset.d.ts +4 -1
  83. package/dist/src/datasets/createDataset.d.ts.map +1 -1
  84. package/dist/src/datasets/createDataset.js +42 -5
  85. package/dist/src/datasets/createDataset.js.map +1 -1
  86. package/dist/src/datasets/getDatasetExamples.d.ts.map +1 -1
  87. package/dist/src/datasets/getDatasetExamples.js +15 -1
  88. package/dist/src/datasets/getDatasetExamples.js.map +1 -1
  89. package/dist/src/datasets/index.d.ts +0 -1
  90. package/dist/src/datasets/index.d.ts.map +1 -1
  91. package/dist/src/datasets/index.js +0 -1
  92. package/dist/src/datasets/index.js.map +1 -1
  93. package/dist/src/experiments/resumeEvaluation.d.ts.map +1 -1
  94. package/dist/src/experiments/resumeEvaluation.js +2 -1
  95. package/dist/src/experiments/resumeEvaluation.js.map +1 -1
  96. package/dist/src/experiments/resumeExperiment.d.ts.map +1 -1
  97. package/dist/src/experiments/resumeExperiment.js +3 -2
  98. package/dist/src/experiments/resumeExperiment.js.map +1 -1
  99. package/dist/src/experiments/runExperiment.js +1 -1
  100. package/dist/src/experiments/runExperiment.js.map +1 -1
  101. package/dist/src/sessions/addSessionNote.d.ts +45 -0
  102. package/dist/src/sessions/addSessionNote.d.ts.map +1 -0
  103. package/dist/src/sessions/addSessionNote.js +48 -0
  104. package/dist/src/sessions/addSessionNote.js.map +1 -0
  105. package/dist/src/sessions/index.d.ts +1 -0
  106. package/dist/src/sessions/index.d.ts.map +1 -1
  107. package/dist/src/sessions/index.js +1 -0
  108. package/dist/src/sessions/index.js.map +1 -1
  109. package/dist/src/spans/addSpanNote.d.ts +5 -3
  110. package/dist/src/spans/addSpanNote.d.ts.map +1 -1
  111. package/dist/src/spans/addSpanNote.js +7 -4
  112. package/dist/src/spans/addSpanNote.js.map +1 -1
  113. package/dist/src/traces/addTraceAnnotation.d.ts +43 -0
  114. package/dist/src/traces/addTraceAnnotation.d.ts.map +1 -0
  115. package/dist/src/traces/addTraceAnnotation.js +47 -0
  116. package/dist/src/traces/addTraceAnnotation.js.map +1 -0
  117. package/dist/src/traces/addTraceNote.d.ts +5 -2
  118. package/dist/src/traces/addTraceNote.d.ts.map +1 -1
  119. package/dist/src/traces/addTraceNote.js +7 -3
  120. package/dist/src/traces/addTraceNote.js.map +1 -1
  121. package/dist/src/traces/index.d.ts +3 -0
  122. package/dist/src/traces/index.d.ts.map +1 -1
  123. package/dist/src/traces/index.js +2 -0
  124. package/dist/src/traces/index.js.map +1 -1
  125. package/dist/src/traces/logTraceAnnotations.d.ts +53 -0
  126. package/dist/src/traces/logTraceAnnotations.d.ts.map +1 -0
  127. package/dist/src/traces/logTraceAnnotations.js +53 -0
  128. package/dist/src/traces/logTraceAnnotations.js.map +1 -0
  129. package/dist/src/traces/types.d.ts +24 -0
  130. package/dist/src/traces/types.d.ts.map +1 -0
  131. package/dist/src/traces/types.js +42 -0
  132. package/dist/src/traces/types.js.map +1 -0
  133. package/dist/src/types/datasets.d.ts +10 -1
  134. package/dist/src/types/datasets.d.ts.map +1 -1
  135. package/dist/src/utils/apiErrorUtils.d.ts +2 -0
  136. package/dist/src/utils/apiErrorUtils.d.ts.map +1 -0
  137. package/dist/src/utils/apiErrorUtils.js +22 -0
  138. package/dist/src/utils/apiErrorUtils.js.map +1 -0
  139. package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
  140. package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
  141. package/dist/tsconfig.tsbuildinfo +1 -1
  142. package/package.json +3 -3
  143. package/src/__generated__/api/v1.ts +313 -19
  144. package/src/constants/serverRequirements.ts +17 -0
  145. package/src/datasets/appendDatasetExamples.ts +26 -5
  146. package/src/datasets/createDataset.ts +66 -18
  147. package/src/datasets/getDatasetExamples.ts +7 -4
  148. package/src/datasets/index.ts +0 -1
  149. package/src/experiments/resumeEvaluation.ts +2 -1
  150. package/src/experiments/resumeExperiment.ts +3 -2
  151. package/src/experiments/runExperiment.ts +1 -1
  152. package/src/sessions/addSessionNote.ts +74 -0
  153. package/src/sessions/index.ts +1 -0
  154. package/src/spans/addSpanNote.ts +7 -4
  155. package/src/traces/addTraceAnnotation.ts +65 -0
  156. package/src/traces/addTraceNote.ts +7 -3
  157. package/src/traces/index.ts +3 -0
  158. package/src/traces/logTraceAnnotations.ts +75 -0
  159. package/src/traces/types.ts +72 -0
  160. package/src/types/datasets.ts +10 -1
  161. package/src/utils/apiErrorUtils.ts +17 -0
  162. package/dist/esm/datasets/createOrGetDataset.d.ts +0 -18
  163. package/dist/esm/datasets/createOrGetDataset.d.ts.map +0 -1
  164. package/dist/esm/datasets/createOrGetDataset.js +0 -29
  165. package/dist/esm/datasets/createOrGetDataset.js.map +0 -1
  166. package/dist/src/datasets/createOrGetDataset.d.ts +0 -18
  167. package/dist/src/datasets/createOrGetDataset.d.ts.map +0 -1
  168. package/dist/src/datasets/createOrGetDataset.js +0 -32
  169. package/dist/src/datasets/createOrGetDataset.js.map +0 -1
  170. package/src/datasets/createOrGetDataset.ts +0 -40
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arizeai/phoenix-client",
3
- "version": "6.8.0",
3
+ "version": "6.9.0",
4
4
  "description": "A client for the Phoenix API",
5
5
  "keywords": [
6
6
  "arize",
@@ -79,8 +79,8 @@
79
79
  "openapi-fetch": "^0.12.5",
80
80
  "tiny-invariant": "^1.3.3",
81
81
  "zod": "^4.0.14",
82
- "@arizeai/phoenix-otel": "1.0.0",
83
- "@arizeai/phoenix-config": "0.1.3"
82
+ "@arizeai/phoenix-config": "0.1.3",
83
+ "@arizeai/phoenix-otel": "1.0.0"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@ai-sdk/openai": "^3.0.29",
@@ -67,7 +67,10 @@ export interface paths {
67
67
  path?: never;
68
68
  cookie?: never;
69
69
  };
70
- /** Get span annotations for a list of span_ids. */
70
+ /**
71
+ * Get span annotations filtered by span_ids and/or identifier.
72
+ * @description Return span annotations for a project, filtered by `span_ids`, `identifier`, or both. At least one of `span_ids` or `identifier` must be supplied. When both are supplied, results are the AND-intersection of the two filters.
73
+ */
71
74
  get: operations["listSpanAnnotationsBySpanIds"];
72
75
  put?: never;
73
76
  post?: never;
@@ -84,7 +87,10 @@ export interface paths {
84
87
  path?: never;
85
88
  cookie?: never;
86
89
  };
87
- /** Get trace annotations for a list of trace_ids. */
90
+ /**
91
+ * Get trace annotations filtered by trace_ids and/or identifier.
92
+ * @description Return trace annotations for a project, filtered by `trace_ids`, `identifier`, or both. At least one of `trace_ids` or `identifier` must be supplied. When both are supplied, results are the AND-intersection of the two filters.
93
+ */
88
94
  get: operations["listTraceAnnotationsByTraceIds"];
89
95
  put?: never;
90
96
  post?: never;
@@ -101,7 +107,10 @@ export interface paths {
101
107
  path?: never;
102
108
  cookie?: never;
103
109
  };
104
- /** Get session annotations for a list of session_ids. */
110
+ /**
111
+ * Get session annotations filtered by session_ids and/or identifier.
112
+ * @description Return session annotations for a project, filtered by `session_ids`, `identifier`, or both. At least one of `session_ids` or `identifier` must be supplied. When both are supplied, results are the AND-intersection of the two filters.
113
+ */
105
114
  get: operations["listSessionAnnotationsBySessionIds"];
106
115
  put?: never;
107
116
  post?: never;
@@ -214,6 +223,23 @@ export interface paths {
214
223
  patch?: never;
215
224
  trace?: never;
216
225
  };
226
+ "/v1/datasets/{id}/jsonl": {
227
+ parameters: {
228
+ query?: never;
229
+ header?: never;
230
+ path?: never;
231
+ cookie?: never;
232
+ };
233
+ /** Download dataset examples as JSONL file */
234
+ get: operations["getDatasetJSONL"];
235
+ put?: never;
236
+ post?: never;
237
+ delete?: never;
238
+ options?: never;
239
+ head?: never;
240
+ patch?: never;
241
+ trace?: never;
242
+ };
217
243
  "/v1/datasets/{id}/jsonl/openai_ft": {
218
244
  parameters: {
219
245
  query?: never;
@@ -469,7 +495,7 @@ export interface paths {
469
495
  put?: never;
470
496
  /**
471
497
  * Create a trace note
472
- * @description Add a note annotation to a trace. Notes are special annotations that allow multiple entries per trace (unlike regular annotations which are unique by name and identifier). Each note gets a unique UUIDv4 identifier.
498
+ * @description Add a note annotation to a trace. Each call appends a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same trace. Structured annotations, by contrast, are keyed by (name, trace_id, identifier) — re-writing the same key overwrites the existing annotation, so to keep multiple structured annotations with the same name on a trace you must supply distinct identifiers.
473
499
  */
474
500
  post: operations["createTraceNote"];
475
501
  delete?: never;
@@ -574,7 +600,7 @@ export interface paths {
574
600
  put?: never;
575
601
  /**
576
602
  * Create a span note
577
- * @description Add a note annotation to a span. Notes are special annotations that allow multiple entries per span (unlike regular annotations which are unique by name and identifier). Each note gets a unique UUIDv4 identifier.
603
+ * @description Add a note annotation to a span. Each call appends a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same span. Structured annotations, by contrast, are keyed by (name, span_id, identifier) — re-writing the same key overwrites the existing annotation, so to keep multiple structured annotations with the same name on a span you must supply distinct identifiers.
578
604
  */
579
605
  post: operations["createSpanNote"];
580
606
  delete?: never;
@@ -914,6 +940,26 @@ export interface paths {
914
940
  patch?: never;
915
941
  trace?: never;
916
942
  };
943
+ "/v1/session_notes": {
944
+ parameters: {
945
+ query?: never;
946
+ header?: never;
947
+ path?: never;
948
+ cookie?: never;
949
+ };
950
+ get?: never;
951
+ put?: never;
952
+ /**
953
+ * Create a session note
954
+ * @description Add a note annotation to a session. Each call appends a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same session. Structured annotations, by contrast, are keyed by (name, session_id, identifier) — re-writing the same key overwrites the existing annotation, so to keep multiple structured annotations with the same name on a session you must supply distinct identifiers.
955
+ */
956
+ post: operations["createSessionNote"];
957
+ delete?: never;
958
+ options?: never;
959
+ head?: never;
960
+ patch?: never;
961
+ trace?: never;
962
+ };
917
963
  "/v1/document_annotations": {
918
964
  parameters: {
919
965
  query?: never;
@@ -1285,6 +1331,14 @@ export interface components {
1285
1331
  CreatePromptResponseBody: {
1286
1332
  data: components["schemas"]["PromptVersion"];
1287
1333
  };
1334
+ /** CreateSessionNoteRequestBody */
1335
+ CreateSessionNoteRequestBody: {
1336
+ data: components["schemas"]["SessionNoteData"];
1337
+ };
1338
+ /** CreateSessionNoteResponseBody */
1339
+ CreateSessionNoteResponseBody: {
1340
+ data: components["schemas"]["InsertedSessionAnnotation"];
1341
+ };
1288
1342
  /** CreateSpanNoteRequestBody */
1289
1343
  CreateSpanNoteRequestBody: {
1290
1344
  data: components["schemas"]["SpanNoteData"];
@@ -1363,6 +1417,8 @@ export interface components {
1363
1417
  DatasetExample: {
1364
1418
  /** Id */
1365
1419
  id: string;
1420
+ /** Node Id */
1421
+ node_id: string;
1366
1422
  /** Input */
1367
1423
  input: {
1368
1424
  [key: string]: unknown;
@@ -2215,8 +2271,34 @@ export interface components {
2215
2271
  top_p?: number;
2216
2272
  /** Stop Sequences */
2217
2273
  stop_sequences?: string[];
2274
+ output_config?: components["schemas"]["PromptAnthropicOutputConfig"];
2218
2275
  /** Thinking */
2219
- thinking?: components["schemas"]["PromptAnthropicThinkingConfigDisabled"] | components["schemas"]["PromptAnthropicThinkingConfigEnabled"];
2276
+ thinking?: components["schemas"]["PromptAnthropicThinkingConfigDisabled"] | components["schemas"]["PromptAnthropicThinkingConfigEnabled"] | components["schemas"]["PromptAnthropicThinkingConfigAdaptive"];
2277
+ /** Extra Body */
2278
+ extra_body?: {
2279
+ [key: string]: unknown;
2280
+ };
2281
+ };
2282
+ /** PromptAnthropicOutputConfig */
2283
+ PromptAnthropicOutputConfig: {
2284
+ /**
2285
+ * Effort
2286
+ * @enum {string}
2287
+ */
2288
+ effort?: "low" | "medium" | "high" | "xhigh" | "max";
2289
+ };
2290
+ /** PromptAnthropicThinkingConfigAdaptive */
2291
+ PromptAnthropicThinkingConfigAdaptive: {
2292
+ /**
2293
+ * @description discriminator enum property added by openapi-typescript
2294
+ * @enum {string}
2295
+ */
2296
+ type: "adaptive";
2297
+ /**
2298
+ * Display
2299
+ * @enum {string}
2300
+ */
2301
+ display?: "summarized" | "omitted";
2220
2302
  };
2221
2303
  /** PromptAnthropicThinkingConfigDisabled */
2222
2304
  PromptAnthropicThinkingConfigDisabled: {
@@ -2235,6 +2317,11 @@ export interface components {
2235
2317
  type: "enabled";
2236
2318
  /** Budget Tokens */
2237
2319
  budget_tokens: number;
2320
+ /**
2321
+ * Display
2322
+ * @enum {string}
2323
+ */
2324
+ display?: "summarized" | "omitted";
2238
2325
  };
2239
2326
  /** PromptAwsInvocationParameters */
2240
2327
  PromptAwsInvocationParameters: {
@@ -2253,6 +2340,8 @@ export interface components {
2253
2340
  temperature?: number;
2254
2341
  /** Top P */
2255
2342
  top_p?: number;
2343
+ /** Stop Sequences */
2344
+ stop_sequences?: string[];
2256
2345
  };
2257
2346
  /** PromptAzureOpenAIInvocationParameters */
2258
2347
  PromptAzureOpenAIInvocationParameters: {
@@ -2279,11 +2368,17 @@ export interface components {
2279
2368
  top_p?: number;
2280
2369
  /** Seed */
2281
2370
  seed?: number;
2371
+ /** Stop */
2372
+ stop?: string[];
2282
2373
  /**
2283
2374
  * Reasoning Effort
2284
2375
  * @enum {string}
2285
2376
  */
2286
2377
  reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
2378
+ /** Extra Body */
2379
+ extra_body?: {
2380
+ [key: string]: unknown;
2381
+ };
2287
2382
  };
2288
2383
  /** PromptCerebrasInvocationParameters */
2289
2384
  PromptCerebrasInvocationParameters: {
@@ -2310,11 +2405,17 @@ export interface components {
2310
2405
  top_p?: number;
2311
2406
  /** Seed */
2312
2407
  seed?: number;
2408
+ /** Stop */
2409
+ stop?: string[];
2313
2410
  /**
2314
2411
  * Reasoning Effort
2315
2412
  * @enum {string}
2316
2413
  */
2317
2414
  reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
2415
+ /** Extra Body */
2416
+ extra_body?: {
2417
+ [key: string]: unknown;
2418
+ };
2318
2419
  };
2319
2420
  /** PromptChatTemplate */
2320
2421
  PromptChatTemplate: {
@@ -2363,11 +2464,17 @@ export interface components {
2363
2464
  top_p?: number;
2364
2465
  /** Seed */
2365
2466
  seed?: number;
2467
+ /** Stop */
2468
+ stop?: string[];
2366
2469
  /**
2367
2470
  * Reasoning Effort
2368
2471
  * @enum {string}
2369
2472
  */
2370
2473
  reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
2474
+ /** Extra Body */
2475
+ extra_body?: {
2476
+ [key: string]: unknown;
2477
+ };
2371
2478
  };
2372
2479
  /** PromptFireworksInvocationParameters */
2373
2480
  PromptFireworksInvocationParameters: {
@@ -2394,11 +2501,17 @@ export interface components {
2394
2501
  top_p?: number;
2395
2502
  /** Seed */
2396
2503
  seed?: number;
2504
+ /** Stop */
2505
+ stop?: string[];
2397
2506
  /**
2398
2507
  * Reasoning Effort
2399
2508
  * @enum {string}
2400
2509
  */
2401
2510
  reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
2511
+ /** Extra Body */
2512
+ extra_body?: {
2513
+ [key: string]: unknown;
2514
+ };
2402
2515
  };
2403
2516
  /** PromptGoogleInvocationParameters */
2404
2517
  PromptGoogleInvocationParameters: {
@@ -2425,6 +2538,19 @@ export interface components {
2425
2538
  top_p?: number;
2426
2539
  /** Top K */
2427
2540
  top_k?: number;
2541
+ thinking_config?: components["schemas"]["PromptGoogleThinkingConfig"];
2542
+ };
2543
+ /** PromptGoogleThinkingConfig */
2544
+ PromptGoogleThinkingConfig: {
2545
+ /** Thinking Budget */
2546
+ thinking_budget?: number;
2547
+ /**
2548
+ * Thinking Level
2549
+ * @enum {string}
2550
+ */
2551
+ thinking_level?: "minimal" | "low" | "medium" | "high";
2552
+ /** Include Thoughts */
2553
+ include_thoughts?: boolean;
2428
2554
  };
2429
2555
  /** PromptGroqInvocationParameters */
2430
2556
  PromptGroqInvocationParameters: {
@@ -2451,11 +2577,17 @@ export interface components {
2451
2577
  top_p?: number;
2452
2578
  /** Seed */
2453
2579
  seed?: number;
2580
+ /** Stop */
2581
+ stop?: string[];
2454
2582
  /**
2455
2583
  * Reasoning Effort
2456
2584
  * @enum {string}
2457
2585
  */
2458
2586
  reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
2587
+ /** Extra Body */
2588
+ extra_body?: {
2589
+ [key: string]: unknown;
2590
+ };
2459
2591
  };
2460
2592
  /** PromptMessage */
2461
2593
  PromptMessage: {
@@ -2492,11 +2624,17 @@ export interface components {
2492
2624
  top_p?: number;
2493
2625
  /** Seed */
2494
2626
  seed?: number;
2627
+ /** Stop */
2628
+ stop?: string[];
2495
2629
  /**
2496
2630
  * Reasoning Effort
2497
2631
  * @enum {string}
2498
2632
  */
2499
2633
  reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
2634
+ /** Extra Body */
2635
+ extra_body?: {
2636
+ [key: string]: unknown;
2637
+ };
2500
2638
  };
2501
2639
  /** PromptOllamaInvocationParameters */
2502
2640
  PromptOllamaInvocationParameters: {
@@ -2523,11 +2661,17 @@ export interface components {
2523
2661
  top_p?: number;
2524
2662
  /** Seed */
2525
2663
  seed?: number;
2664
+ /** Stop */
2665
+ stop?: string[];
2526
2666
  /**
2527
2667
  * Reasoning Effort
2528
2668
  * @enum {string}
2529
2669
  */
2530
2670
  reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
2671
+ /** Extra Body */
2672
+ extra_body?: {
2673
+ [key: string]: unknown;
2674
+ };
2531
2675
  };
2532
2676
  /** PromptOpenAIInvocationParameters */
2533
2677
  PromptOpenAIInvocationParameters: {
@@ -2554,11 +2698,17 @@ export interface components {
2554
2698
  top_p?: number;
2555
2699
  /** Seed */
2556
2700
  seed?: number;
2701
+ /** Stop */
2702
+ stop?: string[];
2557
2703
  /**
2558
2704
  * Reasoning Effort
2559
2705
  * @enum {string}
2560
2706
  */
2561
2707
  reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
2708
+ /** Extra Body */
2709
+ extra_body?: {
2710
+ [key: string]: unknown;
2711
+ };
2562
2712
  };
2563
2713
  /** PromptPerplexityInvocationParameters */
2564
2714
  PromptPerplexityInvocationParameters: {
@@ -2585,11 +2735,17 @@ export interface components {
2585
2735
  top_p?: number;
2586
2736
  /** Seed */
2587
2737
  seed?: number;
2738
+ /** Stop */
2739
+ stop?: string[];
2588
2740
  /**
2589
2741
  * Reasoning Effort
2590
2742
  * @enum {string}
2591
2743
  */
2592
2744
  reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
2745
+ /** Extra Body */
2746
+ extra_body?: {
2747
+ [key: string]: unknown;
2748
+ };
2593
2749
  };
2594
2750
  /** PromptResponseFormatJSONSchema */
2595
2751
  PromptResponseFormatJSONSchema: {
@@ -2658,11 +2814,17 @@ export interface components {
2658
2814
  top_p?: number;
2659
2815
  /** Seed */
2660
2816
  seed?: number;
2817
+ /** Stop */
2818
+ stop?: string[];
2661
2819
  /**
2662
2820
  * Reasoning Effort
2663
2821
  * @enum {string}
2664
2822
  */
2665
2823
  reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
2824
+ /** Extra Body */
2825
+ extra_body?: {
2826
+ [key: string]: unknown;
2827
+ };
2666
2828
  };
2667
2829
  /** PromptToolChoiceNone */
2668
2830
  PromptToolChoiceNone: {
@@ -2809,11 +2971,17 @@ export interface components {
2809
2971
  top_p?: number;
2810
2972
  /** Seed */
2811
2973
  seed?: number;
2974
+ /** Stop */
2975
+ stop?: string[];
2812
2976
  /**
2813
2977
  * Reasoning Effort
2814
2978
  * @enum {string}
2815
2979
  */
2816
2980
  reasoning_effort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
2981
+ /** Extra Body */
2982
+ extra_body?: {
2983
+ [key: string]: unknown;
2984
+ };
2817
2985
  };
2818
2986
  /** ResponseBody[UpsertOrDeleteSecretsResult] */
2819
2987
  ResponseBody_UpsertOrDeleteSecretsResult_: {
@@ -2947,6 +3115,19 @@ export interface components {
2947
3115
  /** Traces */
2948
3116
  traces: components["schemas"]["SessionTraceData"][];
2949
3117
  };
3118
+ /** SessionNoteData */
3119
+ SessionNoteData: {
3120
+ /**
3121
+ * Session Id
3122
+ * @description Session ID
3123
+ */
3124
+ session_id: string;
3125
+ /**
3126
+ * Note
3127
+ * @description The note text to add to the session
3128
+ */
3129
+ note: string;
3130
+ };
2950
3131
  /** SessionTraceData */
2951
3132
  SessionTraceData: {
2952
3133
  /** Id */
@@ -3468,6 +3649,12 @@ export interface components {
3468
3649
  dataset_id: string;
3469
3650
  /** Version Id */
3470
3651
  version_id: string;
3652
+ /** Num Created Examples */
3653
+ num_created_examples: number;
3654
+ /** Num Updated Examples */
3655
+ num_updated_examples: number;
3656
+ /** Num Deleted Examples */
3657
+ num_deleted_examples: number;
3471
3658
  };
3472
3659
  /** UploadDatasetResponseBody */
3473
3660
  UploadDatasetResponseBody: {
@@ -3789,9 +3976,11 @@ export interface operations {
3789
3976
  };
3790
3977
  listSpanAnnotationsBySpanIds: {
3791
3978
  parameters: {
3792
- query: {
3793
- /** @description One or more span id to fetch annotations for */
3794
- span_ids: string[];
3979
+ query?: {
3980
+ /** @description Optional list of span ids to fetch annotations for. If omitted, `identifier` must be supplied. */
3981
+ span_ids?: string[] | null;
3982
+ /** @description Optional list of annotation identifiers to filter by. Each value must be non-empty. If omitted, `span_ids` must be supplied. When combined with `span_ids`, results are the AND-intersection of both filters. */
3983
+ identifier?: string[] | null;
3795
3984
  /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned. 'note' annotations are excluded by default unless explicitly included in this list. */
3796
3985
  include_annotation_names?: string[] | null;
3797
3986
  /** @description Optional list of annotation names to exclude from results. */
@@ -3850,9 +4039,11 @@ export interface operations {
3850
4039
  };
3851
4040
  listTraceAnnotationsByTraceIds: {
3852
4041
  parameters: {
3853
- query: {
3854
- /** @description One or more trace id to fetch annotations for */
3855
- trace_ids: string[];
4042
+ query?: {
4043
+ /** @description Optional list of trace ids to fetch annotations for. If omitted, `identifier` must be supplied. */
4044
+ trace_ids?: string[] | null;
4045
+ /** @description Optional list of annotation identifiers to filter by. Each value must be non-empty. If omitted, `trace_ids` must be supplied. When combined with `trace_ids`, results are the AND-intersection of both filters. */
4046
+ identifier?: string[] | null;
3856
4047
  /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned. 'note' annotations are excluded by default unless explicitly included in this list. */
3857
4048
  include_annotation_names?: string[] | null;
3858
4049
  /** @description Optional list of annotation names to exclude from results. */
@@ -3911,9 +4102,11 @@ export interface operations {
3911
4102
  };
3912
4103
  listSessionAnnotationsBySessionIds: {
3913
4104
  parameters: {
3914
- query: {
3915
- /** @description One or more session id to fetch annotations for */
3916
- session_ids: string[];
4105
+ query?: {
4106
+ /** @description Optional list of session ids to fetch annotations for. If omitted, `identifier` must be supplied. */
4107
+ session_ids?: string[] | null;
4108
+ /** @description Optional list of annotation identifiers to filter by. Each value must be non-empty. If omitted, `session_ids` must be supplied. When combined with `session_ids`, results are the AND-intersection of both filters. */
4109
+ identifier?: string[] | null;
3917
4110
  /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned. 'note' annotations are excluded by default unless explicitly included in this list. */
3918
4111
  include_annotation_names?: string[] | null;
3919
4112
  /** @description Optional list of annotation names to exclude from results. */
@@ -4173,7 +4366,7 @@ export interface operations {
4173
4366
  content: {
4174
4367
  "application/json": {
4175
4368
  /** @enum {string} */
4176
- action?: "create" | "append";
4369
+ action?: "create" | "append" | "update";
4177
4370
  name: string;
4178
4371
  description?: string;
4179
4372
  inputs: Record<string, unknown>[];
@@ -4183,21 +4376,27 @@ export interface operations {
4183
4376
  splits?: (string | string[] | null)[];
4184
4377
  /** @description Span IDs to link examples back to spans */
4185
4378
  span_ids?: (string | null)[];
4379
+ /** @description Optional example ID per example. If provided, it is used as the example's stable public ID. */
4380
+ example_ids?: (string | null)[];
4186
4381
  };
4187
4382
  "multipart/form-data": {
4188
4383
  /** @enum {string} */
4189
- action?: "create" | "append";
4384
+ action?: "create" | "append" | "update";
4190
4385
  name: string;
4191
4386
  description?: string;
4192
4387
  "input_keys[]": string[];
4193
4388
  "output_keys[]": string[];
4194
4389
  "metadata_keys[]"?: string[];
4195
- /** @description Column names for auto-assigning examples to splits */
4390
+ /** @description Deprecated: use split_key instead. Column names for auto-assigning examples to splits */
4196
4391
  "split_keys[]"?: string[];
4392
+ /** @description Single column name containing split names (plain string or JSON list) per row */
4393
+ split_key?: string;
4197
4394
  /** @description Column names whose object values should be flattened into their selected bucket */
4198
4395
  "flatten_keys[]"?: string[];
4199
4396
  /** @description Column name for span IDs to link examples back to spans */
4200
4397
  span_id_key?: string;
4398
+ /** @description Column name containing stable IDs for examples. When provided, examples with matching IDs are updated in place when their content changes. */
4399
+ example_id_key?: string;
4201
4400
  /** Format: binary */
4202
4401
  file: string;
4203
4402
  };
@@ -4222,7 +4421,7 @@ export interface operations {
4222
4421
  "text/plain": string;
4223
4422
  };
4224
4423
  };
4225
- /** @description Dataset of the same name already exists */
4424
+ /** @description Dataset with the given name already exists (action=create). */
4226
4425
  409: {
4227
4426
  headers: {
4228
4427
  [name: string]: unknown;
@@ -4341,6 +4540,50 @@ export interface operations {
4341
4540
  };
4342
4541
  };
4343
4542
  };
4543
+ getDatasetJSONL: {
4544
+ parameters: {
4545
+ query?: {
4546
+ /** @description The ID of the dataset version (if omitted, returns data from the latest version) */
4547
+ version_id?: string | null;
4548
+ };
4549
+ header?: never;
4550
+ path: {
4551
+ /** @description The ID of the dataset */
4552
+ id: string;
4553
+ };
4554
+ cookie?: never;
4555
+ };
4556
+ requestBody?: never;
4557
+ responses: {
4558
+ /** @description Successful Response */
4559
+ 200: {
4560
+ headers: {
4561
+ [name: string]: unknown;
4562
+ };
4563
+ content: {
4564
+ "text/plain": string;
4565
+ };
4566
+ };
4567
+ /** @description Forbidden */
4568
+ 403: {
4569
+ headers: {
4570
+ [name: string]: unknown;
4571
+ };
4572
+ content: {
4573
+ "text/plain": string;
4574
+ };
4575
+ };
4576
+ /** @description Invalid dataset or version ID */
4577
+ 422: {
4578
+ headers: {
4579
+ [name: string]: unknown;
4580
+ };
4581
+ content: {
4582
+ "text/plain": string;
4583
+ };
4584
+ };
4585
+ };
4586
+ };
4344
4587
  getDatasetJSONLOpenAIFineTuning: {
4345
4588
  parameters: {
4346
4589
  query?: {
@@ -6565,6 +6808,57 @@ export interface operations {
6565
6808
  };
6566
6809
  };
6567
6810
  };
6811
+ createSessionNote: {
6812
+ parameters: {
6813
+ query?: never;
6814
+ header?: never;
6815
+ path?: never;
6816
+ cookie?: never;
6817
+ };
6818
+ requestBody: {
6819
+ content: {
6820
+ "application/json": components["schemas"]["CreateSessionNoteRequestBody"];
6821
+ };
6822
+ };
6823
+ responses: {
6824
+ /** @description Session note created successfully */
6825
+ 200: {
6826
+ headers: {
6827
+ [name: string]: unknown;
6828
+ };
6829
+ content: {
6830
+ "application/json": components["schemas"]["CreateSessionNoteResponseBody"];
6831
+ };
6832
+ };
6833
+ /** @description Forbidden */
6834
+ 403: {
6835
+ headers: {
6836
+ [name: string]: unknown;
6837
+ };
6838
+ content: {
6839
+ "text/plain": string;
6840
+ };
6841
+ };
6842
+ /** @description Session not found */
6843
+ 404: {
6844
+ headers: {
6845
+ [name: string]: unknown;
6846
+ };
6847
+ content: {
6848
+ "text/plain": string;
6849
+ };
6850
+ };
6851
+ /** @description Validation Error */
6852
+ 422: {
6853
+ headers: {
6854
+ [name: string]: unknown;
6855
+ };
6856
+ content: {
6857
+ "application/json": components["schemas"]["HTTPValidationError"];
6858
+ };
6859
+ };
6860
+ };
6861
+ };
6568
6862
  annotateSpanDocuments: {
6569
6863
  parameters: {
6570
6864
  query?: {
@@ -60,6 +60,13 @@ export const ADD_TRACE_NOTE: RouteRequirement = {
60
60
  minServerVersion: [14, 13, 0],
61
61
  };
62
62
 
63
+ export const ADD_SESSION_NOTE: RouteRequirement = {
64
+ kind: "route",
65
+ method: "POST",
66
+ path: "/v1/session_notes",
67
+ minServerVersion: [14, 17, 0],
68
+ };
69
+
63
70
  export const GET_SPANS_TRACE_IDS: ParameterRequirement = {
64
71
  kind: "parameter",
65
72
  parameterName: "trace_id",
@@ -91,6 +98,14 @@ export const GET_SPANS_BY_ATTRIBUTE: ParameterRequirement = {
91
98
  minServerVersion: [14, 9, 0],
92
99
  };
93
100
 
101
+ export const DATASET_UPLOAD_EXAMPLE_IDS: ParameterRequirement = {
102
+ kind: "parameter",
103
+ parameterName: "example_ids",
104
+ parameterLocation: "body",
105
+ route: "POST /v1/datasets/upload",
106
+ minServerVersion: [15, 0, 0],
107
+ };
108
+
94
109
  /**
95
110
  * Aggregate list of every known capability requirement.
96
111
  *
@@ -104,8 +119,10 @@ export const ALL_REQUIREMENTS: readonly CapabilityRequirement[] = [
104
119
  LIST_PROJECT_SESSIONS,
105
120
  ANNOTATE_SESSIONS,
106
121
  ADD_TRACE_NOTE,
122
+ ADD_SESSION_NOTE,
107
123
  GET_SPANS_TRACE_IDS,
108
124
  GET_SPANS_FILTERS,
109
125
  GET_SPANS_BY_ATTRIBUTE,
110
126
  LIST_PROJECT_TRACES,
127
+ DATASET_UPLOAD_EXAMPLE_IDS,
111
128
  ] as const;