@arizeai/phoenix-client 7.5.0 → 7.6.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.
- package/CHANGELOG.md +769 -0
- package/dist/esm/__generated__/api/v1.d.ts +748 -202
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/constants/serverRequirements.d.ts +1 -0
- package/dist/esm/constants/serverRequirements.d.ts.map +1 -1
- package/dist/esm/constants/serverRequirements.js +7 -0
- package/dist/esm/constants/serverRequirements.js.map +1 -1
- package/dist/esm/prompts/deletePrompt.d.ts +39 -0
- package/dist/esm/prompts/deletePrompt.d.ts.map +1 -0
- package/dist/esm/prompts/deletePrompt.js +52 -0
- package/dist/esm/prompts/deletePrompt.js.map +1 -0
- package/dist/esm/prompts/index.d.ts +1 -0
- package/dist/esm/prompts/index.d.ts.map +1 -1
- package/dist/esm/prompts/index.js +1 -0
- package/dist/esm/prompts/index.js.map +1 -1
- package/dist/esm/testing/reporter-format.d.ts.map +1 -1
- package/dist/esm/testing/reporter-format.js +13 -3
- package/dist/esm/testing/reporter-format.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/types/prompts.d.ts +9 -0
- package/dist/esm/types/prompts.d.ts.map +1 -1
- package/dist/esm/types/prompts.js.map +1 -1
- package/dist/esm/utils/resolvePromptIdentifier.d.ts +17 -0
- package/dist/esm/utils/resolvePromptIdentifier.d.ts.map +1 -0
- package/dist/esm/utils/resolvePromptIdentifier.js +36 -0
- package/dist/esm/utils/resolvePromptIdentifier.js.map +1 -0
- package/dist/src/__generated__/api/v1.d.ts +748 -202
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/constants/serverRequirements.d.ts +1 -0
- package/dist/src/constants/serverRequirements.d.ts.map +1 -1
- package/dist/src/constants/serverRequirements.js +8 -1
- package/dist/src/constants/serverRequirements.js.map +1 -1
- package/dist/src/prompts/deletePrompt.d.ts +39 -0
- package/dist/src/prompts/deletePrompt.d.ts.map +1 -0
- package/dist/src/prompts/deletePrompt.js +55 -0
- package/dist/src/prompts/deletePrompt.js.map +1 -0
- package/dist/src/prompts/index.d.ts +1 -0
- package/dist/src/prompts/index.d.ts.map +1 -1
- package/dist/src/prompts/index.js +1 -0
- package/dist/src/prompts/index.js.map +1 -1
- package/dist/src/testing/reporter-format.d.ts.map +1 -1
- package/dist/src/testing/reporter-format.js +13 -3
- package/dist/src/testing/reporter-format.js.map +1 -1
- package/dist/src/types/prompts.d.ts +9 -0
- package/dist/src/types/prompts.d.ts.map +1 -1
- package/dist/src/types/prompts.js.map +1 -1
- package/dist/src/utils/resolvePromptIdentifier.d.ts +17 -0
- package/dist/src/utils/resolvePromptIdentifier.d.ts.map +1 -0
- package/dist/src/utils/resolvePromptIdentifier.js +39 -0
- package/dist/src/utils/resolvePromptIdentifier.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/prompts.mdx +19 -1
- package/package.json +11 -11
- package/src/__generated__/api/v1.ts +748 -202
- package/src/constants/serverRequirements.ts +8 -0
- package/src/prompts/deletePrompt.ts +70 -0
- package/src/prompts/index.ts +1 -0
- package/src/testing/reporter-format.ts +13 -3
- package/src/types/prompts.ts +10 -0
- package/src/utils/resolvePromptIdentifier.ts +41 -0
|
@@ -803,6 +803,26 @@ export interface paths {
|
|
|
803
803
|
patch?: never;
|
|
804
804
|
trace?: never;
|
|
805
805
|
};
|
|
806
|
+
"/v1/traces/transfer": {
|
|
807
|
+
parameters: {
|
|
808
|
+
query?: never;
|
|
809
|
+
header?: never;
|
|
810
|
+
path?: never;
|
|
811
|
+
cookie?: never;
|
|
812
|
+
};
|
|
813
|
+
get?: never;
|
|
814
|
+
put?: never;
|
|
815
|
+
/**
|
|
816
|
+
* Transfer traces to a project
|
|
817
|
+
* @description Move traces into a different project. This re-parents the traces rather than copying them, so they no longer appear under their original project. All traces must currently belong to the same source project.
|
|
818
|
+
*/
|
|
819
|
+
post: operations["transferTraces"];
|
|
820
|
+
delete?: never;
|
|
821
|
+
options?: never;
|
|
822
|
+
head?: never;
|
|
823
|
+
patch?: never;
|
|
824
|
+
trace?: never;
|
|
825
|
+
};
|
|
806
826
|
"/v1/traces/{trace_identifier}": {
|
|
807
827
|
parameters: {
|
|
808
828
|
query?: never;
|
|
@@ -977,7 +997,11 @@ export interface paths {
|
|
|
977
997
|
*/
|
|
978
998
|
get: operations["listPromptVersions"];
|
|
979
999
|
put?: never;
|
|
980
|
-
|
|
1000
|
+
/**
|
|
1001
|
+
* Create prompt version
|
|
1002
|
+
* @description Create a new version for an existing prompt by identifier.
|
|
1003
|
+
*/
|
|
1004
|
+
post: operations["createPromptVersion"];
|
|
981
1005
|
delete?: never;
|
|
982
1006
|
options?: never;
|
|
983
1007
|
head?: never;
|
|
@@ -1164,6 +1188,66 @@ export interface paths {
|
|
|
1164
1188
|
patch?: never;
|
|
1165
1189
|
trace?: never;
|
|
1166
1190
|
};
|
|
1191
|
+
"/v1/projects/{project_identifier}/retention": {
|
|
1192
|
+
parameters: {
|
|
1193
|
+
query?: never;
|
|
1194
|
+
header?: never;
|
|
1195
|
+
path?: never;
|
|
1196
|
+
cookie?: never;
|
|
1197
|
+
};
|
|
1198
|
+
get?: never;
|
|
1199
|
+
put?: never;
|
|
1200
|
+
post?: never;
|
|
1201
|
+
delete?: never;
|
|
1202
|
+
options?: never;
|
|
1203
|
+
head?: never;
|
|
1204
|
+
/**
|
|
1205
|
+
* Set a project's trace retention policy
|
|
1206
|
+
* @description Assign an existing trace retention policy to a project, or reset the project to the default policy with a null `policy_id`. Retention policies are standalone, reusable entities: this endpoint only changes which policy the project points at, and never creates, edits, or deletes a policy.
|
|
1207
|
+
*/
|
|
1208
|
+
patch: operations["setProjectRetentionPolicy"];
|
|
1209
|
+
trace?: never;
|
|
1210
|
+
};
|
|
1211
|
+
"/v1/model_providers": {
|
|
1212
|
+
parameters: {
|
|
1213
|
+
query?: never;
|
|
1214
|
+
header?: never;
|
|
1215
|
+
path?: never;
|
|
1216
|
+
cookie?: never;
|
|
1217
|
+
};
|
|
1218
|
+
/**
|
|
1219
|
+
* List built-in model provider families
|
|
1220
|
+
* @description Retrieve the built-in model provider families available to this deployment. Built-in families are a fixed enum rather than stored records, so this list is not paginated; it is narrowed by the PHOENIX_ALLOWED_PROVIDERS environment variable when that is set. User-defined providers are listed separately by `GET /v1/custom_model_providers`.
|
|
1221
|
+
*/
|
|
1222
|
+
get: operations["getModelProviders"];
|
|
1223
|
+
put?: never;
|
|
1224
|
+
post?: never;
|
|
1225
|
+
delete?: never;
|
|
1226
|
+
options?: never;
|
|
1227
|
+
head?: never;
|
|
1228
|
+
patch?: never;
|
|
1229
|
+
trace?: never;
|
|
1230
|
+
};
|
|
1231
|
+
"/v1/custom_model_providers": {
|
|
1232
|
+
parameters: {
|
|
1233
|
+
query?: never;
|
|
1234
|
+
header?: never;
|
|
1235
|
+
path?: never;
|
|
1236
|
+
cookie?: never;
|
|
1237
|
+
};
|
|
1238
|
+
/**
|
|
1239
|
+
* List custom model providers
|
|
1240
|
+
* @description Retrieve a paginated list of user-defined custom model providers. Encrypted provider credentials are never returned. Built-in provider families are listed separately by `GET /v1/model_providers`.
|
|
1241
|
+
*/
|
|
1242
|
+
get: operations["getCustomModelProviders"];
|
|
1243
|
+
put?: never;
|
|
1244
|
+
post?: never;
|
|
1245
|
+
delete?: never;
|
|
1246
|
+
options?: never;
|
|
1247
|
+
head?: never;
|
|
1248
|
+
patch?: never;
|
|
1249
|
+
trace?: never;
|
|
1250
|
+
};
|
|
1167
1251
|
"/v1/sessions/{session_identifier}": {
|
|
1168
1252
|
parameters: {
|
|
1169
1253
|
query?: never;
|
|
@@ -1659,7 +1743,7 @@ export interface paths {
|
|
|
1659
1743
|
get?: never;
|
|
1660
1744
|
put?: never;
|
|
1661
1745
|
/**
|
|
1662
|
-
* Run
|
|
1746
|
+
* Run Headless Agent
|
|
1663
1747
|
* @deprecated
|
|
1664
1748
|
*/
|
|
1665
1749
|
post: operations["legacyServerAgentChat"];
|
|
@@ -1774,6 +1858,26 @@ export interface paths {
|
|
|
1774
1858
|
patch?: never;
|
|
1775
1859
|
trace?: never;
|
|
1776
1860
|
};
|
|
1861
|
+
"/v1/agent_sessions/{session_id}/tool_approvals": {
|
|
1862
|
+
parameters: {
|
|
1863
|
+
query?: never;
|
|
1864
|
+
header?: never;
|
|
1865
|
+
path?: never;
|
|
1866
|
+
cookie?: never;
|
|
1867
|
+
};
|
|
1868
|
+
get?: never;
|
|
1869
|
+
put?: never;
|
|
1870
|
+
/**
|
|
1871
|
+
* Submit Agent Session Tool Approvals
|
|
1872
|
+
* @description Persist answered tool approvals for the session's open turn.
|
|
1873
|
+
*/
|
|
1874
|
+
post: operations["submitAgentSessionToolApprovals"];
|
|
1875
|
+
delete?: never;
|
|
1876
|
+
options?: never;
|
|
1877
|
+
head?: never;
|
|
1878
|
+
patch?: never;
|
|
1879
|
+
trace?: never;
|
|
1880
|
+
};
|
|
1777
1881
|
"/v1/agent_sessions/{session_id}/chat": {
|
|
1778
1882
|
parameters: {
|
|
1779
1883
|
query?: never;
|
|
@@ -1867,6 +1971,12 @@ export interface components {
|
|
|
1867
1971
|
* mismatch). Unlike ``agent_session_messages_stale`` this is not a
|
|
1868
1972
|
* concurrent-writer race but an inconsistent request; fix the client
|
|
1869
1973
|
* rather than retrying.
|
|
1974
|
+
* - ``agent_session_tool_approvals_conflict``: the submitted ``toolApprovals``
|
|
1975
|
+
* do not match the transcript's trailing assistant message (no trailing
|
|
1976
|
+
* assistant message to answer, an unknown ``toolCallId``, a call that is
|
|
1977
|
+
* not awaiting approval, or a reversal of an already-persisted answer).
|
|
1978
|
+
* Like the tool-output conflict this is an inconsistent request rather than
|
|
1979
|
+
* a concurrent-writer race; fix the client rather than retrying.
|
|
1870
1980
|
* - ``agent_session_already_compact``: there are no complete turns to
|
|
1871
1981
|
* compact — either nothing new has finished since the transcript's latest
|
|
1872
1982
|
* checkpoint, or a concurrent request's checkpoint already covers them.
|
|
@@ -1880,7 +1990,7 @@ export interface components {
|
|
|
1880
1990
|
* @description Machine-readable reason the request conflicted.
|
|
1881
1991
|
* @enum {string}
|
|
1882
1992
|
*/
|
|
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";
|
|
1993
|
+
code: "agent_session_busy" | "agent_session_model_stale" | "agent_session_messages_stale" | "agent_session_tool_outputs_conflict" | "agent_session_tool_approvals_conflict" | "agent_session_already_compact" | "agent_session_compaction_conflict";
|
|
1884
1994
|
/**
|
|
1885
1995
|
* Message
|
|
1886
1996
|
* @description Optional human-readable elaboration on the conflict.
|
|
@@ -1936,27 +2046,6 @@ export interface components {
|
|
|
1936
2046
|
/** Is Ephemeral */
|
|
1937
2047
|
is_ephemeral: boolean;
|
|
1938
2048
|
};
|
|
1939
|
-
/**
|
|
1940
|
-
* AgentSpanContext
|
|
1941
|
-
* @description Span the user has selected.
|
|
1942
|
-
*
|
|
1943
|
-
* Exactly one of ``span_node_id`` (relay) or ``otel_span_id`` (OpenTelemetry
|
|
1944
|
-
* hex) must be set. ``project_node_id`` is optional because a span can be
|
|
1945
|
-
* selected from views outside a project route.
|
|
1946
|
-
*/
|
|
1947
|
-
AgentSpanContext: {
|
|
1948
|
-
/**
|
|
1949
|
-
* @description discriminator enum property added by openapi-typescript
|
|
1950
|
-
* @enum {string}
|
|
1951
|
-
*/
|
|
1952
|
-
type: "span";
|
|
1953
|
-
/** Projectnodeid */
|
|
1954
|
-
projectNodeId?: string | null;
|
|
1955
|
-
/** Spannodeid */
|
|
1956
|
-
spanNodeId?: string | null;
|
|
1957
|
-
/** Otelspanid */
|
|
1958
|
-
otelSpanId?: string | null;
|
|
1959
|
-
};
|
|
1960
2049
|
/** AnnotateSessionsRequestBody */
|
|
1961
2050
|
AnnotateSessionsRequestBody: {
|
|
1962
2051
|
/** Data */
|
|
@@ -2114,6 +2203,16 @@ export interface components {
|
|
|
2114
2203
|
/** Total */
|
|
2115
2204
|
total: number;
|
|
2116
2205
|
};
|
|
2206
|
+
/** BuiltInModelProvider */
|
|
2207
|
+
BuiltInModelProvider: {
|
|
2208
|
+
/** @description The provider family identifier, accepted wherever a built-in model provider is specified (e.g. 'OPENAI'). */
|
|
2209
|
+
provider: components["schemas"]["ModelProvider"];
|
|
2210
|
+
/**
|
|
2211
|
+
* Name
|
|
2212
|
+
* @description The human-readable name of the provider family (e.g. 'OpenAI').
|
|
2213
|
+
*/
|
|
2214
|
+
name: string;
|
|
2215
|
+
};
|
|
2117
2216
|
/**
|
|
2118
2217
|
* BuiltInProviderModelSelection
|
|
2119
2218
|
* @description Chat against a Phoenix built-in provider.
|
|
@@ -2262,12 +2361,18 @@ export interface components {
|
|
|
2262
2361
|
completion_tokens: number;
|
|
2263
2362
|
/** Total Tokens */
|
|
2264
2363
|
total_tokens: number;
|
|
2364
|
+
prompt_tokens_details?: components["schemas"]["ChatCompletionUsagePromptTokensDetails"] | null;
|
|
2365
|
+
};
|
|
2366
|
+
/** ChatCompletionUsagePromptTokensDetails */
|
|
2367
|
+
ChatCompletionUsagePromptTokensDetails: {
|
|
2368
|
+
/** Cached Tokens */
|
|
2369
|
+
cached_tokens: number;
|
|
2265
2370
|
};
|
|
2266
2371
|
/**
|
|
2267
2372
|
* ChatContext
|
|
2268
2373
|
* @description Discriminated union of every UI-state context the agent understands.
|
|
2269
2374
|
*/
|
|
2270
|
-
ChatContext: components["schemas"]["AppContext"] | components["schemas"]["
|
|
2375
|
+
ChatContext: components["schemas"]["AppContext"] | components["schemas"]["ProjectUIContext"] | components["schemas"]["TraceUIContext"] | components["schemas"]["SessionUIContext"] | components["schemas"]["PromptUIContext"] | components["schemas"]["PromptVersionUIContext"] | components["schemas"]["SpanUIContext"] | components["schemas"]["PlaygroundUIContext"] | components["schemas"]["CodeEvaluatorUIContext"] | components["schemas"]["LlmEvaluatorUIContext"] | components["schemas"]["DatasetUIContext"] | components["schemas"]["GraphQLContext"] | components["schemas"]["WebAccessContext"] | components["schemas"]["SubagentsContext"];
|
|
2271
2376
|
/**
|
|
2272
2377
|
* ChatRequestBody
|
|
2273
2378
|
* @description Assistant chat submit request payload.
|
|
@@ -2308,6 +2413,11 @@ export interface components {
|
|
|
2308
2413
|
* @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
2414
|
*/
|
|
2310
2415
|
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"])[];
|
|
2416
|
+
/**
|
|
2417
|
+
* Toolapprovals
|
|
2418
|
+
* @description Responses to tool calls awaiting approval on the trailing assistant message, matched by ``toolCallId``. Cannot be combined with ``message``.
|
|
2419
|
+
*/
|
|
2420
|
+
toolApprovals?: components["schemas"]["ToolApproval"][];
|
|
2311
2421
|
/**
|
|
2312
2422
|
* Lastmessageid
|
|
2313
2423
|
* @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.
|
|
@@ -2330,11 +2440,8 @@ export interface components {
|
|
|
2330
2440
|
*/
|
|
2331
2441
|
instrumentUserId?: boolean;
|
|
2332
2442
|
};
|
|
2333
|
-
/**
|
|
2334
|
-
|
|
2335
|
-
* @description Code-evaluator create/edit form mounted in the current browser route.
|
|
2336
|
-
*/
|
|
2337
|
-
CodeEvaluatorContext: {
|
|
2443
|
+
/** CodeEvaluatorUIContext */
|
|
2444
|
+
CodeEvaluatorUIContext: {
|
|
2338
2445
|
/**
|
|
2339
2446
|
* @description discriminator enum property added by openapi-typescript
|
|
2340
2447
|
* @enum {string}
|
|
@@ -2662,6 +2769,16 @@ export interface components {
|
|
|
2662
2769
|
CreatePromptResponseBody: {
|
|
2663
2770
|
data: components["schemas"]["PromptVersion"];
|
|
2664
2771
|
};
|
|
2772
|
+
/** CreatePromptVersionRequestBody */
|
|
2773
|
+
CreatePromptVersionRequestBody: {
|
|
2774
|
+
version: components["schemas"]["PromptVersionData"];
|
|
2775
|
+
/** Tags */
|
|
2776
|
+
tags?: components["schemas"]["PromptVersionTagData"][] | null;
|
|
2777
|
+
};
|
|
2778
|
+
/** CreatePromptVersionResponseBody */
|
|
2779
|
+
CreatePromptVersionResponseBody: {
|
|
2780
|
+
data: components["schemas"]["PromptVersion"];
|
|
2781
|
+
};
|
|
2665
2782
|
/** CreateSessionNoteRequestBody */
|
|
2666
2783
|
CreateSessionNoteRequestBody: {
|
|
2667
2784
|
data: components["schemas"]["SessionNoteData"];
|
|
@@ -2748,6 +2865,47 @@ export interface components {
|
|
|
2748
2865
|
*/
|
|
2749
2866
|
key: string;
|
|
2750
2867
|
};
|
|
2868
|
+
/** CustomModelProvider */
|
|
2869
|
+
CustomModelProvider: {
|
|
2870
|
+
/**
|
|
2871
|
+
* Id
|
|
2872
|
+
* @description The ID of the custom provider.
|
|
2873
|
+
*/
|
|
2874
|
+
id: string;
|
|
2875
|
+
/**
|
|
2876
|
+
* Name
|
|
2877
|
+
* @description The unique name of the custom provider.
|
|
2878
|
+
*/
|
|
2879
|
+
name: string;
|
|
2880
|
+
/**
|
|
2881
|
+
* Description
|
|
2882
|
+
* @description An optional description of the custom provider.
|
|
2883
|
+
*/
|
|
2884
|
+
description?: string | null;
|
|
2885
|
+
/**
|
|
2886
|
+
* Provider
|
|
2887
|
+
* @description The free-form provider label recorded on the custom provider. Unlike the `provider` of a built-in family, this is not drawn from a fixed set.
|
|
2888
|
+
*/
|
|
2889
|
+
provider: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* Sdk
|
|
2892
|
+
* @description The SDK used to communicate with the custom provider.
|
|
2893
|
+
* @enum {string}
|
|
2894
|
+
*/
|
|
2895
|
+
sdk: "openai" | "azure_openai" | "anthropic" | "google_genai" | "aws_bedrock";
|
|
2896
|
+
/**
|
|
2897
|
+
* Created At
|
|
2898
|
+
* Format: date-time
|
|
2899
|
+
* @description The time the custom provider was created.
|
|
2900
|
+
*/
|
|
2901
|
+
created_at: string;
|
|
2902
|
+
/**
|
|
2903
|
+
* Updated At
|
|
2904
|
+
* Format: date-time
|
|
2905
|
+
* @description The time the custom provider was last updated.
|
|
2906
|
+
*/
|
|
2907
|
+
updated_at: string;
|
|
2908
|
+
};
|
|
2751
2909
|
/**
|
|
2752
2910
|
* CustomProviderModelSelection
|
|
2753
2911
|
* @description Chat against a stored custom provider record.
|
|
@@ -2800,26 +2958,6 @@ export interface components {
|
|
|
2800
2958
|
/** Example Count */
|
|
2801
2959
|
example_count: number;
|
|
2802
2960
|
};
|
|
2803
|
-
/**
|
|
2804
|
-
* DatasetContext
|
|
2805
|
-
* @description Dataset the user is currently viewing or has bound to a workflow.
|
|
2806
|
-
*
|
|
2807
|
-
* Carries the dataset's relay node id and, when known, the active version
|
|
2808
|
-
* node id. These IDs scope the create-form handoff link and the sampling of
|
|
2809
|
-
* active dataset examples used as prompt context; the dataset schema itself
|
|
2810
|
-
* is open.
|
|
2811
|
-
*/
|
|
2812
|
-
DatasetContext: {
|
|
2813
|
-
/**
|
|
2814
|
-
* @description discriminator enum property added by openapi-typescript
|
|
2815
|
-
* @enum {string}
|
|
2816
|
-
*/
|
|
2817
|
-
type: "dataset";
|
|
2818
|
-
/** Datasetnodeid */
|
|
2819
|
-
datasetNodeId: string;
|
|
2820
|
-
/** Datasetversionnodeid */
|
|
2821
|
-
datasetVersionNodeId?: string | null;
|
|
2822
|
-
};
|
|
2823
2961
|
/** DatasetExample */
|
|
2824
2962
|
DatasetExample: {
|
|
2825
2963
|
/** Id */
|
|
@@ -2890,6 +3028,18 @@ export interface components {
|
|
|
2890
3028
|
*/
|
|
2891
3029
|
updated_at: string;
|
|
2892
3030
|
};
|
|
3031
|
+
/** DatasetUIContext */
|
|
3032
|
+
DatasetUIContext: {
|
|
3033
|
+
/**
|
|
3034
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3035
|
+
* @enum {string}
|
|
3036
|
+
*/
|
|
3037
|
+
type: "dataset";
|
|
3038
|
+
/** Datasetnodeid */
|
|
3039
|
+
datasetNodeId: string;
|
|
3040
|
+
/** Datasetversionnodeid */
|
|
3041
|
+
datasetVersionNodeId?: string | null;
|
|
3042
|
+
};
|
|
2893
3043
|
/** DatasetVersion */
|
|
2894
3044
|
DatasetVersion: {
|
|
2895
3045
|
/** Version Id */
|
|
@@ -3379,6 +3529,13 @@ export interface components {
|
|
|
3379
3529
|
/** Data */
|
|
3380
3530
|
data: components["schemas"]["ApiKey"][];
|
|
3381
3531
|
};
|
|
3532
|
+
/** GetCustomModelProvidersResponseBody */
|
|
3533
|
+
GetCustomModelProvidersResponseBody: {
|
|
3534
|
+
/** Data */
|
|
3535
|
+
data: components["schemas"]["CustomModelProvider"][];
|
|
3536
|
+
/** Next Cursor */
|
|
3537
|
+
next_cursor: string | null;
|
|
3538
|
+
};
|
|
3382
3539
|
/** GetDatasetLabelResponseBody */
|
|
3383
3540
|
GetDatasetLabelResponseBody: {
|
|
3384
3541
|
data: components["schemas"]["DatasetLabel"];
|
|
@@ -3412,6 +3569,11 @@ export interface components {
|
|
|
3412
3569
|
/** Next Cursor */
|
|
3413
3570
|
next_cursor: string | null;
|
|
3414
3571
|
};
|
|
3572
|
+
/** GetModelProvidersResponseBody */
|
|
3573
|
+
GetModelProvidersResponseBody: {
|
|
3574
|
+
/** Data */
|
|
3575
|
+
data: components["schemas"]["BuiltInModelProvider"][];
|
|
3576
|
+
};
|
|
3415
3577
|
/** GetProjectAnnotationConfigsResponseBody */
|
|
3416
3578
|
GetProjectAnnotationConfigsResponseBody: {
|
|
3417
3579
|
/** Data */
|
|
@@ -3487,7 +3649,8 @@ export interface components {
|
|
|
3487
3649
|
};
|
|
3488
3650
|
/**
|
|
3489
3651
|
* GraphQLContext
|
|
3490
|
-
* @
|
|
3652
|
+
* @deprecated
|
|
3653
|
+
* @description Deprecated GraphQL mutations opt-in.
|
|
3491
3654
|
*/
|
|
3492
3655
|
GraphQLContext: {
|
|
3493
3656
|
/**
|
|
@@ -3818,11 +3981,8 @@ export interface components {
|
|
|
3818
3981
|
/** Next Cursor */
|
|
3819
3982
|
next_cursor: string | null;
|
|
3820
3983
|
};
|
|
3821
|
-
/**
|
|
3822
|
-
|
|
3823
|
-
* @description LLM-evaluator create/edit form mounted in the current browser route.
|
|
3824
|
-
*/
|
|
3825
|
-
LlmEvaluatorContext: {
|
|
3984
|
+
/** LlmEvaluatorUIContext */
|
|
3985
|
+
LlmEvaluatorUIContext: {
|
|
3826
3986
|
/**
|
|
3827
3987
|
* @description discriminator enum property added by openapi-typescript
|
|
3828
3988
|
* @enum {string}
|
|
@@ -4256,12 +4416,16 @@ export interface components {
|
|
|
4256
4416
|
* @default false
|
|
4257
4417
|
*/
|
|
4258
4418
|
isCompactionMessage?: boolean;
|
|
4419
|
+
uiContexts?: components["schemas"]["UIContexts"] | null;
|
|
4420
|
+
/**
|
|
4421
|
+
* Editpermission
|
|
4422
|
+
* @default manual
|
|
4423
|
+
* @enum {string}
|
|
4424
|
+
*/
|
|
4425
|
+
editPermission?: "manual" | "bypass";
|
|
4259
4426
|
};
|
|
4260
|
-
/**
|
|
4261
|
-
|
|
4262
|
-
* @description Built-in playground model selection.
|
|
4263
|
-
*/
|
|
4264
|
-
PlaygroundBuiltinModelContext: {
|
|
4427
|
+
/** PlaygroundBuiltinModelUIContext */
|
|
4428
|
+
PlaygroundBuiltinModelUIContext: {
|
|
4265
4429
|
/**
|
|
4266
4430
|
* @description discriminator enum property added by openapi-typescript
|
|
4267
4431
|
* @enum {string}
|
|
@@ -4272,37 +4436,8 @@ export interface components {
|
|
|
4272
4436
|
/** Modelname */
|
|
4273
4437
|
modelName: string;
|
|
4274
4438
|
};
|
|
4275
|
-
/**
|
|
4276
|
-
|
|
4277
|
-
* @description Playground prompt editor state mounted in the current browser route.
|
|
4278
|
-
*/
|
|
4279
|
-
PlaygroundContext: {
|
|
4280
|
-
/**
|
|
4281
|
-
* @description discriminator enum property added by openapi-typescript
|
|
4282
|
-
* @enum {string}
|
|
4283
|
-
*/
|
|
4284
|
-
type: "playground";
|
|
4285
|
-
/**
|
|
4286
|
-
* Recordexperiments
|
|
4287
|
-
* @default true
|
|
4288
|
-
*/
|
|
4289
|
-
recordExperiments?: boolean;
|
|
4290
|
-
/**
|
|
4291
|
-
* Repetitions
|
|
4292
|
-
* @default 1
|
|
4293
|
-
*/
|
|
4294
|
-
repetitions?: number;
|
|
4295
|
-
nextExperimentScaffold?: components["schemas"]["PlaygroundExperimentScaffoldContext"] | null;
|
|
4296
|
-
/** Instances */
|
|
4297
|
-
instances?: components["schemas"]["PlaygroundInstanceContext"][];
|
|
4298
|
-
/** Evaluators */
|
|
4299
|
-
evaluators?: components["schemas"]["PlaygroundEvaluatorContext"][];
|
|
4300
|
-
};
|
|
4301
|
-
/**
|
|
4302
|
-
* PlaygroundCustomProviderModelContext
|
|
4303
|
-
* @description Custom-provider playground model selection.
|
|
4304
|
-
*/
|
|
4305
|
-
PlaygroundCustomProviderModelContext: {
|
|
4439
|
+
/** PlaygroundCustomProviderModelUIContext */
|
|
4440
|
+
PlaygroundCustomProviderModelUIContext: {
|
|
4306
4441
|
/**
|
|
4307
4442
|
* @description discriminator enum property added by openapi-typescript
|
|
4308
4443
|
* @enum {string}
|
|
@@ -4317,12 +4452,8 @@ export interface components {
|
|
|
4317
4452
|
/** Modelname */
|
|
4318
4453
|
modelName: string;
|
|
4319
4454
|
};
|
|
4320
|
-
/**
|
|
4321
|
-
|
|
4322
|
-
* @description One dataset evaluator on the mounted playground's roster. ``name`` is
|
|
4323
|
-
* user-controlled; sanitize at every model-visible boundary.
|
|
4324
|
-
*/
|
|
4325
|
-
PlaygroundEvaluatorContext: {
|
|
4455
|
+
/** PlaygroundEvaluatorUIContext */
|
|
4456
|
+
PlaygroundEvaluatorUIContext: {
|
|
4326
4457
|
/** Datasetevaluatorid */
|
|
4327
4458
|
datasetEvaluatorId: string;
|
|
4328
4459
|
/** Name */
|
|
@@ -4337,27 +4468,8 @@ export interface components {
|
|
|
4337
4468
|
/** Isapplied */
|
|
4338
4469
|
isApplied: boolean;
|
|
4339
4470
|
};
|
|
4340
|
-
/**
|
|
4341
|
-
|
|
4342
|
-
* @description Experiment name/description/metadata the user has staged for the playground's
|
|
4343
|
-
* *next* dataset-backed run, before that run has started.
|
|
4344
|
-
*
|
|
4345
|
-
* The playground UI lets the user pre-set how the next recorded run's experiment
|
|
4346
|
-
* will be named, described, and tagged (via the ``set_playground_experiment_recording``
|
|
4347
|
-
* tool or the recording form). That staged state is surfaced here so the agent can
|
|
4348
|
-
* see what is already set and avoid re-staging it.
|
|
4349
|
-
*
|
|
4350
|
-
* Field semantics:
|
|
4351
|
-
* - ``name`` / ``description``: the staged values, surfaced to the model verbatim,
|
|
4352
|
-
* or ``None`` when the user has not staged them.
|
|
4353
|
-
* - ``has_metadata``: a presence flag, not the value. Only *whether* metadata has
|
|
4354
|
-
* been staged is model-relevant (so the agent knows not to re-attach it); the
|
|
4355
|
-
* metadata object itself is deliberately kept out of the prompt.
|
|
4356
|
-
*
|
|
4357
|
-
* A field left unstaged (``None`` / ``False``) falls back to the server default when
|
|
4358
|
-
* the run starts. The scaffold is consumed once that next run begins.
|
|
4359
|
-
*/
|
|
4360
|
-
PlaygroundExperimentScaffoldContext: {
|
|
4471
|
+
/** PlaygroundExperimentScaffoldUIContext */
|
|
4472
|
+
PlaygroundExperimentScaffoldUIContext: {
|
|
4361
4473
|
/** Name */
|
|
4362
4474
|
name?: string | null;
|
|
4363
4475
|
/** Description */
|
|
@@ -4368,23 +4480,38 @@ export interface components {
|
|
|
4368
4480
|
*/
|
|
4369
4481
|
hasMetadata?: boolean;
|
|
4370
4482
|
};
|
|
4371
|
-
/**
|
|
4372
|
-
|
|
4373
|
-
* @description One mounted playground instance and its current model selection.
|
|
4374
|
-
*
|
|
4375
|
-
* ``experiment_id`` carries the relay node id of the experiment produced by
|
|
4376
|
-
* this instance's last dataset-backed run, or ``None`` when the instance has
|
|
4377
|
-
* not produced one. Ephemeral experiments are included: they remain queryable
|
|
4378
|
-
* until the server sweeps them ~24h after their last update.
|
|
4379
|
-
*/
|
|
4380
|
-
PlaygroundInstanceContext: {
|
|
4483
|
+
/** PlaygroundInstanceUIContext */
|
|
4484
|
+
PlaygroundInstanceUIContext: {
|
|
4381
4485
|
/** Instanceid */
|
|
4382
4486
|
instanceId: number;
|
|
4383
4487
|
/** Model */
|
|
4384
|
-
model?: (components["schemas"]["
|
|
4488
|
+
model?: (components["schemas"]["PlaygroundBuiltinModelUIContext"] | components["schemas"]["PlaygroundCustomProviderModelUIContext"]) | null;
|
|
4385
4489
|
/** Experimentid */
|
|
4386
4490
|
experimentId?: string | null;
|
|
4387
4491
|
};
|
|
4492
|
+
/** PlaygroundUIContext */
|
|
4493
|
+
PlaygroundUIContext: {
|
|
4494
|
+
/**
|
|
4495
|
+
* @description discriminator enum property added by openapi-typescript
|
|
4496
|
+
* @enum {string}
|
|
4497
|
+
*/
|
|
4498
|
+
type: "playground";
|
|
4499
|
+
/**
|
|
4500
|
+
* Recordexperiments
|
|
4501
|
+
* @default true
|
|
4502
|
+
*/
|
|
4503
|
+
recordExperiments?: boolean;
|
|
4504
|
+
/**
|
|
4505
|
+
* Repetitions
|
|
4506
|
+
* @default 1
|
|
4507
|
+
*/
|
|
4508
|
+
repetitions?: number;
|
|
4509
|
+
nextExperimentScaffold?: components["schemas"]["PlaygroundExperimentScaffoldUIContext"] | null;
|
|
4510
|
+
/** Instances */
|
|
4511
|
+
instances?: components["schemas"]["PlaygroundInstanceUIContext"][];
|
|
4512
|
+
/** Evaluators */
|
|
4513
|
+
evaluators?: components["schemas"]["PlaygroundEvaluatorUIContext"][];
|
|
4514
|
+
};
|
|
4388
4515
|
/** Project */
|
|
4389
4516
|
Project: {
|
|
4390
4517
|
/** Name */
|
|
@@ -4394,17 +4521,18 @@ export interface components {
|
|
|
4394
4521
|
/** Id */
|
|
4395
4522
|
id: string;
|
|
4396
4523
|
};
|
|
4397
|
-
/**
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4524
|
+
/** ProjectRetentionPolicyData */
|
|
4525
|
+
ProjectRetentionPolicyData: {
|
|
4526
|
+
/** Project Id */
|
|
4527
|
+
project_id: string;
|
|
4528
|
+
/**
|
|
4529
|
+
* Policy Id
|
|
4530
|
+
* @description The retention policy the project now uses, or null when the project falls back to the default policy.
|
|
4531
|
+
*/
|
|
4532
|
+
policy_id: string | null;
|
|
4533
|
+
};
|
|
4534
|
+
/** ProjectUIContext */
|
|
4535
|
+
ProjectUIContext: {
|
|
4408
4536
|
/**
|
|
4409
4537
|
* @description discriminator enum property added by openapi-typescript
|
|
4410
4538
|
* @enum {string}
|
|
@@ -4604,19 +4732,6 @@ export interface components {
|
|
|
4604
4732
|
/** Messages */
|
|
4605
4733
|
messages: components["schemas"]["PromptMessage"][];
|
|
4606
4734
|
};
|
|
4607
|
-
/**
|
|
4608
|
-
* PromptContext
|
|
4609
|
-
* @description Prompt the user is currently viewing.
|
|
4610
|
-
*/
|
|
4611
|
-
PromptContext: {
|
|
4612
|
-
/**
|
|
4613
|
-
* @description discriminator enum property added by openapi-typescript
|
|
4614
|
-
* @enum {string}
|
|
4615
|
-
*/
|
|
4616
|
-
type: "prompt";
|
|
4617
|
-
/** Promptnodeid */
|
|
4618
|
-
promptNodeId: string;
|
|
4619
|
-
};
|
|
4620
4735
|
/** PromptData */
|
|
4621
4736
|
PromptData: {
|
|
4622
4737
|
name: components["schemas"]["Identifier"];
|
|
@@ -5098,12 +5213,22 @@ export interface components {
|
|
|
5098
5213
|
/** Disable Parallel Tool Calls */
|
|
5099
5214
|
disable_parallel_tool_calls?: boolean;
|
|
5100
5215
|
};
|
|
5101
|
-
/**
|
|
5102
|
-
|
|
5103
|
-
/**
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5216
|
+
/** PromptUIContext */
|
|
5217
|
+
PromptUIContext: {
|
|
5218
|
+
/**
|
|
5219
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5220
|
+
* @enum {string}
|
|
5221
|
+
*/
|
|
5222
|
+
type: "prompt";
|
|
5223
|
+
/** Promptnodeid */
|
|
5224
|
+
promptNodeId: string;
|
|
5225
|
+
};
|
|
5226
|
+
/** PromptVersion */
|
|
5227
|
+
PromptVersion: {
|
|
5228
|
+
/** Description */
|
|
5229
|
+
description?: string | null;
|
|
5230
|
+
model_provider: components["schemas"]["ModelProvider"];
|
|
5231
|
+
/** Model Name */
|
|
5107
5232
|
model_name: string;
|
|
5108
5233
|
/** Template */
|
|
5109
5234
|
template: components["schemas"]["PromptChatTemplate"] | components["schemas"]["PromptStringTemplate"];
|
|
@@ -5117,21 +5242,6 @@ export interface components {
|
|
|
5117
5242
|
/** Id */
|
|
5118
5243
|
id: string;
|
|
5119
5244
|
};
|
|
5120
|
-
/**
|
|
5121
|
-
* PromptVersionContext
|
|
5122
|
-
* @description Prompt version the user is currently viewing.
|
|
5123
|
-
*/
|
|
5124
|
-
PromptVersionContext: {
|
|
5125
|
-
/**
|
|
5126
|
-
* @description discriminator enum property added by openapi-typescript
|
|
5127
|
-
* @enum {string}
|
|
5128
|
-
*/
|
|
5129
|
-
type: "prompt_version";
|
|
5130
|
-
/** Promptnodeid */
|
|
5131
|
-
promptNodeId: string;
|
|
5132
|
-
/** Promptversionnodeid */
|
|
5133
|
-
promptVersionNodeId: string;
|
|
5134
|
-
};
|
|
5135
5245
|
/** PromptVersionData */
|
|
5136
5246
|
PromptVersionData: {
|
|
5137
5247
|
/** Description */
|
|
@@ -5163,6 +5273,18 @@ export interface components {
|
|
|
5163
5273
|
/** Description */
|
|
5164
5274
|
description?: string | null;
|
|
5165
5275
|
};
|
|
5276
|
+
/** PromptVersionUIContext */
|
|
5277
|
+
PromptVersionUIContext: {
|
|
5278
|
+
/**
|
|
5279
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5280
|
+
* @enum {string}
|
|
5281
|
+
*/
|
|
5282
|
+
type: "prompt_version";
|
|
5283
|
+
/** Promptnodeid */
|
|
5284
|
+
promptNodeId: string;
|
|
5285
|
+
/** Promptversionnodeid */
|
|
5286
|
+
promptVersionNodeId: string;
|
|
5287
|
+
};
|
|
5166
5288
|
/** PromptXAIInvocationParameters */
|
|
5167
5289
|
PromptXAIInvocationParameters: {
|
|
5168
5290
|
/**
|
|
@@ -5221,6 +5343,8 @@ export interface components {
|
|
|
5221
5343
|
* @constant
|
|
5222
5344
|
*/
|
|
5223
5345
|
type?: "reasoning";
|
|
5346
|
+
/** Id */
|
|
5347
|
+
id?: string | null;
|
|
5224
5348
|
/** Text */
|
|
5225
5349
|
text: string;
|
|
5226
5350
|
/** State */
|
|
@@ -5343,21 +5467,6 @@ export interface components {
|
|
|
5343
5467
|
/** Next Cursor */
|
|
5344
5468
|
next_cursor: string | null;
|
|
5345
5469
|
};
|
|
5346
|
-
/**
|
|
5347
|
-
* SessionContext
|
|
5348
|
-
* @description Session the user is currently viewing.
|
|
5349
|
-
*/
|
|
5350
|
-
SessionContext: {
|
|
5351
|
-
/**
|
|
5352
|
-
* @description discriminator enum property added by openapi-typescript
|
|
5353
|
-
* @enum {string}
|
|
5354
|
-
*/
|
|
5355
|
-
type: "session";
|
|
5356
|
-
/** Projectnodeid */
|
|
5357
|
-
projectNodeId: string;
|
|
5358
|
-
/** Sessionnodeid */
|
|
5359
|
-
sessionNodeId: string;
|
|
5360
|
-
};
|
|
5361
5470
|
/** SessionData */
|
|
5362
5471
|
SessionData: {
|
|
5363
5472
|
/** Id */
|
|
@@ -5433,6 +5542,18 @@ export interface components {
|
|
|
5433
5542
|
*/
|
|
5434
5543
|
end_time: string;
|
|
5435
5544
|
};
|
|
5545
|
+
/** SessionUIContext */
|
|
5546
|
+
SessionUIContext: {
|
|
5547
|
+
/**
|
|
5548
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5549
|
+
* @enum {string}
|
|
5550
|
+
*/
|
|
5551
|
+
type: "session";
|
|
5552
|
+
/** Projectnodeid */
|
|
5553
|
+
projectNodeId: string;
|
|
5554
|
+
/** Sessionnodeid */
|
|
5555
|
+
sessionNodeId: string;
|
|
5556
|
+
};
|
|
5436
5557
|
/** SetDatasetLabelsForDatasetResponseBody */
|
|
5437
5558
|
SetDatasetLabelsForDatasetResponseBody: {
|
|
5438
5559
|
/** Data */
|
|
@@ -5475,6 +5596,18 @@ export interface components {
|
|
|
5475
5596
|
/** Next Cursor */
|
|
5476
5597
|
next_cursor: string | null;
|
|
5477
5598
|
};
|
|
5599
|
+
/** SetProjectRetentionPolicyRequestBody */
|
|
5600
|
+
SetProjectRetentionPolicyRequestBody: {
|
|
5601
|
+
/**
|
|
5602
|
+
* Policy Id
|
|
5603
|
+
* @description The ID (GlobalID) of an existing trace retention policy to assign, or null to reset the project to the default policy.
|
|
5604
|
+
*/
|
|
5605
|
+
policy_id: string | null;
|
|
5606
|
+
};
|
|
5607
|
+
/** SetProjectRetentionPolicyResponseBody */
|
|
5608
|
+
SetProjectRetentionPolicyResponseBody: {
|
|
5609
|
+
data: components["schemas"]["ProjectRetentionPolicyData"];
|
|
5610
|
+
};
|
|
5478
5611
|
/**
|
|
5479
5612
|
* SourceDocumentUIPart
|
|
5480
5613
|
* @description A document source part of a message.
|
|
@@ -5807,6 +5940,20 @@ export interface components {
|
|
|
5807
5940
|
*/
|
|
5808
5941
|
identifier?: string;
|
|
5809
5942
|
};
|
|
5943
|
+
/** SpanUIContext */
|
|
5944
|
+
SpanUIContext: {
|
|
5945
|
+
/**
|
|
5946
|
+
* @description discriminator enum property added by openapi-typescript
|
|
5947
|
+
* @enum {string}
|
|
5948
|
+
*/
|
|
5949
|
+
type: "span";
|
|
5950
|
+
/** Projectnodeid */
|
|
5951
|
+
projectNodeId?: string | null;
|
|
5952
|
+
/** Spannodeid */
|
|
5953
|
+
spanNodeId?: string | null;
|
|
5954
|
+
/** Otelspanid */
|
|
5955
|
+
otelSpanId?: string | null;
|
|
5956
|
+
};
|
|
5810
5957
|
/** SpansResponseBody */
|
|
5811
5958
|
SpansResponseBody: {
|
|
5812
5959
|
/** Data */
|
|
@@ -5839,6 +5986,29 @@ export interface components {
|
|
|
5839
5986
|
/** Enabled */
|
|
5840
5987
|
enabled: boolean;
|
|
5841
5988
|
};
|
|
5989
|
+
/**
|
|
5990
|
+
* SubmitAgentSessionToolApprovalsRequestBody
|
|
5991
|
+
* @description Persist answered tool approvals without continuing the turn.
|
|
5992
|
+
*/
|
|
5993
|
+
SubmitAgentSessionToolApprovalsRequestBody: {
|
|
5994
|
+
/**
|
|
5995
|
+
* Toolapprovals
|
|
5996
|
+
* @description Answers to tool calls awaiting approval on the trailing assistant message, matched by ``toolCallId``. Resending a persisted answer is a no-op; an answer that reverses one, or that matches no call awaiting approval, is rejected with HTTP 409 and code ``agent_session_tool_approvals_conflict``.
|
|
5997
|
+
*/
|
|
5998
|
+
toolApprovals: components["schemas"]["ToolApproval"][];
|
|
5999
|
+
/**
|
|
6000
|
+
* Lastmessageid
|
|
6001
|
+
* @description The trailing assistant message's id. On mismatch the submission is rejected with HTTP 409 and code ``agent_session_messages_stale``.
|
|
6002
|
+
*/
|
|
6003
|
+
lastMessageId: string;
|
|
6004
|
+
};
|
|
6005
|
+
/**
|
|
6006
|
+
* SubmitAgentSessionToolApprovalsResponseBody
|
|
6007
|
+
* @description The trailing assistant message with the submitted approvals applied.
|
|
6008
|
+
*/
|
|
6009
|
+
SubmitAgentSessionToolApprovalsResponseBody: {
|
|
6010
|
+
data: components["schemas"]["PhoenixUIMessage"];
|
|
6011
|
+
};
|
|
5842
6012
|
/**
|
|
5843
6013
|
* SubmitAgentSessionToolOutputsRequestBody
|
|
5844
6014
|
* @description Persist resolved client tool outputs without continuing the turn.
|
|
@@ -5894,6 +6064,19 @@ export interface components {
|
|
|
5894
6064
|
};
|
|
5895
6065
|
} | null;
|
|
5896
6066
|
};
|
|
6067
|
+
/**
|
|
6068
|
+
* ToolApproval
|
|
6069
|
+
* @description A user's response to a tool call awaiting approval.
|
|
6070
|
+
*/
|
|
6071
|
+
ToolApproval: {
|
|
6072
|
+
/** Toolcallid */
|
|
6073
|
+
toolCallId: string;
|
|
6074
|
+
/**
|
|
6075
|
+
* Approved
|
|
6076
|
+
* @description Whether the user approved the tool call.
|
|
6077
|
+
*/
|
|
6078
|
+
approved: boolean;
|
|
6079
|
+
};
|
|
5897
6080
|
/**
|
|
5898
6081
|
* ToolApprovalRequested
|
|
5899
6082
|
* @description Tool approval in requested state (awaiting user response).
|
|
@@ -6196,18 +6379,6 @@ export interface components {
|
|
|
6196
6379
|
/** Next Cursor */
|
|
6197
6380
|
next_cursor: string | null;
|
|
6198
6381
|
};
|
|
6199
|
-
/** TraceContext */
|
|
6200
|
-
TraceContext: {
|
|
6201
|
-
/**
|
|
6202
|
-
* @description discriminator enum property added by openapi-typescript
|
|
6203
|
-
* @enum {string}
|
|
6204
|
-
*/
|
|
6205
|
-
type: "trace";
|
|
6206
|
-
/** Projectnodeid */
|
|
6207
|
-
projectNodeId: string;
|
|
6208
|
-
/** Oteltraceid */
|
|
6209
|
-
otelTraceId: string;
|
|
6210
|
-
};
|
|
6211
6382
|
/** TraceData */
|
|
6212
6383
|
TraceData: {
|
|
6213
6384
|
/** Id */
|
|
@@ -6291,6 +6462,48 @@ export interface components {
|
|
|
6291
6462
|
*/
|
|
6292
6463
|
end_time: string;
|
|
6293
6464
|
};
|
|
6465
|
+
/** TraceUIContext */
|
|
6466
|
+
TraceUIContext: {
|
|
6467
|
+
/**
|
|
6468
|
+
* @description discriminator enum property added by openapi-typescript
|
|
6469
|
+
* @enum {string}
|
|
6470
|
+
*/
|
|
6471
|
+
type: "trace";
|
|
6472
|
+
/** Projectnodeid */
|
|
6473
|
+
projectNodeId: string;
|
|
6474
|
+
/** Oteltraceid */
|
|
6475
|
+
otelTraceId: string;
|
|
6476
|
+
};
|
|
6477
|
+
/** TransferTracesData */
|
|
6478
|
+
TransferTracesData: {
|
|
6479
|
+
/**
|
|
6480
|
+
* Transferred Trace Count
|
|
6481
|
+
* @description The number of traces that were moved to the destination project.
|
|
6482
|
+
*/
|
|
6483
|
+
transferred_trace_count: number;
|
|
6484
|
+
/**
|
|
6485
|
+
* Destination Project Id
|
|
6486
|
+
* @description The ID (GlobalID) of the project the traces were moved to.
|
|
6487
|
+
*/
|
|
6488
|
+
destination_project_id: string;
|
|
6489
|
+
};
|
|
6490
|
+
/** TransferTracesRequestBody */
|
|
6491
|
+
TransferTracesRequestBody: {
|
|
6492
|
+
/**
|
|
6493
|
+
* Trace Identifiers
|
|
6494
|
+
* @description The traces to transfer. Each identifier is either a trace ID (GlobalID) or an OpenTelemetry trace_id (hex string). Must be non-empty, and all traces must currently belong to the same source project.
|
|
6495
|
+
*/
|
|
6496
|
+
trace_identifiers: string[];
|
|
6497
|
+
/**
|
|
6498
|
+
* Destination Project Identifier
|
|
6499
|
+
* @description The destination project: either project ID (GlobalID) or project name.
|
|
6500
|
+
*/
|
|
6501
|
+
destination_project_identifier: string;
|
|
6502
|
+
};
|
|
6503
|
+
/** TransferTracesResponseBody */
|
|
6504
|
+
TransferTracesResponseBody: {
|
|
6505
|
+
data: components["schemas"]["TransferTracesData"];
|
|
6506
|
+
};
|
|
6294
6507
|
/**
|
|
6295
6508
|
* TurnTraceContext
|
|
6296
6509
|
* @description The trace identity a turn's spans are parented to.
|
|
@@ -6306,6 +6519,19 @@ export interface components {
|
|
|
6306
6519
|
*/
|
|
6307
6520
|
startedAt: string;
|
|
6308
6521
|
};
|
|
6522
|
+
/** UIContexts */
|
|
6523
|
+
UIContexts: {
|
|
6524
|
+
project?: components["schemas"]["ProjectUIContext"] | null;
|
|
6525
|
+
trace?: components["schemas"]["TraceUIContext"] | null;
|
|
6526
|
+
session?: components["schemas"]["SessionUIContext"] | null;
|
|
6527
|
+
span?: components["schemas"]["SpanUIContext"] | null;
|
|
6528
|
+
prompt?: components["schemas"]["PromptUIContext"] | null;
|
|
6529
|
+
promptVersion?: components["schemas"]["PromptVersionUIContext"] | null;
|
|
6530
|
+
dataset?: components["schemas"]["DatasetUIContext"] | null;
|
|
6531
|
+
playground?: components["schemas"]["PlaygroundUIContext"] | null;
|
|
6532
|
+
codeEvaluator?: components["schemas"]["CodeEvaluatorUIContext"] | null;
|
|
6533
|
+
llmEvaluator?: components["schemas"]["LlmEvaluatorUIContext"] | null;
|
|
6534
|
+
};
|
|
6309
6535
|
/** UpdateAnnotationConfigResponseBody */
|
|
6310
6536
|
UpdateAnnotationConfigResponseBody: {
|
|
6311
6537
|
/** Data */
|
|
@@ -9919,6 +10145,57 @@ export interface operations {
|
|
|
9919
10145
|
};
|
|
9920
10146
|
};
|
|
9921
10147
|
};
|
|
10148
|
+
transferTraces: {
|
|
10149
|
+
parameters: {
|
|
10150
|
+
query?: never;
|
|
10151
|
+
header?: never;
|
|
10152
|
+
path?: never;
|
|
10153
|
+
cookie?: never;
|
|
10154
|
+
};
|
|
10155
|
+
requestBody: {
|
|
10156
|
+
content: {
|
|
10157
|
+
"application/json": components["schemas"]["TransferTracesRequestBody"];
|
|
10158
|
+
};
|
|
10159
|
+
};
|
|
10160
|
+
responses: {
|
|
10161
|
+
/** @description Successful Response */
|
|
10162
|
+
200: {
|
|
10163
|
+
headers: {
|
|
10164
|
+
[name: string]: unknown;
|
|
10165
|
+
};
|
|
10166
|
+
content: {
|
|
10167
|
+
"application/json": components["schemas"]["TransferTracesResponseBody"];
|
|
10168
|
+
};
|
|
10169
|
+
};
|
|
10170
|
+
/** @description Forbidden */
|
|
10171
|
+
403: {
|
|
10172
|
+
headers: {
|
|
10173
|
+
[name: string]: unknown;
|
|
10174
|
+
};
|
|
10175
|
+
content: {
|
|
10176
|
+
"text/plain": string;
|
|
10177
|
+
};
|
|
10178
|
+
};
|
|
10179
|
+
/** @description Destination project or trace not found */
|
|
10180
|
+
404: {
|
|
10181
|
+
headers: {
|
|
10182
|
+
[name: string]: unknown;
|
|
10183
|
+
};
|
|
10184
|
+
content: {
|
|
10185
|
+
"text/plain": string;
|
|
10186
|
+
};
|
|
10187
|
+
};
|
|
10188
|
+
/** @description Invalid request */
|
|
10189
|
+
422: {
|
|
10190
|
+
headers: {
|
|
10191
|
+
[name: string]: unknown;
|
|
10192
|
+
};
|
|
10193
|
+
content: {
|
|
10194
|
+
"text/plain": string;
|
|
10195
|
+
};
|
|
10196
|
+
};
|
|
10197
|
+
};
|
|
10198
|
+
};
|
|
9922
10199
|
deleteTrace: {
|
|
9923
10200
|
parameters: {
|
|
9924
10201
|
query?: never;
|
|
@@ -10467,6 +10744,60 @@ export interface operations {
|
|
|
10467
10744
|
};
|
|
10468
10745
|
};
|
|
10469
10746
|
};
|
|
10747
|
+
createPromptVersion: {
|
|
10748
|
+
parameters: {
|
|
10749
|
+
query?: never;
|
|
10750
|
+
header?: never;
|
|
10751
|
+
path: {
|
|
10752
|
+
/** @description The identifier of the prompt, i.e. name or ID. */
|
|
10753
|
+
prompt_identifier: string;
|
|
10754
|
+
};
|
|
10755
|
+
cookie?: never;
|
|
10756
|
+
};
|
|
10757
|
+
requestBody: {
|
|
10758
|
+
content: {
|
|
10759
|
+
"application/json": components["schemas"]["CreatePromptVersionRequestBody"];
|
|
10760
|
+
};
|
|
10761
|
+
};
|
|
10762
|
+
responses: {
|
|
10763
|
+
/** @description The created prompt version */
|
|
10764
|
+
201: {
|
|
10765
|
+
headers: {
|
|
10766
|
+
[name: string]: unknown;
|
|
10767
|
+
};
|
|
10768
|
+
content: {
|
|
10769
|
+
"application/json": components["schemas"]["CreatePromptVersionResponseBody"];
|
|
10770
|
+
};
|
|
10771
|
+
};
|
|
10772
|
+
/** @description Forbidden */
|
|
10773
|
+
403: {
|
|
10774
|
+
headers: {
|
|
10775
|
+
[name: string]: unknown;
|
|
10776
|
+
};
|
|
10777
|
+
content: {
|
|
10778
|
+
"text/plain": string;
|
|
10779
|
+
};
|
|
10780
|
+
};
|
|
10781
|
+
/** @description Not Found */
|
|
10782
|
+
404: {
|
|
10783
|
+
headers: {
|
|
10784
|
+
[name: string]: unknown;
|
|
10785
|
+
};
|
|
10786
|
+
content: {
|
|
10787
|
+
"text/plain": string;
|
|
10788
|
+
};
|
|
10789
|
+
};
|
|
10790
|
+
/** @description Unprocessable Entity */
|
|
10791
|
+
422: {
|
|
10792
|
+
headers: {
|
|
10793
|
+
[name: string]: unknown;
|
|
10794
|
+
};
|
|
10795
|
+
content: {
|
|
10796
|
+
"text/plain": string;
|
|
10797
|
+
};
|
|
10798
|
+
};
|
|
10799
|
+
};
|
|
10800
|
+
};
|
|
10470
10801
|
getPromptVersionByPromptVersionId: {
|
|
10471
10802
|
parameters: {
|
|
10472
10803
|
query?: never;
|
|
@@ -11121,6 +11452,132 @@ export interface operations {
|
|
|
11121
11452
|
};
|
|
11122
11453
|
};
|
|
11123
11454
|
};
|
|
11455
|
+
setProjectRetentionPolicy: {
|
|
11456
|
+
parameters: {
|
|
11457
|
+
query?: never;
|
|
11458
|
+
header?: never;
|
|
11459
|
+
path: {
|
|
11460
|
+
/** @description The project identifier: either project ID or project name. */
|
|
11461
|
+
project_identifier: string;
|
|
11462
|
+
};
|
|
11463
|
+
cookie?: never;
|
|
11464
|
+
};
|
|
11465
|
+
requestBody: {
|
|
11466
|
+
content: {
|
|
11467
|
+
"application/json": components["schemas"]["SetProjectRetentionPolicyRequestBody"];
|
|
11468
|
+
};
|
|
11469
|
+
};
|
|
11470
|
+
responses: {
|
|
11471
|
+
/** @description The project's retention policy assignment */
|
|
11472
|
+
200: {
|
|
11473
|
+
headers: {
|
|
11474
|
+
[name: string]: unknown;
|
|
11475
|
+
};
|
|
11476
|
+
content: {
|
|
11477
|
+
"application/json": components["schemas"]["SetProjectRetentionPolicyResponseBody"];
|
|
11478
|
+
};
|
|
11479
|
+
};
|
|
11480
|
+
/** @description Forbidden */
|
|
11481
|
+
403: {
|
|
11482
|
+
headers: {
|
|
11483
|
+
[name: string]: unknown;
|
|
11484
|
+
};
|
|
11485
|
+
content: {
|
|
11486
|
+
"text/plain": string;
|
|
11487
|
+
};
|
|
11488
|
+
};
|
|
11489
|
+
/** @description Not Found */
|
|
11490
|
+
404: {
|
|
11491
|
+
headers: {
|
|
11492
|
+
[name: string]: unknown;
|
|
11493
|
+
};
|
|
11494
|
+
content: {
|
|
11495
|
+
"text/plain": string;
|
|
11496
|
+
};
|
|
11497
|
+
};
|
|
11498
|
+
/** @description Unprocessable Entity */
|
|
11499
|
+
422: {
|
|
11500
|
+
headers: {
|
|
11501
|
+
[name: string]: unknown;
|
|
11502
|
+
};
|
|
11503
|
+
content: {
|
|
11504
|
+
"text/plain": string;
|
|
11505
|
+
};
|
|
11506
|
+
};
|
|
11507
|
+
};
|
|
11508
|
+
};
|
|
11509
|
+
getModelProviders: {
|
|
11510
|
+
parameters: {
|
|
11511
|
+
query?: never;
|
|
11512
|
+
header?: never;
|
|
11513
|
+
path?: never;
|
|
11514
|
+
cookie?: never;
|
|
11515
|
+
};
|
|
11516
|
+
requestBody?: never;
|
|
11517
|
+
responses: {
|
|
11518
|
+
/** @description A list of built-in model provider families */
|
|
11519
|
+
200: {
|
|
11520
|
+
headers: {
|
|
11521
|
+
[name: string]: unknown;
|
|
11522
|
+
};
|
|
11523
|
+
content: {
|
|
11524
|
+
"application/json": components["schemas"]["GetModelProvidersResponseBody"];
|
|
11525
|
+
};
|
|
11526
|
+
};
|
|
11527
|
+
/** @description Forbidden */
|
|
11528
|
+
403: {
|
|
11529
|
+
headers: {
|
|
11530
|
+
[name: string]: unknown;
|
|
11531
|
+
};
|
|
11532
|
+
content: {
|
|
11533
|
+
"text/plain": string;
|
|
11534
|
+
};
|
|
11535
|
+
};
|
|
11536
|
+
};
|
|
11537
|
+
};
|
|
11538
|
+
getCustomModelProviders: {
|
|
11539
|
+
parameters: {
|
|
11540
|
+
query?: {
|
|
11541
|
+
/** @description Cursor for pagination (custom provider ID) */
|
|
11542
|
+
cursor?: string | null;
|
|
11543
|
+
/** @description The max number of custom providers to return at a time (at most 1000). */
|
|
11544
|
+
limit?: number;
|
|
11545
|
+
};
|
|
11546
|
+
header?: never;
|
|
11547
|
+
path?: never;
|
|
11548
|
+
cookie?: never;
|
|
11549
|
+
};
|
|
11550
|
+
requestBody?: never;
|
|
11551
|
+
responses: {
|
|
11552
|
+
/** @description A list of custom model providers with pagination information */
|
|
11553
|
+
200: {
|
|
11554
|
+
headers: {
|
|
11555
|
+
[name: string]: unknown;
|
|
11556
|
+
};
|
|
11557
|
+
content: {
|
|
11558
|
+
"application/json": components["schemas"]["GetCustomModelProvidersResponseBody"];
|
|
11559
|
+
};
|
|
11560
|
+
};
|
|
11561
|
+
/** @description Forbidden */
|
|
11562
|
+
403: {
|
|
11563
|
+
headers: {
|
|
11564
|
+
[name: string]: unknown;
|
|
11565
|
+
};
|
|
11566
|
+
content: {
|
|
11567
|
+
"text/plain": string;
|
|
11568
|
+
};
|
|
11569
|
+
};
|
|
11570
|
+
/** @description Unprocessable Entity */
|
|
11571
|
+
422: {
|
|
11572
|
+
headers: {
|
|
11573
|
+
[name: string]: unknown;
|
|
11574
|
+
};
|
|
11575
|
+
content: {
|
|
11576
|
+
"text/plain": string;
|
|
11577
|
+
};
|
|
11578
|
+
};
|
|
11579
|
+
};
|
|
11580
|
+
};
|
|
11124
11581
|
getSession: {
|
|
11125
11582
|
parameters: {
|
|
11126
11583
|
query?: never;
|
|
@@ -12977,6 +13434,95 @@ export interface operations {
|
|
|
12977
13434
|
};
|
|
12978
13435
|
};
|
|
12979
13436
|
};
|
|
13437
|
+
submitAgentSessionToolApprovals: {
|
|
13438
|
+
parameters: {
|
|
13439
|
+
query?: never;
|
|
13440
|
+
header?: never;
|
|
13441
|
+
path: {
|
|
13442
|
+
session_id: string;
|
|
13443
|
+
};
|
|
13444
|
+
cookie?: never;
|
|
13445
|
+
};
|
|
13446
|
+
requestBody: {
|
|
13447
|
+
content: {
|
|
13448
|
+
"application/json": components["schemas"]["SubmitAgentSessionToolApprovalsRequestBody"];
|
|
13449
|
+
};
|
|
13450
|
+
};
|
|
13451
|
+
responses: {
|
|
13452
|
+
/** @description Successful Response */
|
|
13453
|
+
200: {
|
|
13454
|
+
headers: {
|
|
13455
|
+
[name: string]: unknown;
|
|
13456
|
+
};
|
|
13457
|
+
content: {
|
|
13458
|
+
"application/json": components["schemas"]["SubmitAgentSessionToolApprovalsResponseBody"];
|
|
13459
|
+
};
|
|
13460
|
+
};
|
|
13461
|
+
/** @description Bad Request */
|
|
13462
|
+
400: {
|
|
13463
|
+
headers: {
|
|
13464
|
+
[name: string]: unknown;
|
|
13465
|
+
};
|
|
13466
|
+
content: {
|
|
13467
|
+
"text/plain": string;
|
|
13468
|
+
};
|
|
13469
|
+
};
|
|
13470
|
+
/** @description Unauthorized */
|
|
13471
|
+
401: {
|
|
13472
|
+
headers: {
|
|
13473
|
+
[name: string]: unknown;
|
|
13474
|
+
};
|
|
13475
|
+
content: {
|
|
13476
|
+
"text/plain": string;
|
|
13477
|
+
};
|
|
13478
|
+
};
|
|
13479
|
+
/** @description Forbidden */
|
|
13480
|
+
403: {
|
|
13481
|
+
headers: {
|
|
13482
|
+
[name: string]: unknown;
|
|
13483
|
+
};
|
|
13484
|
+
content: {
|
|
13485
|
+
"text/plain": string;
|
|
13486
|
+
};
|
|
13487
|
+
};
|
|
13488
|
+
/** @description Not Found */
|
|
13489
|
+
404: {
|
|
13490
|
+
headers: {
|
|
13491
|
+
[name: string]: unknown;
|
|
13492
|
+
};
|
|
13493
|
+
content: {
|
|
13494
|
+
"text/plain": string;
|
|
13495
|
+
};
|
|
13496
|
+
};
|
|
13497
|
+
/** @description The request conflicts with the session's current state; the body's ``code`` field says how. */
|
|
13498
|
+
409: {
|
|
13499
|
+
headers: {
|
|
13500
|
+
[name: string]: unknown;
|
|
13501
|
+
};
|
|
13502
|
+
content: {
|
|
13503
|
+
"application/json": components["schemas"]["AgentSessionConflictError"];
|
|
13504
|
+
};
|
|
13505
|
+
};
|
|
13506
|
+
/** @description Validation Error */
|
|
13507
|
+
422: {
|
|
13508
|
+
headers: {
|
|
13509
|
+
[name: string]: unknown;
|
|
13510
|
+
};
|
|
13511
|
+
content: {
|
|
13512
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
13513
|
+
};
|
|
13514
|
+
};
|
|
13515
|
+
/** @description Insufficient Storage */
|
|
13516
|
+
507: {
|
|
13517
|
+
headers: {
|
|
13518
|
+
[name: string]: unknown;
|
|
13519
|
+
};
|
|
13520
|
+
content: {
|
|
13521
|
+
"text/plain": string;
|
|
13522
|
+
};
|
|
13523
|
+
};
|
|
13524
|
+
};
|
|
13525
|
+
};
|
|
12980
13526
|
agentSessionChat: {
|
|
12981
13527
|
parameters: {
|
|
12982
13528
|
query?: never;
|