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