@arizeai/phoenix-client 6.9.3 → 6.10.1

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 (83) hide show
  1. package/dist/esm/__generated__/api/v1.d.ts +323 -47
  2. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  3. package/dist/esm/constants/serverRequirements.d.ts +3 -0
  4. package/dist/esm/constants/serverRequirements.d.ts.map +1 -1
  5. package/dist/esm/constants/serverRequirements.js +24 -0
  6. package/dist/esm/constants/serverRequirements.js.map +1 -1
  7. package/dist/esm/experiments/helpers/getExampleGlobalId.d.ts +8 -0
  8. package/dist/esm/experiments/helpers/getExampleGlobalId.d.ts.map +1 -0
  9. package/dist/esm/experiments/helpers/getExampleGlobalId.js +9 -0
  10. package/dist/esm/experiments/helpers/getExampleGlobalId.js.map +1 -0
  11. package/dist/esm/experiments/resumeEvaluation.d.ts.map +1 -1
  12. package/dist/esm/experiments/resumeEvaluation.js +2 -1
  13. package/dist/esm/experiments/resumeEvaluation.js.map +1 -1
  14. package/dist/esm/experiments/resumeExperiment.d.ts.map +1 -1
  15. package/dist/esm/experiments/resumeExperiment.js +3 -2
  16. package/dist/esm/experiments/resumeExperiment.js.map +1 -1
  17. package/dist/esm/experiments/runExperiment.d.ts.map +1 -1
  18. package/dist/esm/experiments/runExperiment.js +6 -3
  19. package/dist/esm/experiments/runExperiment.js.map +1 -1
  20. package/dist/esm/sessions/addSessionNote.d.ts +11 -2
  21. package/dist/esm/sessions/addSessionNote.d.ts.map +1 -1
  22. package/dist/esm/sessions/addSessionNote.js +12 -3
  23. package/dist/esm/sessions/addSessionNote.js.map +1 -1
  24. package/dist/esm/spans/addSpanNote.d.ts +11 -5
  25. package/dist/esm/spans/addSpanNote.d.ts.map +1 -1
  26. package/dist/esm/spans/addSpanNote.js +13 -5
  27. package/dist/esm/spans/addSpanNote.js.map +1 -1
  28. package/dist/esm/spans/getSpanAnnotations.d.ts +1 -1
  29. package/dist/esm/spans/getSpanAnnotations.d.ts.map +1 -1
  30. package/dist/esm/traces/addTraceNote.d.ts +11 -5
  31. package/dist/esm/traces/addTraceNote.d.ts.map +1 -1
  32. package/dist/esm/traces/addTraceNote.js +12 -6
  33. package/dist/esm/traces/addTraceNote.js.map +1 -1
  34. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  35. package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
  36. package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
  37. package/dist/src/__generated__/api/v1.d.ts +323 -47
  38. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  39. package/dist/src/constants/serverRequirements.d.ts +3 -0
  40. package/dist/src/constants/serverRequirements.d.ts.map +1 -1
  41. package/dist/src/constants/serverRequirements.js +25 -1
  42. package/dist/src/constants/serverRequirements.js.map +1 -1
  43. package/dist/src/experiments/helpers/getExampleGlobalId.d.ts +8 -0
  44. package/dist/src/experiments/helpers/getExampleGlobalId.d.ts.map +1 -0
  45. package/dist/src/experiments/helpers/getExampleGlobalId.js +13 -0
  46. package/dist/src/experiments/helpers/getExampleGlobalId.js.map +1 -0
  47. package/dist/src/experiments/resumeEvaluation.d.ts.map +1 -1
  48. package/dist/src/experiments/resumeEvaluation.js +2 -1
  49. package/dist/src/experiments/resumeEvaluation.js.map +1 -1
  50. package/dist/src/experiments/resumeExperiment.d.ts.map +1 -1
  51. package/dist/src/experiments/resumeExperiment.js +3 -2
  52. package/dist/src/experiments/resumeExperiment.js.map +1 -1
  53. package/dist/src/experiments/runExperiment.d.ts.map +1 -1
  54. package/dist/src/experiments/runExperiment.js +6 -3
  55. package/dist/src/experiments/runExperiment.js.map +1 -1
  56. package/dist/src/sessions/addSessionNote.d.ts +11 -2
  57. package/dist/src/sessions/addSessionNote.d.ts.map +1 -1
  58. package/dist/src/sessions/addSessionNote.js +11 -2
  59. package/dist/src/sessions/addSessionNote.js.map +1 -1
  60. package/dist/src/spans/addSpanNote.d.ts +11 -5
  61. package/dist/src/spans/addSpanNote.d.ts.map +1 -1
  62. package/dist/src/spans/addSpanNote.js +13 -5
  63. package/dist/src/spans/addSpanNote.js.map +1 -1
  64. package/dist/src/spans/getSpanAnnotations.d.ts +1 -1
  65. package/dist/src/spans/getSpanAnnotations.d.ts.map +1 -1
  66. package/dist/src/traces/addTraceNote.d.ts +11 -5
  67. package/dist/src/traces/addTraceNote.d.ts.map +1 -1
  68. package/dist/src/traces/addTraceNote.js +11 -5
  69. package/dist/src/traces/addTraceNote.js.map +1 -1
  70. package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
  71. package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
  72. package/dist/tsconfig.tsbuildinfo +1 -1
  73. package/package.json +1 -1
  74. package/src/__generated__/api/v1.ts +323 -47
  75. package/src/constants/serverRequirements.ts +27 -0
  76. package/src/experiments/helpers/getExampleGlobalId.ts +12 -0
  77. package/src/experiments/resumeEvaluation.ts +2 -1
  78. package/src/experiments/resumeExperiment.ts +3 -2
  79. package/src/experiments/runExperiment.ts +6 -3
  80. package/src/sessions/addSessionNote.ts +22 -3
  81. package/src/spans/addSpanNote.ts +20 -5
  82. package/src/spans/getSpanAnnotations.ts +1 -1
  83. package/src/traces/addTraceNote.ts +22 -6
