@arizeai/phoenix-client 7.4.0 → 7.5.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.
@@ -1661,30 +1661,84 @@ export interface paths {
1661
1661
  put?: never;
1662
1662
  /**
1663
1663
  * Run Server Agent
1664
- * @description Stream a chat turn from the GraphQL server agent.
1665
- *
1666
- * This is the endpoint the PXI CLI talks to directly (no pre-configured
1667
- * agent record): it builds a fresh server agent per request from the
1668
- * caller-supplied model and contexts, then streams the reply back as
1669
- * Vercel-AI chunks.
1670
- *
1671
- * The request contexts gate capabilities — GraphQL mutations, web access,
1672
- * and subagents — and mutations are refused for viewer users. When trace
1673
- * recording is enabled (and permitted by system settings), the run is
1674
- * traced; locally ingested traces are persisted to the agent's project
1675
- * once the stream completes.
1676
- *
1677
- * Returns ``403`` if agents or the server agent are disabled, or if a
1678
- * viewer requests mutations.
1664
+ * @deprecated
1665
+ */
1666
+ post: operations["legacyServerAgentChat"];
1667
+ delete?: never;
1668
+ options?: never;
1669
+ head?: never;
1670
+ patch?: never;
1671
+ trace?: never;
1672
+ };
1673
+ "/v1/agent_sessions": {
1674
+ parameters: {
1675
+ query?: never;
1676
+ header?: never;
1677
+ path?: never;
1678
+ cookie?: never;
1679
+ };
1680
+ /**
1681
+ * List Sessions
1682
+ * @description List the viewer's persisted sessions, most recently active first.
1683
+ */
1684
+ get: operations["listAgentSessions"];
1685
+ put?: never;
1686
+ /**
1687
+ * Create Session
1688
+ * @description Create a persisted agent session owned by the requesting user.
1689
+ */
1690
+ post: operations["createAgentSession"];
1691
+ delete?: never;
1692
+ options?: never;
1693
+ head?: never;
1694
+ patch?: never;
1695
+ trace?: never;
1696
+ };
1697
+ "/v1/agent_sessions/{session_id}": {
1698
+ parameters: {
1699
+ query?: never;
1700
+ header?: never;
1701
+ path?: never;
1702
+ cookie?: never;
1703
+ };
1704
+ /**
1705
+ * Get Session
1706
+ * @description Retrieve an owned session's metadata.
1707
+ */
1708
+ get: operations["getAgentSession"];
1709
+ put?: never;
1710
+ post?: never;
1711
+ delete?: never;
1712
+ options?: never;
1713
+ head?: never;
1714
+ /**
1715
+ * Patch Session
1716
+ * @description Update a persisted session's mutable fields.
1717
+ */
1718
+ patch: operations["patchAgentSession"];
1719
+ trace?: never;
1720
+ };
1721
+ "/v1/agent_sessions/{session_id}/messages": {
1722
+ parameters: {
1723
+ query?: never;
1724
+ header?: never;
1725
+ path?: never;
1726
+ cookie?: never;
1727
+ };
1728
+ /**
1729
+ * List Session Messages
1730
+ * @description Page through an owned session's persisted transcript, oldest first.
1679
1731
  */
1680
- post: operations["run_server_agent_agents_server_sessions__session_id__chat_post"];
1732
+ get: operations["listAgentSessionMessages"];
1733
+ put?: never;
1734
+ post?: never;
1681
1735
  delete?: never;
1682
1736
  options?: never;
1683
1737
  head?: never;
1684
1738
  patch?: never;
1685
1739
  trace?: never;
1686
1740
  };