@@ -572,7 +572,7 @@ export interface paths {
572
572
  put?: never;
573
573
  /**
574
574
  * Create a trace note
575
- * @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.
575
+ * @description Add a note annotation to a trace. By default each call appends a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same trace. Callers may supply a non-empty `identifier` to upsert on (trace_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note, matching the semantics of structured annotations.
576
576
  */
577
577
  post: operations["createTraceNote"];
578
578
  delete?: never;
@@ -677,7 +677,7 @@ export interface paths {
677
677
  put?: never;
678
678
  /**
679
679
  * Create a span note
680
- * @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.
680
+ * @description Add a note annotation to a span. By default each call appends a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same span. Callers may supply a non-empty `identifier` to upsert on (span_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note, matching the semantics of structured annotations.
681
681
  */
682
682
  post: operations["createSpanNote"];
683
683
  delete?: never;
@@ -1028,7 +1028,7 @@ export interface paths {
1028
1028
  put?: never;
1029
1029
  /**
1030
1030
  * Create a session note
1031
- * @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.
1031
+ * @description Add a note annotation to a session. By default each call appends a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same session. Callers may supply a non-empty `identifier` to upsert on (session_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note, matching the semantics of structured annotations.
1032
1032
  */
1033
1033
  post: operations["createSessionNote"];
1034
1034
  delete?: never;
@@ -1382,22 +1382,6 @@ export interface paths {
1382
1382
  export type webhooks = Record<string, never>;
1383
1383
  export interface components {
1384
1384
  schemas: {
1385
- /**
1386
- * AgentCapabilities
1387
- * @description Runtime capability state sent by the browser for a chat turn.
1388
- */
1389
- AgentCapabilities: {
1390
- /**
1391
- * Bash.Retaininactivesessions
1392
- * @default false
1393
- */
1394
- "bash.retainInactiveSessions"?: boolean;
1395
- /**
1396
- * Graphql.Mutations
1397
- * @default false
1398
- */
1399
- "graphql.mutations"?: boolean;
1400
- };
1401
1385
  /**
1402
1386
  * AgentSpanContext
1403
1387
  * @description Span the user has selected.
@@ -1557,6 +1541,31 @@ export interface components {
1557
1541
  /** Parts */
1558
1542
  parts: (components["schemas"]["TextUIPart"] | components["schemas"]["ReasoningUIPart"] | components["schemas"]["ToolInputStreamingPart"] | components["schemas"]["ToolInputAvailablePart"] | components["schemas"]["ToolOutputAvailablePart"] | components["schemas"]["ToolOutputErrorPart"] | components["schemas"]["ToolApprovalRequestedPart"] | components["schemas"]["ToolApprovalRespondedPart"] | components["schemas"]["ToolOutputDeniedPart"] | components["schemas"]["DynamicToolInputStreamingPart"] | components["schemas"]["DynamicToolInputAvailablePart"] | components["schemas"]["DynamicToolOutputAvailablePart"] | components["schemas"]["DynamicToolOutputErrorPart"] | components["schemas"]["DynamicToolApprovalRequestedPart"] | components["schemas"]["DynamicToolApprovalRespondedPart"] | components["schemas"]["DynamicToolOutputDeniedPart"] | components["schemas"]["SourceUrlUIPart"] | components["schemas"]["SourceDocumentUIPart"] | components["schemas"]["FileUIPart"] | components["schemas"]["DataUIPart"] | components["schemas"]["StepStartUIPart"])[];
1559
1543
  };
1544
+ /**
1545
+ * BuiltInProviderModelSelection
1546
+ * @description Chat against a Phoenix built-in provider.
1547
+ *
1548
+ * Credentials and connection details (base URL, Azure endpoint, AWS
1549
+ * region) are resolved from the secret store first and the process
1550
+ * environment second. ``openai_api_type`` is honoured by the OpenAI and
1551
+ * Azure OpenAI branches; other providers ignore it.
1552
+ */
1553
+ BuiltInProviderModelSelection: {
1554
+ /**
1555
+ * @description discriminator enum property added by openapi-typescript
1556
+ * @enum {string}
1557
+ */
1558
+ providerType: "builtin";
1559
+ provider: components["schemas"]["ModelProvider"];
1560
+ /** Modelname */
1561
+ modelName: string;
1562
+ /**
1563
+ * Openaiapitype
1564
+ * @default responses
1565
+ * @enum {string}
1566
+ */
1567
+ openaiApiType?: "chat_completions" | "responses";
1568
+ };
1560
1569
  /** CategoricalAnnotationConfig */
1561
1570
  CategoricalAnnotationConfig: {
1562
1571
  /** Name */
@@ -1599,12 +1608,8 @@ export interface components {
1599
1608
  /**
1600
1609
  * ChatContext
1601
1610
  * @description Discriminated union of every UI-state context the agent understands.
1602
- *
1603
- * Wrapped in ``RootModel`` so the generated OpenAPI schema exposes a single
1604
- * named ``ChatContext`` component instead of inlining the ``oneOf`` at every
1605
- * reference site. The actual member is accessible via ``.root``.
1606
1611
  */
1607
- ChatContext: components["schemas"]["AppContext"] | components["schemas"]["ProjectContext"] | components["schemas"]["TraceContext"] | components["schemas"]["AgentSpanContext"] | components["schemas"]["PlaygroundContext"];
1612
+ ChatContext: components["schemas"]["AppContext"] | components["schemas"]["ProjectContext"] | components["schemas"]["TraceContext"] | components["schemas"]["AgentSpanContext"] | components["schemas"]["PlaygroundContext"] | components["schemas"]["CodeEvaluatorContext"] | components["schemas"]["LlmEvaluatorContext"] | components["schemas"]["DatasetContext"] | components["schemas"]["GraphQLContext"] | components["schemas"]["WebAccessContext"];
1608
1613
  /**
1609
1614
  * ChatRegenerateMessage
1610
1615
  * @description Regenerate message extended with Phoenix-specific fields.
@@ -1633,7 +1638,19 @@ export interface components {
1633
1638
  exportRemoteTraces?: boolean;
1634
1639
  /** Contexts */
1635
1640
  contexts?: components["schemas"]["ChatContext"][];
1636
- capabilities?: components["schemas"]["AgentCapabilities"];
1641
+ /**
1642
+ * Editpermission
1643
+ * @default manual
1644
+ * @enum {string}
1645
+ */
1646
+ editPermission?: "manual" | "bypass";
1647
+ /**
1648
+ * Requestedskills
1649
+ * @description Skills the user explicitly requested via the prompt's slash-command affordance. The server force-loads each available skill by injecting a synthetic load_skill tool call/result at the tail of the message history. Unknown or context-unavailable names are ignored.
1650
+ */
1651
+ requestedSkills?: string[];
1652
+ /** Model */
1653
+ model: components["schemas"]["CustomProviderModelSelection"] | components["schemas"]["BuiltInProviderModelSelection"];
1637
1654
  } & {
1638
1655
  [key: string]: unknown;
1639
1656
  };
@@ -1668,10 +1685,35 @@ export interface components {
1668
1685
  exportRemoteTraces?: boolean;
1669
1686
  /** Contexts */
1670
1687
  contexts?: components["schemas"]["ChatContext"][];
1671
- capabilities?: components["schemas"]["AgentCapabilities"];
1688
+ /**
1689
+ * Editpermission
1690
+ * @default manual
1691
+ * @enum {string}
1692
+ */
1693
+ editPermission?: "manual" | "bypass";
1694
+ /**
1695
+ * Requestedskills
1696
+ * @description Skills the user explicitly requested via the prompt's slash-command affordance. The server force-loads each available skill by injecting a synthetic load_skill tool call/result at the tail of the message history. Unknown or context-unavailable names are ignored.
1697
+ */
1698
+ requestedSkills?: string[];
1699
+ /** Model */
1700
+ model: components["schemas"]["CustomProviderModelSelection"] | components["schemas"]["BuiltInProviderModelSelection"];
1672
1701
  } & {
1673
1702
  [key: string]: unknown;
1674
1703
  };
1704
+ /**
1705
+ * CodeEvaluatorContext
1706
+ * @description Code-evaluator create/edit form mounted in the current browser route.
1707
+ */
1708
+ CodeEvaluatorContext: {
1709
+ /**
1710
+ * @description discriminator enum property added by openapi-typescript
1711
+ * @enum {string}
1712
+ */
1713
+ type: "code_evaluator";
1714
+ /** Evaluatornodeid */
1715
+ evaluatorNodeId?: string | null;
1716
+ };
1675
1717
  /** ContinuousAnnotationConfig */
1676
1718
  ContinuousAnnotationConfig: {
1677
1719
  /** Name */
@@ -1887,6 +1929,21 @@ export interface components {
1887
1929
  /** Data */
1888
1930
  data: components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"] | components["schemas"]["LDAPUser"];
1889
1931
  };
1932
+ /**
1933
+ * CustomProviderModelSelection
1934
+ * @description Chat against a stored custom provider record.
1935
+ */
1936
+ CustomProviderModelSelection: {
1937
+ /**
1938
+ * @description discriminator enum property added by openapi-typescript
1939
+ * @enum {string}
1940
+ */
1941
+ providerType: "custom";
1942
+ /** Providerid */
1943
+ providerId: string;
1944
+ /** Modelname */
1945
+ modelName: string;
1946
+ };
1890
1947
  /**
1891
1948
  * DataUIPart
1892
1949
  * @description Data part with dynamic type based on data name.
@@ -1924,6 +1981,26 @@ export interface components {
1924
1981
  /** Example Count */
1925
1982
  example_count: number;
1926
1983
  };
1984
+ /**
1985
+ * DatasetContext
1986
+ * @description Dataset the user is currently viewing or has bound to a workflow.
1987
+ *
1988
+ * Carries the dataset's relay node id and, when known, the active version
1989
+ * node id. These IDs scope the create-form handoff link and the sampling of
1990
+ * active dataset examples used as prompt context; the dataset schema itself
1991
+ * is open.
1992
+ */
1993
+ DatasetContext: {
1994
+ /**
1995
+ * @description discriminator enum property added by openapi-typescript
1996
+ * @enum {string}
1997
+ */
1998
+ type: "dataset";
1999
+ /** Datasetnodeid */
2000
+ datasetNodeId: string;
2001
+ /** Datasetversionnodeid */
2002
+ datasetVersionNodeId?: string | null;
2003
+ };
1927
2004
  /** DatasetExample */
1928
2005
  DatasetExample: {
1929
2006
  /** Id */
@@ -2017,6 +2094,8 @@ export interface components {
2017
2094
  toolName: string;
2018
2095
  /** Toolcallid */
2019
2096
  toolCallId: string;
2097
+ /** Title */
2098
+ title?: string | null;
2020
2099
  /**
2021
2100
  * State
2022
2101
  * @default approval-requested
@@ -2025,6 +2104,8 @@ export interface components {
2025
2104
  state?: "approval-requested";
2026
2105
  /** Input */
2027
2106
  input: unknown;
2107
+ /** Providerexecuted */
2108
+ providerExecuted?: boolean | null;
2028
2109
  /** Callprovidermetadata */
2029
2110
  callProviderMetadata?: {
2030
2111
  [key: string]: {
@@ -2049,6 +2130,8 @@ export interface components {
2049
2130
  toolName: string;
2050
2131
  /** Toolcallid */
2051
2132
  toolCallId: string;
2133
+ /** Title */
2134
+ title?: string | null;
2052
2135
  /**
2053
2136
  * State
2054
2137
  * @default approval-responded
@@ -2057,6 +2140,8 @@ export interface components {
2057
2140
  state?: "approval-responded";
2058
2141
  /** Input */
2059
2142
  input: unknown;
2143
+ /** Providerexecuted */
2144
+ providerExecuted?: boolean | null;
2060
2145
  /** Callprovidermetadata */
2061
2146
  callProviderMetadata?: {
2062
2147
  [key: string]: {
@@ -2081,6 +2166,8 @@ export interface components {
2081
2166
  toolName: string;
2082
2167
  /** Toolcallid */
2083
2168
  toolCallId: string;
2169
+ /** Title */
2170
+ title?: string | null;
2084
2171
  /**
2085
2172
  * State
2086
2173
  * @default input-available
@@ -2089,6 +2176,8 @@ export interface components {
2089
2176
  state?: "input-available";
2090
2177
  /** Input */
2091
2178
  input: unknown;
2179
+ /** Providerexecuted */
2180
+ providerExecuted?: boolean | null;
2092
2181
  /** Callprovidermetadata */
2093
2182
  callProviderMetadata?: {
2094
2183
  [key: string]: {
@@ -2113,6 +2202,8 @@ export interface components {
2113
2202
  toolName: string;
2114
2203
  /** Toolcallid */
2115
2204
  toolCallId: string;
2205
+ /** Title */
2206
+ title?: string | null;
2116
2207
  /**
2117
2208
  * State
2118
2209
  * @default input-streaming
@@ -2121,6 +2212,8 @@ export interface components {
2121
2212
  state?: "input-streaming";
2122
2213
  /** Input */
2123
2214
  input?: unknown | null;
2215
+ /** Providerexecuted */
2216
+ providerExecuted?: boolean | null;
2124
2217
  /** Callprovidermetadata */
2125
2218
  callProviderMetadata?: {
2126
2219
  [key: string]: {
@@ -2145,6 +2238,8 @@ export interface components {
2145
2238
  toolName: string;
2146
2239
  /** Toolcallid */
2147
2240
  toolCallId: string;
2241
+ /** Title */
2242
+ title?: string | null;
2148
2243
  /**
2149
2244
  * State
2150
2245
  * @default output-available
@@ -2155,6 +2250,8 @@ export interface components {
2155
2250
  input: unknown;
2156
2251
  /** Output */
2157
2252
  output: unknown;
2253
+ /** Providerexecuted */
2254
+ providerExecuted?: boolean | null;
2158
2255
  /** Callprovidermetadata */
2159
2256
  callProviderMetadata?: {
2160
2257
  [key: string]: {
@@ -2181,6 +2278,8 @@ export interface components {
2181
2278
  toolName: string;
2182
2279
  /** Toolcallid */
2183
2280
  toolCallId: string;
2281
+ /** Title */
2282
+ title?: string | null;
2184
2283
  /**
2185
2284
  * State
2186
2285
  * @default output-denied
@@ -2189,6 +2288,8 @@ export interface components {
2189
2288
  state?: "output-denied";
2190
2289
  /** Input */
2191
2290
  input: unknown;
2291
+ /** Providerexecuted */
2292
+ providerExecuted?: boolean | null;
2192
2293
  /** Callprovidermetadata */
2193
2294
  callProviderMetadata?: {
2194
2295
  [key: string]: {
@@ -2213,6 +2314,8 @@ export interface components {
2213
2314
  toolName: string;
2214
2315
  /** Toolcallid */
2215
2316
  toolCallId: string;
2317
+ /** Title */
2318
+ title?: string | null;
2216
2319
  /**
2217
2320
  * State
2218
2321
  * @default output-error
@@ -2223,6 +2326,8 @@ export interface components {
2223
2326
  input: unknown;
2224
2327
  /** Errortext */
2225
2328
  errorText: string;
2329
+ /** Providerexecuted */
2330
+ providerExecuted?: boolean | null;
2226
2331
  /** Callprovidermetadata */
2227
2332
  callProviderMetadata?: {
2228
2333
  [key: string]: {
@@ -2402,6 +2507,13 @@ export interface components {
2402
2507
  type: "FREEFORM";
2403
2508
  /** Description */
2404
2509
  description?: string | null;
2510
+ optimization_direction?: components["schemas"]["OptimizationDirection"] | null;
2511
+ /** Threshold */
2512
+ threshold?: number | null;
2513
+ /** Lower Bound */
2514
+ lower_bound?: number | null;
2515
+ /** Upper Bound */
2516
+ upper_bound?: number | null;
2405
2517
  /** Id */
2406
2518
  id: string;
2407
2519
  };
@@ -2416,6 +2528,13 @@ export interface components {
2416
2528
  type: "FREEFORM";
2417
2529
  /** Description */
2418
2530
  description?: string | null;
2531
+ optimization_direction?: components["schemas"]["OptimizationDirection"] | null;
2532
+ /** Threshold */
2533
+ threshold?: number | null;
2534
+ /** Lower Bound */
2535
+ lower_bound?: number | null;
2536
+ /** Upper Bound */
2537
+ upper_bound?: number | null;
2419
2538
  };
2420
2539
  /** GetAnnotationConfigResponseBody */
2421
2540
  GetAnnotationConfigResponseBody: {
@@ -2517,6 +2636,19 @@ export interface components {
2517
2636
  /** Data */
2518
2637
  data: components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"] | components["schemas"]["LDAPUser"] | components["schemas"]["AnonymousUser"];
2519
2638
  };
2639
+ /**
2640
+ * GraphQLContext
2641
+ * @description GraphQL runtime state.
2642
+ */
2643
+ GraphQLContext: {
2644
+ /**
2645
+ * @description discriminator enum property added by openapi-typescript
2646
+ * @enum {string}
2647
+ */
2648
+ type: "graphql";
2649
+ /** Mutationsenabled */
2650
+ mutationsEnabled: boolean;
2651
+ };
2520
2652
  /** HTTPValidationError */
2521
2653
  HTTPValidationError: {
2522
2654
  /** Detail */
@@ -2673,6 +2805,19 @@ export interface components {
2673
2805
  /** Next Cursor */
2674
2806
  next_cursor: string | null;
2675
2807
  };
2808
+ /**
2809
+ * LlmEvaluatorContext
2810
+ * @description LLM-evaluator create/edit form mounted in the current browser route.
2811
+ */
2812
+ LlmEvaluatorContext: {
2813
+ /**
2814
+ * @description discriminator enum property added by openapi-typescript
2815
+ * @enum {string}
2816
+ */
2817
+ type: "llm_evaluator";
2818
+ /** Evaluatornodeid */
2819
+ evaluatorNodeId?: string | null;
2820
+ };
2676
2821
  /** LocalUser */
2677
2822
  LocalUser: {
2678
2823
  /** Id */
@@ -2994,6 +3139,21 @@ export interface components {
2994
3139
  */
2995
3140
  message?: string | null;
2996
3141
  };
3142
+ /**
3143
+ * PlaygroundBuiltinModelContext
3144
+ * @description Built-in playground model selection.
3145
+ */
3146
+ PlaygroundBuiltinModelContext: {
3147
+ /**
3148
+ * @description discriminator enum property added by openapi-typescript
3149
+ * @enum {string}
3150
+ */
3151
+ type: "builtin";
3152
+ /** Provider */
3153
+ provider: string;
3154
+ /** Modelname */
3155
+ modelName: string;
3156
+ };
2997
3157
  /**
2998
3158
  * PlaygroundContext
2999
3159
  * @description Playground prompt editor state mounted in the current browser route.
@@ -3004,8 +3164,76 @@ export interface components {
3004
3164
  * @enum {string}
3005
3165
  */
3006
3166
  type: "playground";
3007
- /** Instanceids */
3008
- instanceIds: number[];
3167
+ /**
3168
+ * Recordexperiments
3169
+ * @default true
3170
+ */
3171
+ recordExperiments?: boolean;
3172
+ /**
3173
+ * Repetitions
3174
+ * @default 1
3175
+ */
3176
+ repetitions?: number;
3177
+ /** Instances */
3178
+ instances?: components["schemas"]["PlaygroundInstanceContext"][];
3179
+ /** Evaluators */
3180
+ evaluators?: components["schemas"]["PlaygroundEvaluatorContext"][];
3181
+ };
3182
+ /**
3183
+ * PlaygroundCustomProviderModelContext
3184
+ * @description Custom-provider playground model selection.
3185
+ */
3186
+ PlaygroundCustomProviderModelContext: {
3187
+ /**
3188
+ * @description discriminator enum property added by openapi-typescript
3189
+ * @enum {string}
3190
+ */
3191
+ type: "custom";
3192
+ /** Customproviderid */
3193
+ customProviderId: string;
3194
+ /** Customprovidername */
3195
+ customProviderName: string;
3196
+ /** Provider */
3197
+ provider: string;
3198
+ /** Modelname */
3199
+ modelName: string;
3200
+ };
3201
+ /**
3202
+ * PlaygroundEvaluatorContext
3203
+ * @description One dataset evaluator on the mounted playground's roster. ``name`` is
3204
+ * user-controlled; sanitize at every model-visible boundary.
3205
+ */
3206
+ PlaygroundEvaluatorContext: {
3207
+ /** Datasetevaluatorid */
3208
+ datasetEvaluatorId: string;
3209
+ /** Name */
3210
+ name: string;
3211
+ /**
3212
+ * Kind
3213
+ * @enum {string}
3214
+ */
3215
+ kind: "LLM" | "CODE" | "BUILTIN";
3216
+ /** Isbuiltin */
3217
+ isBuiltin: boolean;
3218
+ /** Isapplied */
3219
+ isApplied: boolean;
3220
+ };
3221
+ /**
3222
+ * PlaygroundInstanceContext
3223
+ * @description One mounted playground instance and its current model selection.
3224
+ *
3225
+ * ``experiment_id`` carries the relay node id of the experiment produced by
3226
+ * this instance's last dataset-backed run, or ``None`` when the instance has
3227
+ * not produced one. Ephemeral experiments are included: they remain queryable
3228
+ * until the server sweeps them ~24h after their last update.
3229
+ */
3230
+ PlaygroundInstanceContext: {
3231
+ /** Instanceid */
3232
+ instanceId: number;
3233
+ /** Model */
3234
+ model?: (components["schemas"]["PlaygroundBuiltinModelContext"] | components["schemas"]["PlaygroundCustomProviderModelContext"]) | null;
3235
+ /** Experimentid */
3236
+ experimentId?: string | null;
3009
3237
  };
3010
3238
  /** Project */
3011
3239
  Project: {
@@ -3983,6 +4211,12 @@ export interface components {
3983
4211
  * @description The note text to add to the session
3984
4212
  */
3985
4213
  note: string;
4214
+ /**
4215
+ * Identifier
4216
+ * @description Optional caller-supplied identifier. When non-empty, the note is upserted on (session_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note. When omitted or empty, the server stamps a unique 'px-session-note:<uuid>' identifier so each call appends a new note.
4217
+ * @default
4218
+ */
4219
+ identifier?: string;
3986
4220
  };
3987
4221
  /** SessionTraceData */
3988
4222
  SessionTraceData: {
@@ -4326,6 +4560,12 @@ export interface components {
4326
4560
  * @description The note text to add to the span
4327
4561
  */
4328
4562
  note: string;
4563
+ /**
4564
+ * Identifier
4565
+ * @description Optional caller-supplied identifier. When non-empty, the note is upserted on (span_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note. When omitted or empty, the server stamps a unique 'px-span-note:<uuid>' identifier so each call appends a new note.
4566
+ * @default
4567
+ */
4568
+ identifier?: string;
4329
4569
  };
4330
4570
  /** SpansResponseBody */
4331
4571
  SpansResponseBody: {
@@ -4395,6 +4635,8 @@ export interface components {
4395
4635
  type: string;
4396
4636
  /** Toolcallid */
4397
4637
  toolCallId: string;
4638
+ /** Title */
4639
+ title?: string | null;
4398
4640
  /**
4399
4641
  * State
4400
4642
  * @default approval-requested
@@ -4435,6 +4677,8 @@ export interface components {
4435
4677
  type: string;
4436
4678
  /** Toolcallid */
4437
4679
  toolCallId: string;
4680
+ /** Title */
4681
+ title?: string | null;
4438
4682
  /**
4439
4683
  * State
4440
4684
  * @default approval-responded
@@ -4487,6 +4731,8 @@ export interface components {
4487
4731
  type: string;
4488
4732
  /** Toolcallid */
4489
4733
  toolCallId: string;
4734
+ /** Title */
4735
+ title?: string | null;
4490
4736
  /**
4491
4737
  * State
4492
4738
  * @default input-available
@@ -4515,6 +4761,8 @@ export interface components {
4515
4761
  type: string;
4516
4762
  /** Toolcallid */
4517
4763
  toolCallId: string;
4764
+ /** Title */
4765
+ title?: string | null;
4518
4766
  /**
4519
4767
  * State
4520
4768
  * @default input-streaming
@@ -4543,6 +4791,8 @@ export interface components {
4543
4791
  type: string;
4544
4792
  /** Toolcallid */
4545
4793
  toolCallId: string;
4794
+ /** Title */
4795
+ title?: string | null;
4546
4796
  /**
4547
4797
  * State
4548
4798
  * @default output-available
@@ -4575,6 +4825,8 @@ export interface components {
4575
4825
  type: string;
4576
4826
  /** Toolcallid */
4577
4827
  toolCallId: string;
4828
+ /** Title */
4829
+ title?: string | null;
4578
4830
  /**
4579
4831
  * State
4580
4832
  * @default output-denied
@@ -4603,6 +4855,8 @@ export interface components {
4603
4855
  type: string;
4604
4856
  /** Toolcallid */
4605
4857
  toolCallId: string;
4858
+ /** Title */
4859
+ title?: string | null;
4606
4860
  /**
4607
4861
  * State
4608
4862
  * @default output-error
@@ -4797,6 +5051,12 @@ export interface components {
4797
5051
  * @description The note text to add to the trace
4798
5052
  */
4799
5053
  note: string;
5054
+ /**
5055
+ * Identifier
5056
+ * @description Optional caller-supplied identifier. When non-empty, the note is upserted on (trace_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note. When omitted or empty, the server stamps a unique 'px-trace-note:<uuid>' identifier so each call appends a new note.
5057
+ * @default
5058
+ */
5059
+ identifier?: string;
4800
5060
  };
4801
5061
  /** TraceSpanData */
4802
5062
  TraceSpanData: {
@@ -4964,6 +5224,19 @@ export interface components {
4964
5224
  /** Context */
4965
5225
  ctx?: Record<string, unknown>;
4966
5226
  };
5227
+ /**
5228
+ * WebAccessContext
5229
+ * @description User's per-turn request to expose web search / fetch tools.
5230
+ */
5231
+ WebAccessContext: {
5232
+ /**
5233
+ * @description discriminator enum property added by openapi-typescript
5234
+ * @enum {string}
5235
+ */
5236
+ type: "web_access";
5237
+ /** Enabled */
5238
+ enabled: boolean;
5239
+ };
4967
5240
  /**
4968
5241
  * _SummarizeRequest
4969
5242
  * @description Body for POST /agents/{agent_id}/sessions/{session_id}/summary.
@@ -4984,12 +5257,27 @@ export interface components {
4984
5257
  exportRemoteTraces?: boolean;
4985
5258
  /** Messages */
4986
5259
  messages: components["schemas"]["UIMessage"][];
5260
+ /** Model */
5261
+ model: components["schemas"]["CustomProviderModelSelection"] | components["schemas"]["BuiltInProviderModelSelection"];
4987
5262
  };
4988
5263
  /** _SummarizeResponse */
4989
5264
  _SummarizeResponse: {
4990
5265
  /** Summary */
4991
5266
  summary: string;
4992
5267
  };
5268
+ /**
5269
+ * ToolCallProviderMetadata
5270
+ * @description Payload Phoenix stamps under the ``phoenix`` namespace of Vercel AI
5271
+ * ``providerMetadata`` on tool-call chunks (``tool-input-start`` and
5272
+ * ``tool-input-available``).
5273
+ */
5274
+ ToolCallProviderMetadata: {
5275
+ /**
5276
+ * Tool Execution Environment
5277
+ * @enum {string}
5278
+ */
5279
+ tool_execution_environment: "client" | "server";
5280
+ };
4993
5281
  };
4994
5282
  responses: never;
4995
5283
  parameters: never;
@@ -5218,7 +5506,7 @@ export interface operations {
5218
5506
  span_ids?: string[] | null;
5219
5507
  /** @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. */
5220
5508
  identifier?: string[] | null;
5221
- /** @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. */
5509
+ /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned (allowlist). When omitted, the response includes every matching row regardless of name (no annotation names are excluded by default). */
5222
5510
  include_annotation_names?: string[] | null;
5223
5511
  /** @description Optional list of annotation names to exclude from results. */
5224
5512
  exclude_annotation_names?: string[] | null;
@@ -5342,7 +5630,7 @@ export interface operations {
5342
5630
  trace_ids?: string[] | null;
5343
5631
  /** @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. */
5344
5632
  identifier?: string[] | null;
5345
- /** @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. */
5633
+ /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned (allowlist). When omitted, the response includes every matching row regardless of name (no annotation names are excluded by default). */
5346
5634
  include_annotation_names?: string[] | null;
5347
5635
  /** @description Optional list of annotation names to exclude from results. */
5348
5636
  exclude_annotation_names?: string[] | null;
@@ -5466,7 +5754,7 @@ export interface operations {
5466
5754
  session_ids?: string[] | null;
5467
5755
  /** @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. */
5468
5756
  identifier?: string[] | null;
5469
- /** @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. */
5757
+ /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned (allowlist). When omitted, the response includes every matching row regardless of name (no annotation names are excluded by default). */
5470
5758
  include_annotation_names?: string[] | null;
5471
5759
  /** @description Optional list of annotation names to exclude from results. */
5472
5760
  exclude_annotation_names?: string[] | null;
@@ -8801,13 +9089,7 @@ export interface operations {
8801
9089
  };
8802
9090
  chat_agents__agent_id__sessions__session_id__chat_post: {
8803
9091
  parameters: {
8804
- query: {
8805
- provider_type: "custom" | "builtin";
8806
- model_name: string;
8807
- provider_id?: string | null;
8808
- provider?: components["schemas"]["ModelProvider"] | null;
8809
- openai_api_type?: "chat_completions" | "responses";
8810
- };
9092
+ query?: never;
8811
9093
  header?: never;
8812
9094
  path: {
8813
9095
  agent_id: string;
@@ -8821,13 +9103,13 @@ export interface operations {
8821
9103
  };
8822
9104
  };
8823
9105
  responses: {
8824
- /** @description Vercel-AI-style SSE stream. The turn ends with a `message-metadata` chunk whose `messageMetadata` payload matches `AssistantMessageMetadata`. Declared here so the model is included in the generated OpenAPI components. */
9106
+ /** @description Successful Response */
8825
9107
  200: {
8826
9108
  headers: {
8827
9109
  [name: string]: unknown;
8828
9110
  };
8829
9111
  content: {
8830
- "application/json": components["schemas"]["AssistantMessageMetadata"];
9112
+ "application/json": unknown;
8831
9113
  };
8832
9114
  };
8833
9115
  /** @description Validation Error */
@@ -8843,13 +9125,7 @@ export interface operations {
8843
9125
  };
8844
9126
  summarize_endpoint_agents__agent_id__sessions__session_id__summary_post: {
8845
9127
  parameters: {
8846
- query: {
8847
- provider_type: "custom" | "builtin";
8848
- model_name: string;
8849
- provider_id?: string | null;
8850
- provider?: components["schemas"]["ModelProvider"] | null;
8851
- openai_api_type?: "chat_completions" | "responses";
8852
- };
9128
+ query?: never;
8853
9129
  header?: never;
8854
9130
  path: {
8855
9131
  agent_id: string;