1687
- "/agents/{agent_id}/sessions/{session_id}/chat": {
1741
+ "/v1/agent_sessions/{session_id}/compact": {
1688
1742
  parameters: {
1689
1743
  query?: never;
1690
1744
  header?: never;
@@ -1693,15 +1747,35 @@ export interface paths {
1693
1747
  };
1694
1748
  get?: never;
1695
1749
  put?: never;
1696
- /** Chat */
1697
- post: operations["chat_agents__agent_id__sessions__session_id__chat_post"];
1750
+ /** Compact Agent Session */
1751
+ post: operations["compactAgentSession"];
1752
+ delete?: never;
1753
+ options?: never;
1754
+ head?: never;
1755
+ patch?: never;
1756
+ trace?: never;
1757
+ };
1758
+ "/v1/agent_sessions/{session_id}/tool_outputs": {
1759
+ parameters: {
1760
+ query?: never;
1761
+ header?: never;
1762
+ path?: never;
1763
+ cookie?: never;
1764
+ };
1765
+ get?: never;
1766
+ put?: never;
1767
+ /**
1768
+ * Submit Agent Session Tool Outputs
1769
+ * @description Persist resolved client tool outputs for the session's open turn.
1770
+ */
1771
+ post: operations["submitAgentSessionToolOutputs"];
1698
1772
  delete?: never;
1699
1773
  options?: never;
1700
1774
  head?: never;
1701
1775
  patch?: never;
1702
1776
  trace?: never;
1703
1777
  };
1704
- "/agents/{agent_id}/sessions/{session_id}/summary": {
1778
+ "/v1/agent_sessions/{session_id}/chat": {
1705
1779
  parameters: {
1706
1780
  query?: never;
1707
1781
  header?: never;
@@ -1710,8 +1784,8 @@ export interface paths {
1710
1784
  };
1711
1785
  get?: never;
1712
1786
  put?: never;
1713
- /** Summarize Endpoint */
1714
- post: operations["summarize_endpoint_agents__agent_id__sessions__session_id__summary_post"];
1787
+ /** Chat */
1788
+ post: operations["agentSessionChat"];
1715
1789
  delete?: never;
1716
1790
  options?: never;
1717
1791
  head?: never;
@@ -1777,6 +1851,92 @@ export interface components {
1777
1851
  AddDatasetLabelToDatasetResponseBody: {
1778
1852
  data: components["schemas"]["DatasetLabel"];
1779
1853
  };
1854
+ AgentModelSelection: components["schemas"]["CustomProviderModelSelection"] | components["schemas"]["BuiltInProviderModelSelection"];
1855
+ /**
1856
+ * AgentSessionConflictError
1857
+ * @description Body of every HTTP 409 returned by the agent session routes.
1858
+ *
1859
+ * - ``agent_session_busy``: another turn holds the session's turn lock.
1860
+ * - ``agent_session_model_stale``: the request asserted a model the session
1861
+ * is no longer set to; refetch the session before retrying.
1862
+ * - ``agent_session_messages_stale``: the send's ``lastMessageId`` no longer
1863
+ * matches the persisted transcript — another client appended; refetch the
1864
+ * transcript and retry.
1865
+ * - ``agent_session_tool_outputs_conflict``: the submitted ``toolOutputs`` do
1866
+ * not match the transcript's trailing assistant message (no trailing
1867
+ * assistant message to continue, an unknown ``toolCallId``, or a tool-name
1868
+ * mismatch). Unlike ``agent_session_messages_stale`` this is not a
1869
+ * concurrent-writer race but an inconsistent request; fix the client
1870
+ * rather than retrying.
1871
+ * - ``agent_session_already_compact``: there are no complete turns to
1872
+ * compact — either nothing new has finished since the transcript's latest
1873
+ * checkpoint, or a concurrent request's checkpoint already covers them.
1874
+ * Not retryable; the conversation is as compact as it can get.
1875
+ * - ``agent_session_compaction_conflict``: the conversation changed while it
1876
+ * was being compacted; retry.
1877
+ */
1878
+ AgentSessionConflictError: {
1879
+ /**
1880
+ * Code
1881
+ * @description Machine-readable reason the request conflicted.
1882
+ * @enum {string}
1883
+ */
1884
+ code: "agent_session_busy" | "agent_session_model_stale" | "agent_session_messages_stale" | "agent_session_tool_outputs_conflict" | "agent_session_already_compact" | "agent_session_compaction_conflict";
1885
+ /**
1886
+ * Message
1887
+ * @description Optional human-readable elaboration on the conflict.
1888
+ */
1889
+ message?: string | null;
1890
+ };
1891
+ /** AgentSessionData */
1892
+ AgentSessionData: {
1893
+ /** Id */
1894
+ id: string;
1895
+ /** Title */
1896
+ title: string;
1897
+ /**
1898
+ * Created At
1899
+ * Format: date-time
1900
+ */
1901
+ created_at: string;
1902
+ /**
1903
+ * Updated At
1904
+ * Format: date-time
1905
+ */
1906
+ updated_at: string;
1907
+ /** Is Ephemeral */
1908
+ is_ephemeral: boolean;
1909
+ model: components["schemas"]["AgentModelSelection"];
1910
+ /**
1911
+ * Is Active
1912
+ * @description Whether a response is currently streaming on this session, i.e. its lock has a live (non-stale) heartbeat.
1913
+ */
1914
+ is_active: boolean;
1915
+ /**
1916
+ * Last Message Id
1917
+ * @description The message ID of the most recently persisted transcript message, or null for an empty transcript.
1918
+ */
1919
+ last_message_id?: string | null;
1920
+ };
1921
+ /** AgentSessionSummary */
1922
+ AgentSessionSummary: {
1923
+ /** Id */
1924
+ id: string;
1925
+ /** Title */
1926
+ title: string;
1927
+ /**
1928
+ * Created At
1929
+ * Format: date-time
1930
+ */
1931
+ created_at: string;
1932
+ /**
1933
+ * Updated At
1934
+ * Format: date-time
1935
+ */
1936
+ updated_at: string;
1937
+ /** Is Ephemeral */
1938
+ is_ephemeral: boolean;
1939
+ };
1780
1940
  /**
1781
1941
  * AgentSpanContext
1782
1942
  * @description Span the user has selected.
@@ -1930,36 +2090,17 @@ export interface components {
1930
2090
  /** Data */
1931
2091
  data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
1932
2092
  };
1933
- /**
1934
- * AssistantMessageMetadata
1935
- * @description Wire schema for the chat stream's `message_metadata` payload.
1936
- */
1937
- AssistantMessageMetadata: {
1938
- /**
1939
- * @description discriminator enum property added by openapi-typescript
1940
- * @enum {string}
1941
- */
1942
- type: "assistant";
1943
- /** Sessionid */
1944
- sessionId: string;
1945
- trace?: components["schemas"]["AssistantMessageMetadataTraceIds"] | null;
1946
- turnTraceContext?: components["schemas"]["TurnTraceContext"] | null;
1947
- usage?: components["schemas"]["AssistantMessageMetadataUsage"] | null;
1948
- };
1949
- /** AssistantMessageMetadataTraceIds */
1950
- AssistantMessageMetadataTraceIds: {
1951
- /** Traceid */
1952
- traceId: string;
1953
- /** Rootspanid */
1954
- rootSpanId: string;
1955
- };
1956
2093
  /** AssistantMessageMetadataUsage */
1957
2094
  AssistantMessageMetadataUsage: {
1958
2095
  tokens: components["schemas"]["AssistantMessageMetadataUsageTokens"];
1959
- promptDetails?: components["schemas"]["AssistantMessageMetadataUsageTokenDetails"] | null;
2096
+ promptDetails?: components["schemas"]["AssistantMessageMetadataUsageCacheTokenDetails"] | null;
1960
2097
  };
1961
- /** AssistantMessageMetadataUsageTokenDetails */
1962
- AssistantMessageMetadataUsageTokenDetails: {
2098
+ /**
2099
+ * AssistantMessageMetadataUsageCacheTokenDetails
2100
+ * @description Prompt-cache token counts, mounted as the usage payload's
2101
+ * ``prompt_details`` because cached tokens are a breakdown of the prompt.
2102
+ */
2103
+ AssistantMessageMetadataUsageCacheTokenDetails: {
1963
2104
  /** Cacheread */
1964
2105
  cacheRead: number;
1965
2106
  /** Cachewrite */
@@ -1980,8 +2121,7 @@ export interface components {
1980
2121
  *
1981
2122
  * Credentials and connection details (base URL, Azure endpoint, AWS
1982
2123
  * region) are resolved from the secret store first and the process
1983
- * environment second. ``openai_api_type`` is honoured by the OpenAI and
1984
- * Azure OpenAI branches; other providers ignore it.
2124
+ * environment second.
1985
2125
  */
1986
2126
  BuiltInProviderModelSelection: {
1987
2127
  /**
@@ -1992,12 +2132,6 @@ export interface components {
1992
2132
  provider: components["schemas"]["ModelProvider"];
1993
2133
  /** Modelname */
1994
2134
  modelName: string;
1995
- /**
1996
- * Openaiapitype
1997
- * @default responses
1998
- * @enum {string}
1999
- */
2000
- openaiApiType?: "chat_completions" | "responses";
2001
2135
  };
2002
2136
  /** CategoricalAnnotationConfig */
2003
2137
  CategoricalAnnotationConfig: {
@@ -2136,37 +2270,15 @@ export interface components {
2136
2270
  */
2137
2271
  ChatContext: components["schemas"]["AppContext"] | components["schemas"]["ProjectContext"] | components["schemas"]["TraceContext"] | components["schemas"]["SessionContext"] | components["schemas"]["PromptContext"] | components["schemas"]["PromptVersionContext"] | components["schemas"]["AgentSpanContext"] | components["schemas"]["PlaygroundContext"] | components["schemas"]["CodeEvaluatorContext"] | components["schemas"]["LlmEvaluatorContext"] | components["schemas"]["DatasetContext"] | components["schemas"]["GraphQLContext"] | components["schemas"]["WebAccessContext"] | components["schemas"]["SubagentsContext"];
2138
2272
  /**
2139
- * ChatRegenerateMessage
2140
- * @description Regenerate message extended with Phoenix-specific fields.
2273
+ * ChatRequestBody
2274
+ * @description Assistant chat submit request payload.
2141
2275
  */
2142
- ChatRegenerateMessage: {
2143
- /**
2144
- * @description discriminator enum property added by openapi-typescript
2145
- * @enum {string}
2146
- */
2147
- trigger: "regenerate-message";
2148
- /** Id */
2149
- id: string;
2150
- /** Messages */
2151
- messages: components["schemas"]["PhoenixUIMessage"][];
2152
- /** Messageid */
2153
- messageId?: string | null;
2154
- /**
2155
- * Ingesttraces
2156
- * @default false
2157
- */
2158
- ingestTraces?: boolean;
2159
- /**
2160
- * Exportremotetraces
2161
- * @default false
2162
- */
2163
- exportRemoteTraces?: boolean;
2276
+ ChatRequestBody: {
2164
2277
  /**
2165
- * Attachuserid
2166
- * @description When true and the request is authenticated as a PhoenixUser, attaches the user's email as the OpenInference ``user.id`` span attribute on all traced work for this request.
2167
- * @default false
2278
+ * Headless
2279
+ * @description Whether a headless client (terminal or scripted) is driving the turn, as opposed to the browser assistant. Selects the agent configuration the turn runs on.
2168
2280
  */
2169
- attachUserId?: boolean;
2281
+ headless: boolean;
2170
2282
  /** Contexts */
2171
2283
  contexts?: components["schemas"]["ChatContext"][];
2172
2284
  /**
@@ -2180,65 +2292,44 @@ export interface components {
2180
2292
  * @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.
2181
2293
  */
2182
2294
  requestedSkills?: string[];
2183
- /** Model */
2184
- model: components["schemas"]["CustomProviderModelSelection"] | components["schemas"]["BuiltInProviderModelSelection"];
2185
- turnTraceContext?: components["schemas"]["TurnTraceContext"] | null;
2186
- } & {
2187
- [key: string]: unknown;
2188
- };
2189
- /**
2190
- * ChatRequest
2191
- * @description Discriminated union of chat request payloads.
2192
- */
2193
- ChatRequest: components["schemas"]["ChatSubmitMessage"] | components["schemas"]["ChatRegenerateMessage"];
2194
- /**
2195
- * ChatSubmitMessage
2196
- * @description Submit message extended with Phoenix-specific fields.
2197
- */
2198
- ChatSubmitMessage: {
2295
+ /** @description The model the client believes the session is set to. This is a precondition, not an instruction: the turn always runs on the session's persisted selection, and a mismatch is rejected with HTTP 409 and code ``agent_session_model_stale`` rather than silently running on — or switching to — an unexpected model. Change the session's model with ``PATCH .../agent_sessions/{session_id}``. */
2296
+ model: components["schemas"]["AgentModelSelection"];
2199
2297
  /**
2200
- * @description discriminator enum property added by openapi-typescript
2201
- * @enum {string}
2298
+ * Trigger
2299
+ * @default submit-message
2300
+ * @constant
2202
2301
  */
2203
- trigger: "submit-message";
2302
+ trigger?: "submit-message";
2204
2303
  /** Id */
2205
2304
  id: string;
2206
- /** Messages */
2207
- messages: components["schemas"]["PhoenixUIMessage"][];
2305
+ /** @description The turn's new user message to append. May be omitted for client-tool continuation, where ``toolOutputs`` resolve the trailing assistant message's pending tool calls instead. */
2306
+ message?: components["schemas"]["PhoenixUIMessage"] | null;
2208
2307
  /**
2209
- * Ingesttraces
2308
+ * Tooloutputs
2309
+ * @description Client-executed tool results for pending tool calls on the transcript's trailing assistant message, matched by ``toolCallId``. Submitted alone they continue the assistant turn; submitted with ``message`` they resolve dangling tool calls before the new user turn runs.
2310
+ */
2311
+ toolOutputs?: (components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__ToolOutputAvailablePart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__ToolOutputErrorPart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__DynamicToolOutputAvailablePart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__DynamicToolOutputErrorPart"])[];
2312
+ /**
2313
+ * Lastmessageid
2314
+ * @description The id of the last transcript message the client has rendered, used for optimistic concurrency. Omit when the session has no messages; required (and validated against the persisted transcript) once it does. On mismatch the server rejects the send with HTTP 409 and code ``agent_session_messages_stale`` — the client should refetch the session before retrying.
2315
+ */
2316
+ lastMessageId?: string | null;
2317
+ /**
2318
+ * Recordlocaltraces
2210
2319
  * @default false
2211
2320
  */
2212
- ingestTraces?: boolean;
2321
+ recordLocalTraces?: boolean;
2213
2322
  /**
2214
2323
  * Exportremotetraces
2215
2324
  * @default false
2216
2325
  */
2217
2326
  exportRemoteTraces?: boolean;
2218
2327
  /**
2219
- * Attachuserid
2328
+ * Instrumentuserid
2220
2329
  * @description When true and the request is authenticated as a PhoenixUser, attaches the user's email as the OpenInference ``user.id`` span attribute on all traced work for this request.
2221
2330
  * @default false
2222
2331
  */
2223
- attachUserId?: boolean;
2224
- /** Contexts */
2225
- contexts?: components["schemas"]["ChatContext"][];
2226
- /**
2227
- * Editpermission
2228
- * @default manual
2229
- * @enum {string}
2230
- */
2231
- editPermission?: "manual" | "bypass";
2232
- /**
2233
- * Requestedskills
2234
- * @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.
2235
- */
2236
- requestedSkills?: string[];
2237
- /** Model */
2238
- model: components["schemas"]["CustomProviderModelSelection"] | components["schemas"]["BuiltInProviderModelSelection"];
2239
- turnTraceContext?: components["schemas"]["TurnTraceContext"] | null;
2240
- } & {
2241
- [key: string]: unknown;
2332
+ instrumentUserId?: boolean;
2242
2333
  };
2243
2334
  /**
2244
2335
  * CodeEvaluatorContext
@@ -2253,6 +2344,23 @@ export interface components {
2253
2344
  /** Evaluatornodeid */
2254
2345
  evaluatorNodeId?: string | null;
2255
2346
  };
2347
+ /**
2348
+ * CompactAgentSessionRequestBody
2349
+ * @description Request a model-generated checkpoint for a persisted conversation.
2350
+ */
2351
+ CompactAgentSessionRequestBody: {
2352
+ /** @description The model the client believes the session is set to. As on the chat route this is a precondition: the summary is generated with the session's persisted selection, and a mismatch is rejected with HTTP 409 and code ``agent_session_model_stale``. */
2353
+ model: components["schemas"]["AgentModelSelection"];
2354
+ };
2355
+ /**
2356
+ * CompactAgentSessionResponseBody
2357
+ * @description The checkpoint message this request created. A 200 always means a new
2358
+ * checkpoint was persisted; every other outcome is an HTTP 409 whose body's
2359
+ * ``code`` says why (see ``AgentSessionConflictError``).
2360
+ */
2361
+ CompactAgentSessionResponseBody: {
2362
+ data: components["schemas"]["PhoenixUIMessage"];
2363
+ };
2256
2364
  /** ContinuousAnnotationConfig */
2257
2365
  ContinuousAnnotationConfig: {
2258
2366
  /** Name */
@@ -2289,6 +2397,29 @@ export interface components {
2289
2397
  /** Upper Bound */
2290
2398
  upper_bound?: number | null;
2291
2399
  };
2400
+ /**
2401
+ * CreateAgentSessionRequestBody
2402
+ * @description Request body for creating a persisted agent session.
2403
+ */
2404
+ CreateAgentSessionRequestBody: {
2405
+ model: components["schemas"]["AgentModelSelection"];
2406
+ /**
2407
+ * Title
2408
+ * @description Optional initial title.
2409
+ * @default
2410
+ */
2411
+ title?: string;
2412
+ /**
2413
+ * Is Ephemeral
2414
+ * @description Whether the session should expire after a period of inactivity.
2415
+ * @default false
2416
+ */
2417
+ is_ephemeral?: boolean;
2418
+ };
2419
+ /** CreateAgentSessionResponseBody */
2420
+ CreateAgentSessionResponseBody: {
2421
+ data: components["schemas"]["CreatedAgentSession"];
2422
+ };
2292
2423
  /** CreateAnnotationConfigData */
2293
2424
  CreateAnnotationConfigData: components["schemas"]["CategoricalAnnotationConfigData"] | components["schemas"]["ContinuousAnnotationConfigData"] | components["schemas"]["FreeformAnnotationConfigData"];
2294
2425
  /** CreateAnnotationConfigResponseBody */
@@ -2589,6 +2720,14 @@ export interface components {
2589
2720
  /** Data */
2590
2721
  data: components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"] | components["schemas"]["LDAPUser"];
2591
2722
  };
2723
+ /** CreatedAgentSession */
2724
+ CreatedAgentSession: {
2725
+ /**
2726
+ * Id
2727
+ * @description The session's GlobalID — the ``session_id`` the chat route expects.
2728
+ */
2729
+ id: string;
2730
+ };
2592
2731
  /** CreatedApiKey */
2593
2732
  CreatedApiKey: {
2594
2733
  /** Id */
@@ -2951,10 +3090,10 @@ export interface components {
2951
3090
  approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
2952
3091
  };
2953
3092
  /**
2954
- * DynamicToolOutputAvailablePart
2955
- * @description Dynamic tool part in output-available state.
3093
+ * DynamicToolOutputDeniedPart
3094
+ * @description Dynamic tool part in output-denied state (tool was denied, terminal state).
2956
3095
  */
2957
- DynamicToolOutputAvailablePart: {
3096
+ DynamicToolOutputDeniedPart: {
2958
3097
  /**
2959
3098
  * Type
2960
3099
  * @default dynamic-tool
@@ -2969,14 +3108,12 @@ export interface components {
2969
3108
  title?: string | null;
2970
3109
  /**
2971
3110
  * State
2972
- * @default output-available
3111
+ * @default output-denied
2973
3112
  * @constant
2974
3113
  */
2975
- state?: "output-available";
3114
+ state?: "output-denied";
2976
3115
  /** Input */
2977
3116
  input: unknown;
2978
- /** Output */
2979
- output: unknown;
2980
3117
  /** Providerexecuted */
2981
3118
  providerExecuted?: boolean | null;
2982
3119
  /** Callprovidermetadata */
@@ -2985,90 +3122,14 @@ export interface components {
2985
3122
  [key: string]: unknown;
2986
3123
  };
2987
3124
  } | null;
2988
- /** Preliminary */
2989
- preliminary?: boolean | null;
2990
3125
  /** Approval */
2991
3126
  approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
2992
3127
  };
2993
- /**
2994
- * DynamicToolOutputDeniedPart
2995
- * @description Dynamic tool part in output-denied state (tool was denied, terminal state).
2996
- */
2997
- DynamicToolOutputDeniedPart: {
3128
+ /** Experiment */
3129
+ Experiment: {
2998
3130
  /**
2999
- * Type
3000
- * @default dynamic-tool
3001
- * @constant
3002
- */
3003
- type?: "dynamic-tool";
3004
- /** Toolname */
3005
- toolName: string;
3006
- /** Toolcallid */
3007
- toolCallId: string;
3008
- /** Title */
3009
- title?: string | null;
3010
- /**
3011
- * State
3012
- * @default output-denied
3013
- * @constant
3014
- */
3015
- state?: "output-denied";
3016
- /** Input */
3017
- input: unknown;
3018
- /** Providerexecuted */
3019
- providerExecuted?: boolean | null;
3020
- /** Callprovidermetadata */
3021
- callProviderMetadata?: {
3022
- [key: string]: {
3023
- [key: string]: unknown;
3024
- };
3025
- } | null;
3026
- /** Approval */
3027
- approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
3028
- };
3029
- /**
3030
- * DynamicToolOutputErrorPart
3031
- * @description Dynamic tool part in output-error state.
3032
- */
3033
- DynamicToolOutputErrorPart: {
3034
- /**
3035
- * Type
3036
- * @default dynamic-tool
3037
- * @constant
3038
- */
3039
- type?: "dynamic-tool";
3040
- /** Toolname */
3041
- toolName: string;
3042
- /** Toolcallid */
3043
- toolCallId: string;
3044
- /** Title */
3045
- title?: string | null;
3046
- /**
3047
- * State
3048
- * @default output-error
3049
- * @constant
3050
- */
3051
- state?: "output-error";
3052
- /** Input */
3053
- input: unknown;
3054
- /** Errortext */
3055
- errorText: string;
3056
- /** Providerexecuted */
3057
- providerExecuted?: boolean | null;
3058
- /** Callprovidermetadata */
3059
- callProviderMetadata?: {
3060
- [key: string]: {
3061
- [key: string]: unknown;
3062
- };
3063
- } | null;
3064
- /** Approval */
3065
- approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
3066
- };
3067
- /** Experiment */
3068
- Experiment: {
3069
- /**
3070
- * Id
3071
- * @description The ID of the experiment
3131
+ * Id
3132
+ * @description The ID of the experiment
3072
3133
  */
3073
3134
  id: string;
3074
3135
  /**
@@ -3291,6 +3352,10 @@ export interface components {
3291
3352
  /** Upper Bound */
3292
3353
  upper_bound?: number | null;
3293
3354
  };
3355
+ /** GetAgentSessionResponseBody */
3356
+ GetAgentSessionResponseBody: {
3357
+ data: components["schemas"]["AgentSessionData"];
3358
+ };
3294
3359
  /** GetAllUserApiKeysResponseBody */
3295
3360
  GetAllUserApiKeysResponseBody: {
3296
3361
  /** Data */
@@ -3547,6 +3612,160 @@ export interface components {
3547
3612
  */
3548
3613
  auth_method: "LDAP";
3549
3614
  };
3615
+ /**
3616
+ * LegacyAssistantMessageMetadata
3617
+ * @description Legacy transcripts predate the ``type`` discriminator, so default it here.
3618
+ */
3619
+ LegacyAssistantMessageMetadata: {
3620
+ /**
3621
+ * Type
3622
+ * @default assistant
3623
+ * @constant
3624
+ */
3625
+ type?: "assistant";
3626
+ /** Sessionid */
3627
+ sessionId: string;
3628
+ turnTraceContext?: components["schemas"]["TurnTraceContext"] | null;
3629
+ usage?: components["schemas"]["AssistantMessageMetadataUsage"] | null;
3630
+ /**
3631
+ * Interrupted
3632
+ * @default false
3633
+ */
3634
+ interrupted?: boolean;
3635
+ } & {
3636
+ [key: string]: unknown;
3637
+ };
3638
+ /**
3639
+ * LegacyAssistantMetadataUIMessage
3640
+ * @description ``UIMessage`` with ``metadata`` narrowed to ``PhoenixAssistantMessageMetadata``.
3641
+ */
3642
+ LegacyAssistantMetadataUIMessage: {
3643
+ /** Id */
3644
+ id: string;
3645
+ /**
3646
+ * Role
3647
+ * @enum {string}
3648
+ */
3649
+ role: "system" | "user" | "assistant";
3650
+ metadata?: components["schemas"]["LegacyAssistantMessageMetadata"] | null;
3651
+ /** Parts */
3652
+ parts: (components["schemas"]["TextUIPart"] | components["schemas"]["ReasoningUIPart"] | components["schemas"]["ToolInputStreamingPart"] | components["schemas"]["ToolInputAvailablePart"] | components["schemas"]["pydantic_ai__ui__vercel_ai__request_types__ToolOutputAvailablePart"] | components["schemas"]["pydantic_ai__ui__vercel_ai__request_types__ToolOutputErrorPart"] | components["schemas"]["ToolApprovalRequestedPart"] | components["schemas"]["ToolApprovalRespondedPart"] | components["schemas"]["ToolOutputDeniedPart"] | components["schemas"]["DynamicToolInputStreamingPart"] | components["schemas"]["DynamicToolInputAvailablePart"] | components["schemas"]["pydantic_ai__ui__vercel_ai__request_types__DynamicToolOutputAvailablePart"] | components["schemas"]["pydantic_ai__ui__vercel_ai__request_types__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"])[];
3653
+ };
3654
+ /**
3655
+ * LegacyChatRegenerateMessage
3656
+ * @description Regenerate message extended with Phoenix-specific fields.
3657
+ */
3658
+ LegacyChatRegenerateMessage: {
3659
+ /**
3660
+ * @description discriminator enum property added by openapi-typescript
3661
+ * @enum {string}
3662
+ */
3663
+ trigger: "regenerate-message";
3664
+ /** Id */
3665
+ id: string;
3666
+ /** Messages */
3667
+ messages: components["schemas"]["LegacyAssistantMetadataUIMessage"][];
3668
+ /** Messageid */
3669
+ messageId?: string | null;
3670
+ /**
3671
+ * Ingesttraces
3672
+ * @default false
3673
+ */
3674
+ ingestTraces?: boolean;
3675
+ /**
3676
+ * Exportremotetraces
3677
+ * @default false
3678
+ */
3679
+ exportRemoteTraces?: boolean;
3680
+ /**
3681
+ * Attachuserid
3682
+ * @description When true and the request is authenticated as a PhoenixUser, attaches the user's email as the OpenInference ``user.id`` span attribute on all traced work for this request.
3683
+ * @default false
3684
+ */
3685
+ attachUserId?: boolean;
3686
+ /** Contexts */
3687
+ contexts?: components["schemas"]["ChatContext"][];
3688
+ /**
3689
+ * Editpermission
3690
+ * @default manual
3691
+ * @enum {string}
3692
+ */
3693
+ editPermission?: "manual" | "bypass";
3694
+ /**
3695
+ * Requestedskills
3696
+ * @description Skills the user explicitly requested via the prompt's slash-command affordance. Ignored by this legacy route.
3697
+ */
3698
+ requestedSkills?: string[];
3699
+ model: components["schemas"]["AgentModelSelection"];
3700
+ } & {
3701
+ [key: string]: unknown;
3702
+ };
3703
+ /**
3704
+ * LegacyChatRequest
3705
+ * @description Discriminated union of legacy chat request payloads.
3706
+ */
3707
+ LegacyChatRequest: components["schemas"]["LegacyChatSubmitMessage"] | components["schemas"]["LegacyChatRegenerateMessage"];
3708
+ /**
3709
+ * LegacyChatSubmitMessage
3710
+ * @description Submit message extended with Phoenix-specific fields.
3711
+ */
3712
+ LegacyChatSubmitMessage: {
3713
+ /**
3714
+ * @description discriminator enum property added by openapi-typescript
3715
+ * @enum {string}
3716
+ */
3717
+ trigger: "submit-message";
3718
+ /** Id */
3719
+ id: string;
3720
+ /** Messages */
3721
+ messages: components["schemas"]["LegacyAssistantMetadataUIMessage"][];
3722
+ /**
3723
+ * Ingesttraces
3724
+ * @default false
3725
+ */
3726
+ ingestTraces?: boolean;
3727
+ /**
3728
+ * Exportremotetraces
3729
+ * @default false
3730
+ */
3731
+ exportRemoteTraces?: boolean;
3732
+ /**
3733
+ * Attachuserid
3734
+ * @description When true and the request is authenticated as a PhoenixUser, attaches the user's email as the OpenInference ``user.id`` span attribute on all traced work for this request.
3735
+ * @default false
3736
+ */
3737
+ attachUserId?: boolean;
3738
+ /** Contexts */
3739
+ contexts?: components["schemas"]["ChatContext"][];
3740
+ /**
3741
+ * Editpermission
3742
+ * @default manual
3743
+ * @enum {string}
3744
+ */
3745
+ editPermission?: "manual" | "bypass";
3746
+ /**
3747
+ * Requestedskills
3748
+ * @description Skills the user explicitly requested via the prompt's slash-command affordance. Ignored by this legacy route.
3749
+ */
3750
+ requestedSkills?: string[];
3751
+ model: components["schemas"]["AgentModelSelection"];
3752
+ } & {
3753
+ [key: string]: unknown;
3754
+ };
3755
+ /** ListAgentSessionMessagesResponseBody */
3756
+ ListAgentSessionMessagesResponseBody: {
3757
+ /** Data */
3758
+ data: components["schemas"]["PhoenixUIMessage"][];
3759
+ /** Next Cursor */
3760
+ next_cursor: string | null;
3761
+ };
3762
+ /** ListAgentSessionsResponseBody */
3763
+ ListAgentSessionsResponseBody: {
3764
+ /** Data */
3765
+ data: components["schemas"]["AgentSessionSummary"][];
3766
+ /** Next Cursor */
3767
+ next_cursor: string | null;
3768
+ };
3550
3769
  /** ListDatasetExamplesData */
3551
3770
  ListDatasetExamplesData: {
3552
3771
  /** Dataset Id */
@@ -3665,6 +3884,15 @@ export interface components {
3665
3884
  /** Password */
3666
3885
  password?: string;
3667
3886
  };
3887
+ /**
3888
+ * MessageMetadata
3889
+ * @description ``UIMessage.metadata`` as a registry of namespaces.
3890
+ */
3891
+ MessageMetadata: {
3892
+ /** Phoenix */
3893
+ phoenix?: (components["schemas"]["PhoenixAssistantMessageMetadata"] | components["schemas"]["PhoenixUserMessageMetadata"]) | null;
3894
+ pydantic_ai?: components["schemas"]["PydanticAIMessageMetadata"] | null;
3895
+ };
3668
3896
  /**
3669
3897
  * ModelProvider
3670
3898
  * @enum {string}
@@ -3934,6 +4162,23 @@ export interface components {
3934
4162
  */
3935
4163
  message?: string | null;
3936
4164
  };
4165
+ /**
4166
+ * PatchAgentSessionRequestBody
4167
+ * @description Fields to update on a persisted session. Omit a field to leave it unchanged.
4168
+ */
4169
+ PatchAgentSessionRequestBody: {
4170
+ /**
4171
+ * Title
4172
+ * @description New title for the session
4173
+ */
4174
+ title?: string;
4175
+ /** @description New model selection for the session */
4176
+ model?: components["schemas"]["AgentModelSelection"];
4177
+ };
4178
+ /** PatchAgentSessionResponseBody */
4179
+ PatchAgentSessionResponseBody: {
4180
+ data: components["schemas"]["AgentSessionData"];
4181
+ };
3937
4182
  /**
3938
4183
  * PatchPromptRequestBody
3939
4184
  * @description Fields to update on a prompt. Omit a field to leave it unchanged.
@@ -3956,9 +4201,29 @@ export interface components {
3956
4201
  PatchPromptResponseBody: {
3957
4202
  data: components["schemas"]["Prompt"];
3958
4203
  };
4204
+ /**
4205
+ * PhoenixAssistantMessageMetadata
4206
+ * @description The ``phoenix`` metadata namespace of an assistant message.
4207
+ */
4208
+ PhoenixAssistantMessageMetadata: {
4209
+ /**
4210
+ * @description discriminator enum property added by openapi-typescript
4211
+ * @enum {string}
4212
+ */
4213
+ type: "assistant";
4214
+ /** Sessionid */
4215
+ sessionId: string;
4216
+ turnTraceContext?: components["schemas"]["TurnTraceContext"] | null;
4217
+ usage?: components["schemas"]["AssistantMessageMetadataUsage"] | null;
4218
+ /**
4219
+ * Interrupted
4220
+ * @default false
4221
+ */
4222
+ interrupted?: boolean;
4223
+ };
3959
4224
  /**
3960
4225
  * PhoenixUIMessage
3961
- * @description `UIMessage` with `metadata` narrowed to the Phoenix wire shapes.
4226
+ * @description ``UIMessage`` with metadata narrowed to the Phoenix wire shapes.
3962
4227
  */
3963
4228
  PhoenixUIMessage: {
3964
4229
  /** Id */
@@ -3968,10 +4233,30 @@ export interface components {
3968
4233
  * @enum {string}
3969
4234
  */
3970
4235
  role: "system" | "user" | "assistant";
3971
- /** Metadata */
3972
- metadata?: (components["schemas"]["AssistantMessageMetadata"] | components["schemas"]["UserMessageMetadata"]) | null;
4236
+ metadata?: components["schemas"]["MessageMetadata"] | null;
3973
4237
  /** Parts */
3974
- 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"])[];
4238
+ parts: (components["schemas"]["TextUIPart"] | components["schemas"]["ReasoningUIPart"] | components["schemas"]["ToolInputStreamingPart"] | components["schemas"]["ToolInputAvailablePart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__ToolOutputAvailablePart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__ToolOutputErrorPart"] | components["schemas"]["ToolApprovalRequestedPart"] | components["schemas"]["ToolApprovalRespondedPart"] | components["schemas"]["ToolOutputDeniedPart"] | components["schemas"]["DynamicToolInputStreamingPart"] | components["schemas"]["DynamicToolInputAvailablePart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__DynamicToolOutputAvailablePart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__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"])[];
4239
+ };
4240
+ /**
4241
+ * PhoenixUserMessageMetadata
4242
+ * @description The ``phoenix`` metadata namespace the browser attaches to outgoing
4243
+ * user messages.
4244
+ */
4245
+ PhoenixUserMessageMetadata: {
4246
+ /**
4247
+ * @description discriminator enum property added by openapi-typescript
4248
+ * @enum {string}
4249
+ */
4250
+ type: "user";
4251
+ /** Currentdatetime */
4252
+ currentDateTime: string;
4253
+ /** Timezone */
4254
+ timeZone: string;
4255
+ /**
4256
+ * Iscompactionmessage
4257
+ * @default false
4258
+ */
4259
+ isCompactionMessage?: boolean;
3975
4260
  };
3976
4261
  /**
3977
4262
  * PlaygroundBuiltinModelContext
@@ -4916,6 +5201,16 @@ export interface components {
4916
5201
  [key: string]: unknown;
4917
5202
  };
4918
5203
  };
5204
+ /**
5205
+ * PydanticAIMessageMetadata
5206
+ * @description Local pin of pydantic-ai's message-level ``pydantic_ai`` metadata
5207
+ * namespace (its private ``_PydanticAIMessageMetadata``), merged into the
5208
+ * assistant metadata by the stream's metadata chunk.
5209
+ */
5210
+ PydanticAIMessageMetadata: {
5211
+ /** Timestamp */
5212
+ timestamp?: string | null;
5213
+ };
4919
5214
  /**
4920
5215
  * ReasoningUIPart
4921
5216
  * @description A reasoning part of a message.
@@ -5545,6 +5840,29 @@ export interface components {
5545
5840
  /** Enabled */
5546
5841
  enabled: boolean;
5547
5842
  };
5843
+ /**
5844
+ * SubmitAgentSessionToolOutputsRequestBody
5845
+ * @description Persist resolved client tool outputs without continuing the turn.
5846
+ */
5847
+ SubmitAgentSessionToolOutputsRequestBody: {
5848
+ /**
5849
+ * Tooloutputs
5850
+ * @description Client tool results for pending calls on the trailing assistant message, matched by ``toolCallId``. Resending a persisted output verbatim is a no-op; an output that differs from the persisted result or matches no call is rejected with HTTP 409 and code ``agent_session_tool_outputs_conflict``.
5851
+ */
5852
+ toolOutputs: (components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__ToolOutputAvailablePart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__ToolOutputErrorPart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__DynamicToolOutputAvailablePart"] | components["schemas"]["phoenix__db__types__data_stream_protocol__request_types__DynamicToolOutputErrorPart"])[];
5853
+ /**
5854
+ * Lastmessageid
5855
+ * @description The trailing assistant message's id. On mismatch the submission is rejected with HTTP 409 and code ``agent_session_messages_stale``.
5856
+ */
5857
+ lastMessageId: string;
5858
+ };
5859
+ /**
5860
+ * SubmitAgentSessionToolOutputsResponseBody
5861
+ * @description The trailing assistant message with the submitted outputs applied.
5862
+ */
5863
+ SubmitAgentSessionToolOutputsResponseBody: {
5864
+ data: components["schemas"]["PhoenixUIMessage"];
5865
+ };
5548
5866
  /** TextContentPart */
5549
5867
  TextContentPart: {
5550
5868
  /**
@@ -5742,10 +6060,10 @@ export interface components {
5742
6060
  approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
5743
6061
  };
5744
6062
  /**
5745
- * ToolOutputAvailablePart
5746
- * @description Tool part in output-available state.
6063
+ * ToolOutputDeniedPart
6064
+ * @description Tool part in output-denied state (tool was denied, terminal state).
5747
6065
  */
5748
- ToolOutputAvailablePart: {
6066
+ ToolOutputDeniedPart: {
5749
6067
  /** Type */
5750
6068
  type: string;
5751
6069
  /** Toolcallid */
@@ -5754,80 +6072,12 @@ export interface components {
5754
6072
  title?: string | null;
5755
6073
  /**
5756
6074
  * State
5757
- * @default output-available
6075
+ * @default output-denied
5758
6076
  * @constant
5759
6077
  */
5760
- state?: "output-available";
6078
+ state?: "output-denied";
5761
6079
  /** Input */
5762
6080
  input?: unknown | null;
5763
- /** Output */
5764
- output?: unknown | null;
5765
- /** Providerexecuted */
5766
- providerExecuted?: boolean | null;
5767
- /** Callprovidermetadata */
5768
- callProviderMetadata?: {
5769
- [key: string]: {
5770
- [key: string]: unknown;
5771
- };
5772
- } | null;
5773
- /** Preliminary */
5774
- preliminary?: boolean | null;
5775
- /** Approval */
5776
- approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
5777
- };
5778
- /**
5779
- * ToolOutputDeniedPart
5780
- * @description Tool part in output-denied state (tool was denied, terminal state).
5781
- */
5782
- ToolOutputDeniedPart: {
5783
- /** Type */
5784
- type: string;
5785
- /** Toolcallid */
5786
- toolCallId: string;
5787
- /** Title */
5788
- title?: string | null;
5789
- /**
5790
- * State
5791
- * @default output-denied
5792
- * @constant
5793
- */
5794
- state?: "output-denied";
5795
- /** Input */
5796
- input?: unknown | null;
5797
- /** Providerexecuted */
5798
- providerExecuted?: boolean | null;
5799
- /** Callprovidermetadata */
5800
- callProviderMetadata?: {
5801
- [key: string]: {
5802
- [key: string]: unknown;
5803
- };
5804
- } | null;
5805
- /** Approval */
5806
- approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
5807
- };
5808
- /**
5809
- * ToolOutputErrorPart
5810
- * @description Tool part in output-error state.
5811
- */
5812
- ToolOutputErrorPart: {
5813
- /** Type */
5814
- type: string;
5815
- /** Toolcallid */
5816
- toolCallId: string;
5817
- /** Title */
5818
- title?: string | null;
5819
- /**
5820
- * State
5821
- * @default output-error
5822
- * @constant
5823
- */
5824
- state?: "output-error";
5825
- /** Input */
5826
- input?: unknown | null;
5827
- /** Rawinput */
5828
- rawInput?: unknown | null;
5829
- /** Errortext */
5830
- errorText: string;
5831
6081
  /** Providerexecuted */
5832
6082
  providerExecuted?: boolean | null;
5833
6083
  /** Callprovidermetadata */
@@ -6042,7 +6292,10 @@ export interface components {
6042
6292
  */
6043
6293
  end_time: string;
6044
6294
  };
6045
- /** TurnTraceContext */
6295
+ /**
6296
+ * TurnTraceContext
6297
+ * @description The trace identity a turn's spans are parented to.
6298
+ */
6046
6299
  TurnTraceContext: {
6047
6300
  /** Traceid */
6048
6301
  traceId: string;
@@ -6054,23 +6307,6 @@ export interface components {
6054
6307
  */
6055
6308
  startedAt: string;
6056
6309
  };
6057
- /**
6058
- * UIMessage
6059
- * @description A message as displayed in the UI by Vercel AI Elements.
6060
- */
6061
- UIMessage: {
6062
- /** Id */
6063
- id: string;
6064
- /**
6065
- * Role
6066
- * @enum {string}
6067
- */
6068
- role: "system" | "user" | "assistant";
6069
- /** Metadata */
6070
- metadata?: unknown | null;
6071
- /** Parts */
6072
- 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"])[];
6073
- };
6074
6310
  /** UpdateAnnotationConfigResponseBody */
6075
6311
  UpdateAnnotationConfigResponseBody: {
6076
6312
  /** Data */
@@ -6290,21 +6526,6 @@ export interface components {
6290
6526
  expires_at?: string | null;
6291
6527
  user: components["schemas"]["ApiKeyUser"];
6292
6528
  };
6293
- /**
6294
- * UserMessageMetadata
6295
- * @description Wire schema for metadata the browser attaches to outgoing user messages.
6296
- */
6297
- UserMessageMetadata: {
6298
- /**
6299
- * @description discriminator enum property added by openapi-typescript
6300
- * @enum {string}
6301
- */
6302
- type: "user";
6303
- /** Currentdatetime */
6304
- currentDateTime: string;
6305
- /** Timezone */
6306
- timeZone: string;
6307
- };
6308
6529
  /** ValidationError */
6309
6530
  ValidationError: {
6310
6531
  /** Location */
@@ -6332,86 +6553,470 @@ export interface components {
6332
6553
  enabled: boolean;
6333
6554
  };
6334
6555
  /**
6335
- * _SummarizeRequest
6336
- * @description Body for POST /agents/{agent_id}/sessions/{session_id}/summary.
6337
- *
6338
- * Carries the Vercel-style messages array; the backend owns the prompt and
6339
- * the structured-output tool schema.
6556
+ * DynamicToolOutputAvailablePart
6557
+ * @description Dynamic tool part in output-available state.
6340
6558
  */
6341
- _SummarizeRequest: {
6342
- /**
6343
- * Ingesttraces
6344
- * @default false
6345
- */
6346
- ingestTraces?: boolean;
6559
+ phoenix__db__types__data_stream_protocol__request_types__DynamicToolOutputAvailablePart: {
6347
6560
  /**
6348
- * Exportremotetraces
6349
- * @default false
6561
+ * Type
6562
+ * @default dynamic-tool
6563
+ * @constant
6350
6564
  */
6351
- exportRemoteTraces?: boolean;
6565
+ type?: "dynamic-tool";
6566
+ /** Toolname */
6567
+ toolName: string;
6568
+ /** Toolcallid */
6569
+ toolCallId: string;
6570
+ /** Title */
6571
+ title?: string | null;
6352
6572
  /**
6353
- * Attachuserid
6354
- * @description When true and the request is authenticated as a PhoenixUser, attaches the user's email as the OpenInference ``user.id`` span attribute on all traced work for this request.
6355
- * @default false
6573
+ * State
6574
+ * @default output-available
6575
+ * @constant
6356
6576
  */
6357
- attachUserId?: boolean;
6358
- /** Messages */
6359
- messages: components["schemas"]["UIMessage"][];
6360
- /** Model */
6361
- model: components["schemas"]["CustomProviderModelSelection"] | components["schemas"]["BuiltInProviderModelSelection"];
6362
- };
6363
- /** _SummarizeResponse */
6364
- _SummarizeResponse: {
6365
- /** Summary */
6366
- summary: string;
6577
+ state?: "output-available";
6578
+ /** Input */
6579
+ input: unknown;
6580
+ /** Output */
6581
+ output: unknown;
6582
+ /** Providerexecuted */
6583
+ providerExecuted?: boolean | null;
6584
+ /** Callprovidermetadata */
6585
+ callProviderMetadata?: {
6586
+ [key: string]: {
6587
+ [key: string]: unknown;
6588
+ };
6589
+ } | null;
6590
+ /** Resultprovidermetadata */
6591
+ resultProviderMetadata?: {
6592
+ [key: string]: {
6593
+ [key: string]: unknown;
6594
+ };
6595
+ } | null;
6596
+ /** Preliminary */
6597
+ preliminary?: boolean | null;
6598
+ /** Approval */
6599
+ approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
6367
6600
  };
6368
6601
  /**
6369
- * ToolCallCallbackProviderMetadata
6370
- * @description Shape of the ``phoenix`` namespace the browser returns in
6371
- * ``callProviderMetadata`` on resolved tool parts: the server-stamped fields
6372
- * plus browser-recorded execution timings.
6602
+ * DynamicToolOutputErrorPart
6603
+ * @description Dynamic tool part in output-error state.
6373
6604
  */
6374
- ToolCallCallbackProviderMetadata: {
6375
- /**
6376
- * Tool Execution Environment
6377
- * @enum {string}
6378
- */
6379
- tool_execution_environment: "client" | "server";
6380
- /**
6381
- * Tool Input Emitted At
6382
- * @default null
6383
- */
6384
- tool_input_emitted_at?: string | null;
6605
+ phoenix__db__types__data_stream_protocol__request_types__DynamicToolOutputErrorPart: {
6385
6606
  /**
6386
- * Client Started At
6387
- * @default null
6607
+ * Type
6608
+ * @default dynamic-tool
6609
+ * @constant
6388
6610
  */
6389
- client_started_at?: string | null;
6611
+ type?: "dynamic-tool";
6612
+ /** Toolname */
6613
+ toolName: string;
6614
+ /** Toolcallid */
6615
+ toolCallId: string;
6616
+ /** Title */
6617
+ title?: string | null;
6390
6618
  /**
6391
- * Client Ended At
6392
- * @default null
6619
+ * State
6620
+ * @default output-error
6621
+ * @constant
6393
6622
  */
6394
- client_ended_at?: string | null;
6623
+ state?: "output-error";
6624
+ /** Input */
6625
+ input: unknown;
6626
+ /** Errortext */
6627
+ errorText: string;
6628
+ /** Providerexecuted */
6629
+ providerExecuted?: boolean | null;
6630
+ /** Callprovidermetadata */
6631
+ callProviderMetadata?: {
6632
+ [key: string]: {
6633
+ [key: string]: unknown;
6634
+ };
6635
+ } | null;
6636
+ /** Resultprovidermetadata */
6637
+ resultProviderMetadata?: {
6638
+ [key: string]: {
6639
+ [key: string]: unknown;
6640
+ };
6641
+ } | null;
6642
+ /** Approval */
6643
+ approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
6395
6644
  };
6396
6645
  /**
6397
- * ToolCallProviderMetadata
6398
- * @description Payload Phoenix stamps under the ``phoenix`` namespace of Vercel AI
6399
- * ``providerMetadata`` on tool-call chunks (``tool-input-start`` and
6400
- * ``tool-input-available``).
6646
+ * ToolOutputAvailablePart
6647
+ * @description Tool part in output-available state.
6401
6648
  */
6402
- ToolCallProviderMetadata: {
6649
+ phoenix__db__types__data_stream_protocol__request_types__ToolOutputAvailablePart: {
6650
+ /** Type */
6651
+ type: string;
6652
+ /** Toolcallid */
6653
+ toolCallId: string;
6654
+ /** Title */
6655
+ title?: string | null;
6403
6656
  /**
6404
- * Tool Execution Environment
6405
- * @enum {string}
6657
+ * State
6658
+ * @default output-available
6659
+ * @constant
6406
6660
  */
6407
- tool_execution_environment: "client" | "server";
6661
+ state?: "output-available";
6662
+ /** Input */
6663
+ input?: unknown | null;
6664
+ /** Output */
6665
+ output?: unknown | null;
6666
+ /** Providerexecuted */
6667
+ providerExecuted?: boolean | null;
6668
+ /** Callprovidermetadata */
6669
+ callProviderMetadata?: {
6670
+ [key: string]: {
6671
+ [key: string]: unknown;
6672
+ };
6673
+ } | null;
6674
+ /** Resultprovidermetadata */
6675
+ resultProviderMetadata?: {
6676
+ [key: string]: {
6677
+ [key: string]: unknown;
6678
+ };
6679
+ } | null;
6680
+ /** Preliminary */
6681
+ preliminary?: boolean | null;
6682
+ /** Approval */
6683
+ approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
6684
+ };
6685
+ /**
6686
+ * ToolOutputErrorPart
6687
+ * @description Tool part in output-error state.
6688
+ */
6689
+ phoenix__db__types__data_stream_protocol__request_types__ToolOutputErrorPart: {
6690
+ /** Type */
6691
+ type: string;
6692
+ /** Toolcallid */
6693
+ toolCallId: string;
6694
+ /** Title */
6695
+ title?: string | null;
6408
6696
  /**
6409
- * Tool Input Emitted At
6410
- * @default null
6697
+ * State
6698
+ * @default output-error
6699
+ * @constant
6411
6700
  */
6412
- tool_input_emitted_at?: string | null;
6701
+ state?: "output-error";
6702
+ /** Input */
6703
+ input?: unknown | null;
6704
+ /** Rawinput */
6705
+ rawInput?: unknown | null;
6706
+ /** Errortext */
6707
+ errorText: string;
6708
+ /** Providerexecuted */
6709
+ providerExecuted?: boolean | null;
6710
+ /** Callprovidermetadata */
6711
+ callProviderMetadata?: {
6712
+ [key: string]: {
6713
+ [key: string]: unknown;
6714
+ };
6715
+ } | null;
6716
+ /** Resultprovidermetadata */
6717
+ resultProviderMetadata?: {
6718
+ [key: string]: {
6719
+ [key: string]: unknown;
6720
+ };
6721
+ } | null;
6722
+ /** Approval */
6723
+ approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
6413
6724
  };
6414
- };
6725
+ /**
6726
+ * DynamicToolOutputAvailablePart
6727
+ * @description Dynamic tool part in output-available state.
6728
+ */
6729
+ pydantic_ai__ui__vercel_ai__request_types__DynamicToolOutputAvailablePart: {
6730
+ /**
6731
+ * Type
6732
+ * @default dynamic-tool
6733
+ * @constant
6734
+ */
6735
+ type?: "dynamic-tool";
6736
+ /** Toolname */
6737
+ toolName: string;
6738
+ /** Toolcallid */
6739
+ toolCallId: string;
6740
+ /** Title */
6741
+ title?: string | null;
6742
+ /**
6743
+ * State
6744
+ * @default output-available
6745
+ * @constant
6746
+ */
6747
+ state?: "output-available";
6748
+ /** Input */
6749
+ input: unknown;
6750
+ /** Output */
6751
+ output: unknown;
6752
+ /** Providerexecuted */
6753
+ providerExecuted?: boolean | null;
6754
+ /** Callprovidermetadata */
6755
+ callProviderMetadata?: {
6756
+ [key: string]: {
6757
+ [key: string]: unknown;
6758
+ };
6759
+ } | null;
6760
+ /** Preliminary */
6761
+ preliminary?: boolean | null;
6762
+ /** Approval */
6763
+ approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
6764
+ };
6765
+ /**
6766
+ * DynamicToolOutputErrorPart
6767
+ * @description Dynamic tool part in output-error state.
6768
+ */
6769
+ pydantic_ai__ui__vercel_ai__request_types__DynamicToolOutputErrorPart: {
6770
+ /**
6771
+ * Type
6772
+ * @default dynamic-tool
6773
+ * @constant
6774
+ */
6775
+ type?: "dynamic-tool";
6776
+ /** Toolname */
6777
+ toolName: string;
6778
+ /** Toolcallid */
6779
+ toolCallId: string;
6780
+ /** Title */
6781
+ title?: string | null;
6782
+ /**
6783
+ * State
6784
+ * @default output-error
6785
+ * @constant
6786
+ */
6787
+ state?: "output-error";
6788
+ /** Input */
6789
+ input: unknown;
6790
+ /** Errortext */
6791
+ errorText: string;
6792
+ /** Providerexecuted */
6793
+ providerExecuted?: boolean | null;
6794
+ /** Callprovidermetadata */
6795
+ callProviderMetadata?: {
6796
+ [key: string]: {
6797
+ [key: string]: unknown;
6798
+ };
6799
+ } | null;
6800
+ /** Approval */
6801
+ approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
6802
+ };
6803
+ /**
6804
+ * ToolOutputAvailablePart
6805
+ * @description Tool part in output-available state.
6806
+ */
6807
+ pydantic_ai__ui__vercel_ai__request_types__ToolOutputAvailablePart: {
6808
+ /** Type */
6809
+ type: string;
6810
+ /** Toolcallid */
6811
+ toolCallId: string;
6812
+ /** Title */
6813
+ title?: string | null;
6814
+ /**
6815
+ * State
6816
+ * @default output-available
6817
+ * @constant
6818
+ */
6819
+ state?: "output-available";
6820
+ /** Input */
6821
+ input?: unknown | null;
6822
+ /** Output */
6823
+ output?: unknown | null;
6824
+ /** Providerexecuted */
6825
+ providerExecuted?: boolean | null;
6826
+ /** Callprovidermetadata */
6827
+ callProviderMetadata?: {
6828
+ [key: string]: {
6829
+ [key: string]: unknown;
6830
+ };
6831
+ } | null;
6832
+ /** Preliminary */
6833
+ preliminary?: boolean | null;
6834
+ /** Approval */
6835
+ approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
6836
+ };
6837
+ /**
6838
+ * ToolOutputErrorPart
6839
+ * @description Tool part in output-error state.
6840
+ */
6841
+ pydantic_ai__ui__vercel_ai__request_types__ToolOutputErrorPart: {
6842
+ /** Type */
6843
+ type: string;
6844
+ /** Toolcallid */
6845
+ toolCallId: string;
6846
+ /** Title */
6847
+ title?: string | null;
6848
+ /**
6849
+ * State
6850
+ * @default output-error
6851
+ * @constant
6852
+ */
6853
+ state?: "output-error";
6854
+ /** Input */
6855
+ input?: unknown | null;
6856
+ /** Rawinput */
6857
+ rawInput?: unknown | null;
6858
+ /** Errortext */
6859
+ errorText: string;
6860
+ /** Providerexecuted */
6861
+ providerExecuted?: boolean | null;
6862
+ /** Callprovidermetadata */
6863
+ callProviderMetadata?: {
6864
+ [key: string]: {
6865
+ [key: string]: unknown;
6866
+ };
6867
+ } | null;
6868
+ /** Approval */
6869
+ approval?: components["schemas"]["ToolApprovalRequested"] | components["schemas"]["ToolApprovalResponded"] | null;
6870
+ };
6871
+ /**
6872
+ * AgentErrorChunk
6873
+ * @description Durable data part paired with a standard protocol ``error`` chunk.
6874
+ *
6875
+ * Standard ``error`` chunks are transient: the reducer routes them to error
6876
+ * callbacks without adding a message part, so they vanish from persisted
6877
+ * transcripts. Pairing each one with this ``data-error`` part records the
6878
+ * error durably in the message for persistence, reload, and subagents.
6879
+ */
6880
+ AgentErrorChunk: {
6881
+ /**
6882
+ * Type
6883
+ * @default data-error
6884
+ * @constant
6885
+ */
6886
+ type?: "data-error";
6887
+ /**
6888
+ * Id
6889
+ * @default null
6890
+ */
6891
+ id?: string | null;
6892
+ data: components["schemas"]["AgentErrorData"];
6893
+ /**
6894
+ * Transient
6895
+ * @default null
6896
+ */
6897
+ transient?: boolean | null;
6898
+ };
6899
+ /**
6900
+ * AgentErrorData
6901
+ * @description Payload of the durable ``data-error`` part persisted for protocol errors.
6902
+ */
6903
+ AgentErrorData: {
6904
+ /** Errortext */
6905
+ errorText: string;
6906
+ };
6907
+ /**
6908
+ * PhoenixToolCallCallbackProviderMetadata
6909
+ * @description Shape of the ``phoenix`` namespace the browser returns in
6910
+ * ``callProviderMetadata`` on resolved tool parts: the server-stamped fields
6911
+ * plus browser-recorded execution timings.
6912
+ */
6913
+ PhoenixToolCallCallbackProviderMetadata: {
6914
+ /**
6915
+ * Toolexecutionenvironment
6916
+ * @enum {string}
6917
+ */
6918
+ toolExecutionEnvironment: "client" | "server";
6919
+ /**
6920
+ * Toolinputemittedat
6921
+ * @default null
6922
+ */
6923
+ toolInputEmittedAt?: string | null;
6924
+ /**
6925
+ * Clientstartedat
6926
+ * @default null
6927
+ */
6928
+ clientStartedAt?: string | null;
6929
+ /**
6930
+ * Clientendedat
6931
+ * @default null
6932
+ */
6933
+ clientEndedAt?: string | null;
6934
+ /**
6935
+ * Outcome
6936
+ * @default null
6937
+ */
6938
+ outcome?: "interrupted" | null;
6939
+ };
6940
+ /**
6941
+ * PhoenixToolCallProviderMetadata
6942
+ * @description Payload Phoenix stamps under the ``phoenix`` namespace of Vercel AI
6943
+ * ``providerMetadata`` on tool-call chunks (``tool-input-start`` and
6944
+ * ``tool-input-available``).
6945
+ */
6946
+ PhoenixToolCallProviderMetadata: {
6947
+ /**
6948
+ * Toolexecutionenvironment
6949
+ * @enum {string}
6950
+ */
6951
+ toolExecutionEnvironment: "client" | "server";
6952
+ /**
6953
+ * Toolinputemittedat
6954
+ * @default null
6955
+ */
6956
+ toolInputEmittedAt?: string | null;
6957
+ };
6958
+ /**
6959
+ * SessionSummaryChunk
6960
+ * @description Transient ``data-session-summary`` stream chunk: the LLM-generated
6961
+ * session title, emitted on any turn that starts with the session still
6962
+ * untitled. Being transient, it reaches the client's ``onData`` callback
6963
+ * but is never appended to the message parts.
6964
+ *
6965
+ * See the Vercel AI SDK data stream protocol:
6966
+ * - Data parts: https://ai-sdk.dev/docs/ai-sdk-ui/stream-protocol#data-parts
6967
+ * - Transient parts: https://ai-sdk.dev/docs/ai-sdk-ui/streaming-data#transient-data-parts-ephemeral
6968
+ */
6969
+ SessionSummaryChunk: {
6970
+ /**
6971
+ * Type
6972
+ * @default data-session-summary
6973
+ * @constant
6974
+ */
6975
+ type?: "data-session-summary";
6976
+ /**
6977
+ * Id
6978
+ * @default null
6979
+ */
6980
+ id?: string | null;
6981
+ /** Data */
6982
+ data: string;
6983
+ /**
6984
+ * Transient
6985
+ * @default true
6986
+ * @constant
6987
+ */
6988
+ transient?: true;
6989
+ };
6990
+ /**
6991
+ * TranscriptPersistedChunk
6992
+ * @description Confirms that a streamed assistant message is durable.
6993
+ */
6994
+ TranscriptPersistedChunk: {
6995
+ /**
6996
+ * Type
6997
+ * @default data-transcript-persisted
6998
+ * @constant
6999
+ */
7000
+ type?: "data-transcript-persisted";
7001
+ /**
7002
+ * Id
7003
+ * @default null
7004
+ */
7005
+ id?: string | null;
7006
+ data: components["schemas"]["TranscriptPersistedData"];
7007
+ /**
7008
+ * Transient
7009
+ * @default true
7010
+ * @constant
7011
+ */
7012
+ transient?: true;
7013
+ };
7014
+ /** TranscriptPersistedData */
7015
+ TranscriptPersistedData: {
7016
+ /** Messageid */
7017
+ messageId: string;
7018
+ };
7019
+ };
6415
7020
  responses: never;
6416
7021
  parameters: never;
6417
7022
  requestBodies: never;
@@ -11759,7 +12364,7 @@ export interface operations {
11759
12364
  };
11760
12365
  };
11761
12366
  };
11762
- run_server_agent_agents_server_sessions__session_id__chat_post: {
12367
+ legacyServerAgentChat: {
11763
12368
  parameters: {
11764
12369
  query?: never;
11765
12370
  header?: never;
@@ -11770,7 +12375,7 @@ export interface operations {
11770
12375
  };
11771
12376
  requestBody: {
11772
12377
  content: {
11773
- "application/json": components["schemas"]["ChatRequest"];
12378
+ "application/json": components["schemas"]["LegacyChatRequest"];
11774
12379
  };
11775
12380
  };
11776
12381
  responses: {
@@ -11783,30 +12388,421 @@ export interface operations {
11783
12388
  "application/json": unknown;
11784
12389
  };
11785
12390
  };
11786
- /** @description Validation Error */
11787
- 422: {
12391
+ /** @description Bad Request */
12392
+ 400: {
11788
12393
  headers: {
11789
12394
  [name: string]: unknown;
11790
12395
  };
11791
12396
  content: {
11792
- "application/json": components["schemas"]["HTTPValidationError"];
12397
+ "text/plain": string;
11793
12398
  };
11794
12399
  };
11795
- };
11796
- };
11797
- chat_agents__agent_id__sessions__session_id__chat_post: {
11798
- parameters: {
11799
- query?: never;
11800
- header?: never;
11801
- path: {
11802
- agent_id: string;
11803
- session_id: string;
12400
+ /** @description Unauthorized */
12401
+ 401: {
12402
+ headers: {
12403
+ [name: string]: unknown;
12404
+ };
12405
+ content: {
12406
+ "text/plain": string;
12407
+ };
11804
12408
  };
11805
- cookie?: never;
11806
- };
12409
+ /** @description Forbidden */
12410
+ 403: {
12411
+ headers: {
12412
+ [name: string]: unknown;
12413
+ };
12414
+ content: {
12415
+ "text/plain": string;
12416
+ };
12417
+ };
12418
+ /** @description Not Found */
12419
+ 404: {
12420
+ headers: {
12421
+ [name: string]: unknown;
12422
+ };
12423
+ content: {
12424
+ "text/plain": string;
12425
+ };
12426
+ };
12427
+ /** @description Validation Error */
12428
+ 422: {
12429
+ headers: {
12430
+ [name: string]: unknown;
12431
+ };
12432
+ content: {
12433
+ "application/json": components["schemas"]["HTTPValidationError"];
12434
+ };
12435
+ };
12436
+ /** @description Insufficient Storage */
12437
+ 507: {
12438
+ headers: {
12439
+ [name: string]: unknown;
12440
+ };
12441
+ content: {
12442
+ "text/plain": string;
12443
+ };
12444
+ };
12445
+ };
12446
+ };
12447
+ listAgentSessions: {
12448
+ parameters: {
12449
+ query?: {
12450
+ /** @description Opaque pagination cursor. */
12451
+ cursor?: string | null;
12452
+ limit?: number;
12453
+ };
12454
+ header?: never;
12455
+ path?: never;
12456
+ cookie?: never;
12457
+ };
12458
+ requestBody?: never;
12459
+ responses: {
12460
+ /** @description Successful Response */
12461
+ 200: {
12462
+ headers: {
12463
+ [name: string]: unknown;
12464
+ };
12465
+ content: {
12466
+ "application/json": components["schemas"]["ListAgentSessionsResponseBody"];
12467
+ };
12468
+ };
12469
+ /** @description Unauthorized */
12470
+ 401: {
12471
+ headers: {
12472
+ [name: string]: unknown;
12473
+ };
12474
+ content: {
12475
+ "text/plain": string;
12476
+ };
12477
+ };
12478
+ /** @description Forbidden */
12479
+ 403: {
12480
+ headers: {
12481
+ [name: string]: unknown;
12482
+ };
12483
+ content: {
12484
+ "text/plain": string;
12485
+ };
12486
+ };
12487
+ /** @description Not Found */
12488
+ 404: {
12489
+ headers: {
12490
+ [name: string]: unknown;
12491
+ };
12492
+ content: {
12493
+ "text/plain": string;
12494
+ };
12495
+ };
12496
+ /** @description Unprocessable Entity */
12497
+ 422: {
12498
+ headers: {
12499
+ [name: string]: unknown;
12500
+ };
12501
+ content: {
12502
+ "text/plain": string;
12503
+ };
12504
+ };
12505
+ };
12506
+ };
12507
+ createAgentSession: {
12508
+ parameters: {
12509
+ query?: never;
12510
+ header?: never;
12511
+ path?: never;
12512
+ cookie?: never;
12513
+ };
12514
+ requestBody: {
12515
+ content: {
12516
+ "application/json": components["schemas"]["CreateAgentSessionRequestBody"];
12517
+ };
12518
+ };
12519
+ responses: {
12520
+ /** @description Successful Response */
12521
+ 201: {
12522
+ headers: {
12523
+ [name: string]: unknown;
12524
+ };
12525
+ content: {
12526
+ "application/json": components["schemas"]["CreateAgentSessionResponseBody"];
12527
+ };
12528
+ };
12529
+ /** @description Bad Request */
12530
+ 400: {
12531
+ headers: {
12532
+ [name: string]: unknown;
12533
+ };
12534
+ content: {
12535
+ "text/plain": string;
12536
+ };
12537
+ };
12538
+ /** @description Unauthorized */
12539
+ 401: {
12540
+ headers: {
12541
+ [name: string]: unknown;
12542
+ };
12543
+ content: {
12544
+ "text/plain": string;
12545
+ };
12546
+ };
12547
+ /** @description Forbidden */
12548
+ 403: {
12549
+ headers: {
12550
+ [name: string]: unknown;
12551
+ };
12552
+ content: {
12553
+ "text/plain": string;
12554
+ };
12555
+ };
12556
+ /** @description Not Found */
12557
+ 404: {
12558
+ headers: {
12559
+ [name: string]: unknown;
12560
+ };
12561
+ content: {
12562
+ "text/plain": string;
12563
+ };
12564
+ };
12565
+ /** @description Unprocessable Entity */
12566
+ 422: {
12567
+ headers: {
12568
+ [name: string]: unknown;
12569
+ };
12570
+ content: {
12571
+ "text/plain": string;
12572
+ };
12573
+ };
12574
+ /** @description Insufficient Storage */
12575
+ 507: {
12576
+ headers: {
12577
+ [name: string]: unknown;
12578
+ };
12579
+ content: {
12580
+ "text/plain": string;
12581
+ };
12582
+ };
12583
+ };
12584
+ };
12585
+ getAgentSession: {
12586
+ parameters: {
12587
+ query?: never;
12588
+ header?: never;
12589
+ path: {
12590
+ session_id: string;
12591
+ };
12592
+ cookie?: never;
12593
+ };
12594
+ requestBody?: never;
12595
+ responses: {
12596
+ /** @description Successful Response */
12597
+ 200: {
12598
+ headers: {
12599
+ [name: string]: unknown;
12600
+ };
12601
+ content: {
12602
+ "application/json": components["schemas"]["GetAgentSessionResponseBody"];
12603
+ };
12604
+ };
12605
+ /** @description Unauthorized */
12606
+ 401: {
12607
+ headers: {
12608
+ [name: string]: unknown;
12609
+ };
12610
+ content: {
12611
+ "text/plain": string;
12612
+ };
12613
+ };
12614
+ /** @description Forbidden */
12615
+ 403: {
12616
+ headers: {
12617
+ [name: string]: unknown;
12618
+ };
12619
+ content: {
12620
+ "text/plain": string;
12621
+ };
12622
+ };
12623
+ /** @description Not Found */
12624
+ 404: {
12625
+ headers: {
12626
+ [name: string]: unknown;
12627
+ };
12628
+ content: {
12629
+ "text/plain": string;
12630
+ };
12631
+ };
12632
+ /** @description Validation Error */
12633
+ 422: {
12634
+ headers: {
12635
+ [name: string]: unknown;
12636
+ };
12637
+ content: {
12638
+ "application/json": components["schemas"]["HTTPValidationError"];
12639
+ };
12640
+ };
12641
+ };
12642
+ };
12643
+ patchAgentSession: {
12644
+ parameters: {
12645
+ query?: never;
12646
+ header?: never;
12647
+ path: {
12648
+ session_id: string;
12649
+ };
12650
+ cookie?: never;
12651
+ };
12652
+ requestBody: {
12653
+ content: {
12654
+ "application/json": components["schemas"]["PatchAgentSessionRequestBody"];
12655
+ };
12656
+ };
12657
+ responses: {
12658
+ /** @description Successful Response */
12659
+ 200: {
12660
+ headers: {
12661
+ [name: string]: unknown;
12662
+ };
12663
+ content: {
12664
+ "application/json": components["schemas"]["PatchAgentSessionResponseBody"];
12665
+ };
12666
+ };
12667
+ /** @description Bad Request */
12668
+ 400: {
12669
+ headers: {
12670
+ [name: string]: unknown;
12671
+ };
12672
+ content: {
12673
+ "text/plain": string;
12674
+ };
12675
+ };
12676
+ /** @description Unauthorized */
12677
+ 401: {
12678
+ headers: {
12679
+ [name: string]: unknown;
12680
+ };
12681
+ content: {
12682
+ "text/plain": string;
12683
+ };
12684
+ };
12685
+ /** @description Forbidden */
12686
+ 403: {
12687
+ headers: {
12688
+ [name: string]: unknown;
12689
+ };
12690
+ content: {
12691
+ "text/plain": string;
12692
+ };
12693
+ };
12694
+ /** @description Not Found */
12695
+ 404: {
12696
+ headers: {
12697
+ [name: string]: unknown;
12698
+ };
12699
+ content: {
12700
+ "text/plain": string;
12701
+ };
12702
+ };
12703
+ /** @description The request conflicts with the session's current state; the body's ``code`` field says how. */
12704
+ 409: {
12705
+ headers: {
12706
+ [name: string]: unknown;
12707
+ };
12708
+ content: {
12709
+ "application/json": components["schemas"]["AgentSessionConflictError"];
12710
+ };
12711
+ };
12712
+ /** @description Unprocessable Entity */
12713
+ 422: {
12714
+ headers: {
12715
+ [name: string]: unknown;
12716
+ };
12717
+ content: {
12718
+ "text/plain": string;
12719
+ };
12720
+ };
12721
+ /** @description Insufficient Storage */
12722
+ 507: {
12723
+ headers: {
12724
+ [name: string]: unknown;
12725
+ };
12726
+ content: {
12727
+ "text/plain": string;
12728
+ };
12729
+ };
12730
+ };
12731
+ };
12732
+ listAgentSessionMessages: {
12733
+ parameters: {
12734
+ query?: {
12735
+ /** @description Opaque pagination cursor. */
12736
+ cursor?: string | null;
12737
+ limit?: number;
12738
+ };
12739
+ header?: never;
12740
+ path: {
12741
+ session_id: string;
12742
+ };
12743
+ cookie?: never;
12744
+ };
12745
+ requestBody?: never;
12746
+ responses: {
12747
+ /** @description Successful Response */
12748
+ 200: {
12749
+ headers: {
12750
+ [name: string]: unknown;
12751
+ };
12752
+ content: {
12753
+ "application/json": components["schemas"]["ListAgentSessionMessagesResponseBody"];
12754
+ };
12755
+ };
12756
+ /** @description Unauthorized */
12757
+ 401: {
12758
+ headers: {
12759
+ [name: string]: unknown;
12760
+ };
12761
+ content: {
12762
+ "text/plain": string;
12763
+ };
12764
+ };
12765
+ /** @description Forbidden */
12766
+ 403: {
12767
+ headers: {
12768
+ [name: string]: unknown;
12769
+ };
12770
+ content: {
12771
+ "text/plain": string;
12772
+ };
12773
+ };
12774
+ /** @description Not Found */
12775
+ 404: {
12776
+ headers: {
12777
+ [name: string]: unknown;
12778
+ };
12779
+ content: {
12780
+ "text/plain": string;
12781
+ };
12782
+ };
12783
+ /** @description Unprocessable Entity */
12784
+ 422: {
12785
+ headers: {
12786
+ [name: string]: unknown;
12787
+ };
12788
+ content: {
12789
+ "text/plain": string;
12790
+ };
12791
+ };
12792
+ };
12793
+ };
12794
+ compactAgentSession: {
12795
+ parameters: {
12796
+ query?: never;
12797
+ header?: never;
12798
+ path: {
12799
+ session_id: string;
12800
+ };
12801
+ cookie?: never;
12802
+ };
11807
12803
  requestBody: {
11808
12804
  content: {
11809
- "application/json": components["schemas"]["ChatRequest"];
12805
+ "application/json": components["schemas"]["CompactAgentSessionRequestBody"];
11810
12806
  };
11811
12807
  };
11812
12808
  responses: {
@@ -11816,7 +12812,150 @@ export interface operations {
11816
12812
  [name: string]: unknown;
11817
12813
  };
11818
12814
  content: {
11819
- "application/json": unknown;
12815
+ "application/json": components["schemas"]["CompactAgentSessionResponseBody"];
12816
+ };
12817
+ };
12818
+ /** @description Bad Request */
12819
+ 400: {
12820
+ headers: {
12821
+ [name: string]: unknown;
12822
+ };
12823
+ content: {
12824
+ "text/plain": string;
12825
+ };
12826
+ };
12827
+ /** @description Unauthorized */
12828
+ 401: {
12829
+ headers: {
12830
+ [name: string]: unknown;
12831
+ };
12832
+ content: {
12833
+ "text/plain": string;
12834
+ };
12835
+ };
12836
+ /** @description Forbidden */
12837
+ 403: {
12838
+ headers: {
12839
+ [name: string]: unknown;
12840
+ };
12841
+ content: {
12842
+ "text/plain": string;
12843
+ };
12844
+ };
12845
+ /** @description Not Found */
12846
+ 404: {
12847
+ headers: {
12848
+ [name: string]: unknown;
12849
+ };
12850
+ content: {
12851
+ "text/plain": string;
12852
+ };
12853
+ };
12854
+ /** @description The request conflicts with the session's current state; the body's ``code`` field says how. */
12855
+ 409: {
12856
+ headers: {
12857
+ [name: string]: unknown;
12858
+ };
12859
+ content: {
12860
+ "application/json": components["schemas"]["AgentSessionConflictError"];
12861
+ };
12862
+ };
12863
+ /** @description Validation Error */
12864
+ 422: {
12865
+ headers: {
12866
+ [name: string]: unknown;
12867
+ };
12868
+ content: {
12869
+ "application/json": components["schemas"]["HTTPValidationError"];
12870
+ };
12871
+ };
12872
+ /** @description Bad Gateway */
12873
+ 502: {
12874
+ headers: {
12875
+ [name: string]: unknown;
12876
+ };
12877
+ content: {
12878
+ "text/plain": string;
12879
+ };
12880
+ };
12881
+ /** @description Insufficient Storage */
12882
+ 507: {
12883
+ headers: {
12884
+ [name: string]: unknown;
12885
+ };
12886
+ content: {
12887
+ "text/plain": string;
12888
+ };
12889
+ };
12890
+ };
12891
+ };
12892
+ submitAgentSessionToolOutputs: {
12893
+ parameters: {
12894
+ query?: never;
12895
+ header?: never;
12896
+ path: {
12897
+ session_id: string;
12898
+ };
12899
+ cookie?: never;
12900
+ };
12901
+ requestBody: {
12902
+ content: {
12903
+ "application/json": components["schemas"]["SubmitAgentSessionToolOutputsRequestBody"];
12904
+ };
12905
+ };
12906
+ responses: {
12907
+ /** @description Successful Response */
12908
+ 200: {
12909
+ headers: {
12910
+ [name: string]: unknown;
12911
+ };
12912
+ content: {
12913
+ "application/json": components["schemas"]["SubmitAgentSessionToolOutputsResponseBody"];
12914
+ };
12915
+ };
12916
+ /** @description Bad Request */
12917
+ 400: {
12918
+ headers: {
12919
+ [name: string]: unknown;
12920
+ };
12921
+ content: {
12922
+ "text/plain": string;
12923
+ };
12924
+ };
12925
+ /** @description Unauthorized */
12926
+ 401: {
12927
+ headers: {
12928
+ [name: string]: unknown;
12929
+ };
12930
+ content: {
12931
+ "text/plain": string;
12932
+ };
12933
+ };
12934
+ /** @description Forbidden */
12935
+ 403: {
12936
+ headers: {
12937
+ [name: string]: unknown;
12938
+ };
12939
+ content: {
12940
+ "text/plain": string;
12941
+ };
12942
+ };
12943
+ /** @description Not Found */
12944
+ 404: {
12945
+ headers: {
12946
+ [name: string]: unknown;
12947
+ };
12948
+ content: {
12949
+ "text/plain": string;
12950
+ };
12951
+ };
12952
+ /** @description The request conflicts with the session's current state; the body's ``code`` field says how. */
12953
+ 409: {
12954
+ headers: {
12955
+ [name: string]: unknown;
12956
+ };
12957
+ content: {
12958
+ "application/json": components["schemas"]["AgentSessionConflictError"];
11820
12959
  };
11821
12960
  };
11822
12961
  /** @description Validation Error */
@@ -11828,21 +12967,29 @@ export interface operations {
11828
12967
  "application/json": components["schemas"]["HTTPValidationError"];
11829
12968
  };
11830
12969
  };
12970
+ /** @description Insufficient Storage */
12971
+ 507: {
12972
+ headers: {
12973
+ [name: string]: unknown;
12974
+ };
12975
+ content: {
12976
+ "text/plain": string;
12977
+ };
12978
+ };
11831
12979
  };
11832
12980
  };
11833
- summarize_endpoint_agents__agent_id__sessions__session_id__summary_post: {
12981
+ agentSessionChat: {
11834
12982
  parameters: {
11835
12983
  query?: never;
11836
12984
  header?: never;
11837
12985
  path: {
11838
- agent_id: string;
11839
12986
  session_id: string;
11840
12987
  };
11841
12988
  cookie?: never;
11842
12989
  };
11843
12990
  requestBody: {
11844
12991
  content: {
11845
- "application/json": components["schemas"]["_SummarizeRequest"];
12992
+ "application/json": components["schemas"]["ChatRequestBody"];
11846
12993
  };
11847
12994
  };
11848
12995
  responses: {
@@ -11852,7 +12999,52 @@ export interface operations {
11852
12999
  [name: string]: unknown;
11853
13000
  };
11854
13001
  content: {
11855
- "application/json": components["schemas"]["_SummarizeResponse"];
13002
+ "application/json": unknown;
13003
+ };
13004
+ };
13005
+ /** @description Bad Request */
13006
+ 400: {
13007
+ headers: {
13008
+ [name: string]: unknown;
13009
+ };
13010
+ content: {
13011
+ "text/plain": string;
13012
+ };
13013
+ };
13014
+ /** @description Unauthorized */
13015
+ 401: {
13016
+ headers: {
13017
+ [name: string]: unknown;
13018
+ };
13019
+ content: {
13020
+ "text/plain": string;
13021
+ };
13022
+ };
13023
+ /** @description Forbidden */
13024
+ 403: {
13025
+ headers: {
13026
+ [name: string]: unknown;
13027
+ };
13028
+ content: {
13029
+ "text/plain": string;
13030
+ };
13031
+ };
13032
+ /** @description Not Found */
13033
+ 404: {
13034
+ headers: {
13035
+ [name: string]: unknown;
13036
+ };
13037
+ content: {
13038
+ "text/plain": string;
13039
+ };
13040
+ };
13041
+ /** @description The request conflicts with the session's current state; the body's ``code`` field says how. */
13042
+ 409: {
13043
+ headers: {
13044
+ [name: string]: unknown;
13045
+ };
13046
+ content: {
13047
+ "application/json": components["schemas"]["AgentSessionConflictError"];
11856
13048
  };
11857
13049
  };
11858
13050
  /** @description Validation Error */
@@ -11864,6 +13056,15 @@ export interface operations {
11864
13056
  "application/json": components["schemas"]["HTTPValidationError"];
11865
13057
  };
11866
13058
  };
13059
+ /** @description Insufficient Storage */
13060
+ 507: {
13061
+ headers: {
13062
+ [name: string]: unknown;
13063
+ };
13064
+ content: {
13065
+ "text/plain": string;
13066
+ };
13067
+ };
11867
13068
  };
11868
13069
  };
11869
13070
  version_arize_phoenix_version_get: {