@orq-ai/node 4.0.0-rc.33 → 4.0.0-rc.35
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/bin/mcp-server.js +397 -235
- package/bin/mcp-server.js.map +44 -44
- package/docs/sdks/agents/README.md +2 -0
- package/examples/package-lock.json +2 -10
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createagent.d.ts +61 -3
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +63 -6
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +10 -10
- package/models/operations/duplicateagent.d.ts +29 -0
- package/models/operations/duplicateagent.d.ts.map +1 -1
- package/models/operations/duplicateagent.js +30 -2
- package/models/operations/duplicateagent.js.map +1 -1
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +29 -0
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +30 -2
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listagents.d.ts +29 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +31 -2
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +30 -1
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +35 -6
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +30 -1
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +36 -6
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/syncmcptool.js +10 -10
- package/models/operations/updateagent.d.ts +61 -3
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +62 -6
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +10 -10
- package/package.json +3 -6
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createagent.ts +138 -3
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/duplicateagent.ts +71 -0
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +67 -0
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listagents.ts +69 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +75 -1
- package/src/models/operations/streamrunagent.ts +77 -1
- package/src/models/operations/syncmcptool.ts +10 -10
- package/src/models/operations/updateagent.ts +145 -3
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +10 -10
|
@@ -2511,7 +2511,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2511
2511
|
.default("orq"),
|
|
2512
2512
|
reviewed_by_id: z.string(),
|
|
2513
2513
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2514
|
-
"2025-11-
|
|
2514
|
+
"2025-11-14T14:39:41.837Z",
|
|
2515
2515
|
).transform(v => new Date(v)),
|
|
2516
2516
|
type: RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema,
|
|
2517
2517
|
values: z.array(z.string()),
|
|
@@ -2548,7 +2548,7 @@ export const RetrieveDatapointEvaluations3$outboundSchema: z.ZodType<
|
|
|
2548
2548
|
source: RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
|
|
2549
2549
|
.default("orq"),
|
|
2550
2550
|
reviewedById: z.string(),
|
|
2551
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
2551
|
+
reviewedAt: z.date().default(() => new Date("2025-11-14T14:39:41.837Z"))
|
|
2552
2552
|
.transform(v => v.toISOString()),
|
|
2553
2553
|
type: RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema,
|
|
2554
2554
|
values: z.array(z.string()),
|
|
@@ -2622,7 +2622,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2622
2622
|
),
|
|
2623
2623
|
reviewed_by_id: z.string(),
|
|
2624
2624
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2625
|
-
"2025-11-
|
|
2625
|
+
"2025-11-14T14:39:41.836Z",
|
|
2626
2626
|
).transform(v => new Date(v)),
|
|
2627
2627
|
type: RetrieveDatapointEvaluationsDatasetsType$inboundSchema,
|
|
2628
2628
|
value: z.number(),
|
|
@@ -2660,7 +2660,7 @@ export const RetrieveDatapointEvaluations2$outboundSchema: z.ZodType<
|
|
|
2660
2660
|
"orq",
|
|
2661
2661
|
),
|
|
2662
2662
|
reviewedById: z.string(),
|
|
2663
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
2663
|
+
reviewedAt: z.date().default(() => new Date("2025-11-14T14:39:41.836Z"))
|
|
2664
2664
|
.transform(v => v.toISOString()),
|
|
2665
2665
|
type: RetrieveDatapointEvaluationsDatasetsType$outboundSchema,
|
|
2666
2666
|
value: z.number(),
|
|
@@ -2731,7 +2731,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2731
2731
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2732
2732
|
reviewed_by_id: z.string(),
|
|
2733
2733
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2734
|
-
"2025-11-
|
|
2734
|
+
"2025-11-14T14:39:41.833Z",
|
|
2735
2735
|
).transform(v => new Date(v)),
|
|
2736
2736
|
type: RetrieveDatapointEvaluationsType$inboundSchema,
|
|
2737
2737
|
value: z.string(),
|
|
@@ -2766,7 +2766,7 @@ export const RetrieveDatapointEvaluations1$outboundSchema: z.ZodType<
|
|
|
2766
2766
|
humanReviewId: z.string(),
|
|
2767
2767
|
source: RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
|
|
2768
2768
|
reviewedById: z.string(),
|
|
2769
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
2769
|
+
reviewedAt: z.date().default(() => new Date("2025-11-14T14:39:41.833Z"))
|
|
2770
2770
|
.transform(v => v.toISOString()),
|
|
2771
2771
|
type: RetrieveDatapointEvaluationsType$outboundSchema,
|
|
2772
2772
|
value: z.string(),
|
|
@@ -2877,7 +2877,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2877
2877
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2878
2878
|
.optional(),
|
|
2879
2879
|
updated: z.string().datetime({ offset: true }).default(
|
|
2880
|
-
"2025-11-
|
|
2880
|
+
"2025-11-14T14:39:28.175Z",
|
|
2881
2881
|
).transform(v => new Date(v)),
|
|
2882
2882
|
}).transform((v) => {
|
|
2883
2883
|
return remap$(v, {
|
|
@@ -2951,7 +2951,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
2951
2951
|
createdById: z.string().optional(),
|
|
2952
2952
|
updatedById: z.string().optional(),
|
|
2953
2953
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2954
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
2954
|
+
updated: z.date().default(() => new Date("2025-11-14T14:39:28.175Z"))
|
|
2955
2955
|
.transform(v => v.toISOString()),
|
|
2956
2956
|
}).transform((v) => {
|
|
2957
2957
|
return remap$(v, {
|
|
@@ -174,7 +174,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
174
174
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
175
175
|
.optional(),
|
|
176
176
|
updated: z.string().datetime({ offset: true }).default(
|
|
177
|
-
"2025-11-
|
|
177
|
+
"2025-11-14T14:39:28.175Z",
|
|
178
178
|
).transform(v => new Date(v)),
|
|
179
179
|
}).transform((v) => {
|
|
180
180
|
return remap$(v, {
|
|
@@ -213,7 +213,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
213
213
|
createdById: z.string().optional(),
|
|
214
214
|
updatedById: z.string().optional(),
|
|
215
215
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
216
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
216
|
+
updated: z.date().default(() => new Date("2025-11-14T14:39:28.175Z"))
|
|
217
217
|
.transform(v => v.toISOString()),
|
|
218
218
|
}).transform((v) => {
|
|
219
219
|
return remap$(v, {
|
|
@@ -145,7 +145,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
145
145
|
z.ZodTypeDef,
|
|
146
146
|
unknown
|
|
147
147
|
> = z.object({
|
|
148
|
-
_id: z.string().default("
|
|
148
|
+
_id: z.string().default("01KA1CXJNFXHHXNKMB95R13RNG"),
|
|
149
149
|
display_name: z.string(),
|
|
150
150
|
description: z.string().optional(),
|
|
151
151
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -188,7 +188,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
188
188
|
z.ZodTypeDef,
|
|
189
189
|
RetrieveDatasourceResponseBody
|
|
190
190
|
> = z.object({
|
|
191
|
-
id: z.string().default("
|
|
191
|
+
id: z.string().default("01KA1CXJNFXHHXNKMB95R13RNG"),
|
|
192
192
|
displayName: z.string(),
|
|
193
193
|
description: z.string().optional(),
|
|
194
194
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -889,7 +889,7 @@ export const RetrieveToolResponseBody5$inboundSchema: z.ZodType<
|
|
|
889
889
|
z.ZodTypeDef,
|
|
890
890
|
unknown
|
|
891
891
|
> = z.object({
|
|
892
|
-
_id: z.string().default("
|
|
892
|
+
_id: z.string().default("tool_01KA1CXJJ6WA4CQVPBD0PQNFWJ"),
|
|
893
893
|
path: z.string(),
|
|
894
894
|
key: z.string(),
|
|
895
895
|
display_name: z.string().optional(),
|
|
@@ -944,7 +944,7 @@ export const RetrieveToolResponseBody5$outboundSchema: z.ZodType<
|
|
|
944
944
|
z.ZodTypeDef,
|
|
945
945
|
RetrieveToolResponseBody5
|
|
946
946
|
> = z.object({
|
|
947
|
-
id: z.string().default("
|
|
947
|
+
id: z.string().default("tool_01KA1CXJJ6WA4CQVPBD0PQNFWJ"),
|
|
948
948
|
path: z.string(),
|
|
949
949
|
key: z.string(),
|
|
950
950
|
displayName: z.string().optional(),
|
|
@@ -1246,7 +1246,7 @@ export const RetrieveToolResponseBody4$inboundSchema: z.ZodType<
|
|
|
1246
1246
|
z.ZodTypeDef,
|
|
1247
1247
|
unknown
|
|
1248
1248
|
> = z.object({
|
|
1249
|
-
_id: z.string().default("
|
|
1249
|
+
_id: z.string().default("tool_01KA1CXJJ35S5YRF3EK1PHR3TW"),
|
|
1250
1250
|
path: z.string(),
|
|
1251
1251
|
key: z.string(),
|
|
1252
1252
|
display_name: z.string().optional(),
|
|
@@ -1299,7 +1299,7 @@ export const RetrieveToolResponseBody4$outboundSchema: z.ZodType<
|
|
|
1299
1299
|
z.ZodTypeDef,
|
|
1300
1300
|
RetrieveToolResponseBody4
|
|
1301
1301
|
> = z.object({
|
|
1302
|
-
id: z.string().default("
|
|
1302
|
+
id: z.string().default("tool_01KA1CXJJ35S5YRF3EK1PHR3TW"),
|
|
1303
1303
|
path: z.string(),
|
|
1304
1304
|
key: z.string(),
|
|
1305
1305
|
displayName: z.string().optional(),
|
|
@@ -1677,7 +1677,7 @@ export const RetrieveToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
1677
1677
|
z.ZodTypeDef,
|
|
1678
1678
|
unknown
|
|
1679
1679
|
> = z.object({
|
|
1680
|
-
_id: z.string().default("
|
|
1680
|
+
_id: z.string().default("tool_01KA1CXJJ0ME9HG3B1VE389BB6"),
|
|
1681
1681
|
path: z.string(),
|
|
1682
1682
|
key: z.string(),
|
|
1683
1683
|
display_name: z.string().optional(),
|
|
@@ -1730,7 +1730,7 @@ export const RetrieveToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
1730
1730
|
z.ZodTypeDef,
|
|
1731
1731
|
RetrieveToolResponseBody3
|
|
1732
1732
|
> = z.object({
|
|
1733
|
-
id: z.string().default("
|
|
1733
|
+
id: z.string().default("tool_01KA1CXJJ0ME9HG3B1VE389BB6"),
|
|
1734
1734
|
path: z.string(),
|
|
1735
1735
|
key: z.string(),
|
|
1736
1736
|
displayName: z.string().optional(),
|
|
@@ -1911,7 +1911,7 @@ export const RetrieveToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
1911
1911
|
z.ZodTypeDef,
|
|
1912
1912
|
unknown
|
|
1913
1913
|
> = z.object({
|
|
1914
|
-
_id: z.string().default("
|
|
1914
|
+
_id: z.string().default("tool_01KA1CXJHYE3HXV2DJN2E10R7V"),
|
|
1915
1915
|
path: z.string(),
|
|
1916
1916
|
key: z.string(),
|
|
1917
1917
|
display_name: z.string().optional(),
|
|
@@ -1963,7 +1963,7 @@ export const RetrieveToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
1963
1963
|
z.ZodTypeDef,
|
|
1964
1964
|
RetrieveToolResponseBody2
|
|
1965
1965
|
> = z.object({
|
|
1966
|
-
id: z.string().default("
|
|
1966
|
+
id: z.string().default("tool_01KA1CXJHYE3HXV2DJN2E10R7V"),
|
|
1967
1967
|
path: z.string(),
|
|
1968
1968
|
key: z.string(),
|
|
1969
1969
|
displayName: z.string().optional(),
|
|
@@ -2161,7 +2161,7 @@ export const RetrieveToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
2161
2161
|
z.ZodTypeDef,
|
|
2162
2162
|
unknown
|
|
2163
2163
|
> = z.object({
|
|
2164
|
-
_id: z.string().default("
|
|
2164
|
+
_id: z.string().default("tool_01KA1CXJHWG44A9S7R7MFG9PNT"),
|
|
2165
2165
|
path: z.string(),
|
|
2166
2166
|
key: z.string(),
|
|
2167
2167
|
display_name: z.string().optional(),
|
|
@@ -2212,7 +2212,7 @@ export const RetrieveToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
2212
2212
|
z.ZodTypeDef,
|
|
2213
2213
|
RetrieveToolResponseBody1
|
|
2214
2214
|
> = z.object({
|
|
2215
|
-
id: z.string().default("
|
|
2215
|
+
id: z.string().default("tool_01KA1CXJHWG44A9S7R7MFG9PNT"),
|
|
2216
2216
|
path: z.string(),
|
|
2217
2217
|
key: z.string(),
|
|
2218
2218
|
displayName: z.string().optional(),
|
|
@@ -320,10 +320,24 @@ export type RunAgentModelConfigurationParameters = {
|
|
|
320
320
|
modalities?: Array<RunAgentModelConfigurationModalities> | null | undefined;
|
|
321
321
|
};
|
|
322
322
|
|
|
323
|
+
/**
|
|
324
|
+
* Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
|
|
325
|
+
*/
|
|
326
|
+
export type RunAgentModelConfigurationRetry = {
|
|
327
|
+
/**
|
|
328
|
+
* Number of retry attempts (1-5)
|
|
329
|
+
*/
|
|
330
|
+
count?: number | undefined;
|
|
331
|
+
/**
|
|
332
|
+
* HTTP status codes that trigger retry logic
|
|
333
|
+
*/
|
|
334
|
+
onCodes?: Array<number> | undefined;
|
|
335
|
+
};
|
|
336
|
+
|
|
323
337
|
/**
|
|
324
338
|
* @remarks
|
|
325
339
|
*
|
|
326
|
-
* Model configuration with parameters.
|
|
340
|
+
* Model configuration with parameters and retry settings.
|
|
327
341
|
*/
|
|
328
342
|
export type RunAgentModelConfiguration2 = {
|
|
329
343
|
/**
|
|
@@ -334,6 +348,10 @@ export type RunAgentModelConfiguration2 = {
|
|
|
334
348
|
* Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
|
|
335
349
|
*/
|
|
336
350
|
parameters?: RunAgentModelConfigurationParameters | undefined;
|
|
351
|
+
/**
|
|
352
|
+
* Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
|
|
353
|
+
*/
|
|
354
|
+
retry?: RunAgentModelConfigurationRetry | undefined;
|
|
337
355
|
};
|
|
338
356
|
|
|
339
357
|
/**
|
|
@@ -2730,6 +2748,58 @@ export function runAgentModelConfigurationParametersFromJSON(
|
|
|
2730
2748
|
);
|
|
2731
2749
|
}
|
|
2732
2750
|
|
|
2751
|
+
/** @internal */
|
|
2752
|
+
export const RunAgentModelConfigurationRetry$inboundSchema: z.ZodType<
|
|
2753
|
+
RunAgentModelConfigurationRetry,
|
|
2754
|
+
z.ZodTypeDef,
|
|
2755
|
+
unknown
|
|
2756
|
+
> = z.object({
|
|
2757
|
+
count: z.number().default(3),
|
|
2758
|
+
on_codes: z.array(z.number()).optional(),
|
|
2759
|
+
}).transform((v) => {
|
|
2760
|
+
return remap$(v, {
|
|
2761
|
+
"on_codes": "onCodes",
|
|
2762
|
+
});
|
|
2763
|
+
});
|
|
2764
|
+
/** @internal */
|
|
2765
|
+
export type RunAgentModelConfigurationRetry$Outbound = {
|
|
2766
|
+
count: number;
|
|
2767
|
+
on_codes?: Array<number> | undefined;
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
/** @internal */
|
|
2771
|
+
export const RunAgentModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
2772
|
+
RunAgentModelConfigurationRetry$Outbound,
|
|
2773
|
+
z.ZodTypeDef,
|
|
2774
|
+
RunAgentModelConfigurationRetry
|
|
2775
|
+
> = z.object({
|
|
2776
|
+
count: z.number().default(3),
|
|
2777
|
+
onCodes: z.array(z.number()).optional(),
|
|
2778
|
+
}).transform((v) => {
|
|
2779
|
+
return remap$(v, {
|
|
2780
|
+
onCodes: "on_codes",
|
|
2781
|
+
});
|
|
2782
|
+
});
|
|
2783
|
+
|
|
2784
|
+
export function runAgentModelConfigurationRetryToJSON(
|
|
2785
|
+
runAgentModelConfigurationRetry: RunAgentModelConfigurationRetry,
|
|
2786
|
+
): string {
|
|
2787
|
+
return JSON.stringify(
|
|
2788
|
+
RunAgentModelConfigurationRetry$outboundSchema.parse(
|
|
2789
|
+
runAgentModelConfigurationRetry,
|
|
2790
|
+
),
|
|
2791
|
+
);
|
|
2792
|
+
}
|
|
2793
|
+
export function runAgentModelConfigurationRetryFromJSON(
|
|
2794
|
+
jsonString: string,
|
|
2795
|
+
): SafeParseResult<RunAgentModelConfigurationRetry, SDKValidationError> {
|
|
2796
|
+
return safeParse(
|
|
2797
|
+
jsonString,
|
|
2798
|
+
(x) => RunAgentModelConfigurationRetry$inboundSchema.parse(JSON.parse(x)),
|
|
2799
|
+
`Failed to parse 'RunAgentModelConfigurationRetry' from JSON`,
|
|
2800
|
+
);
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2733
2803
|
/** @internal */
|
|
2734
2804
|
export const RunAgentModelConfiguration2$inboundSchema: z.ZodType<
|
|
2735
2805
|
RunAgentModelConfiguration2,
|
|
@@ -2739,11 +2809,13 @@ export const RunAgentModelConfiguration2$inboundSchema: z.ZodType<
|
|
|
2739
2809
|
id: z.string(),
|
|
2740
2810
|
parameters: z.lazy(() => RunAgentModelConfigurationParameters$inboundSchema)
|
|
2741
2811
|
.optional(),
|
|
2812
|
+
retry: z.lazy(() => RunAgentModelConfigurationRetry$inboundSchema).optional(),
|
|
2742
2813
|
});
|
|
2743
2814
|
/** @internal */
|
|
2744
2815
|
export type RunAgentModelConfiguration2$Outbound = {
|
|
2745
2816
|
id: string;
|
|
2746
2817
|
parameters?: RunAgentModelConfigurationParameters$Outbound | undefined;
|
|
2818
|
+
retry?: RunAgentModelConfigurationRetry$Outbound | undefined;
|
|
2747
2819
|
};
|
|
2748
2820
|
|
|
2749
2821
|
/** @internal */
|
|
@@ -2755,6 +2827,8 @@ export const RunAgentModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
2755
2827
|
id: z.string(),
|
|
2756
2828
|
parameters: z.lazy(() => RunAgentModelConfigurationParameters$outboundSchema)
|
|
2757
2829
|
.optional(),
|
|
2830
|
+
retry: z.lazy(() => RunAgentModelConfigurationRetry$outboundSchema)
|
|
2831
|
+
.optional(),
|
|
2758
2832
|
});
|
|
2759
2833
|
|
|
2760
2834
|
export function runAgentModelConfiguration2ToJSON(
|
|
@@ -333,10 +333,24 @@ export type StreamRunAgentModelConfigurationParameters = {
|
|
|
333
333
|
| undefined;
|
|
334
334
|
};
|
|
335
335
|
|
|
336
|
+
/**
|
|
337
|
+
* Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
|
|
338
|
+
*/
|
|
339
|
+
export type StreamRunAgentModelConfigurationRetry = {
|
|
340
|
+
/**
|
|
341
|
+
* Number of retry attempts (1-5)
|
|
342
|
+
*/
|
|
343
|
+
count?: number | undefined;
|
|
344
|
+
/**
|
|
345
|
+
* HTTP status codes that trigger retry logic
|
|
346
|
+
*/
|
|
347
|
+
onCodes?: Array<number> | undefined;
|
|
348
|
+
};
|
|
349
|
+
|
|
336
350
|
/**
|
|
337
351
|
* @remarks
|
|
338
352
|
*
|
|
339
|
-
* Model configuration with parameters.
|
|
353
|
+
* Model configuration with parameters and retry settings.
|
|
340
354
|
*/
|
|
341
355
|
export type StreamRunAgentModelConfiguration2 = {
|
|
342
356
|
/**
|
|
@@ -347,6 +361,10 @@ export type StreamRunAgentModelConfiguration2 = {
|
|
|
347
361
|
* Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
|
|
348
362
|
*/
|
|
349
363
|
parameters?: StreamRunAgentModelConfigurationParameters | undefined;
|
|
364
|
+
/**
|
|
365
|
+
* Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
|
|
366
|
+
*/
|
|
367
|
+
retry?: StreamRunAgentModelConfigurationRetry | undefined;
|
|
350
368
|
};
|
|
351
369
|
|
|
352
370
|
/**
|
|
@@ -2616,6 +2634,59 @@ export function streamRunAgentModelConfigurationParametersFromJSON(
|
|
|
2616
2634
|
);
|
|
2617
2635
|
}
|
|
2618
2636
|
|
|
2637
|
+
/** @internal */
|
|
2638
|
+
export const StreamRunAgentModelConfigurationRetry$inboundSchema: z.ZodType<
|
|
2639
|
+
StreamRunAgentModelConfigurationRetry,
|
|
2640
|
+
z.ZodTypeDef,
|
|
2641
|
+
unknown
|
|
2642
|
+
> = z.object({
|
|
2643
|
+
count: z.number().default(3),
|
|
2644
|
+
on_codes: z.array(z.number()).optional(),
|
|
2645
|
+
}).transform((v) => {
|
|
2646
|
+
return remap$(v, {
|
|
2647
|
+
"on_codes": "onCodes",
|
|
2648
|
+
});
|
|
2649
|
+
});
|
|
2650
|
+
/** @internal */
|
|
2651
|
+
export type StreamRunAgentModelConfigurationRetry$Outbound = {
|
|
2652
|
+
count: number;
|
|
2653
|
+
on_codes?: Array<number> | undefined;
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
/** @internal */
|
|
2657
|
+
export const StreamRunAgentModelConfigurationRetry$outboundSchema: z.ZodType<
|
|
2658
|
+
StreamRunAgentModelConfigurationRetry$Outbound,
|
|
2659
|
+
z.ZodTypeDef,
|
|
2660
|
+
StreamRunAgentModelConfigurationRetry
|
|
2661
|
+
> = z.object({
|
|
2662
|
+
count: z.number().default(3),
|
|
2663
|
+
onCodes: z.array(z.number()).optional(),
|
|
2664
|
+
}).transform((v) => {
|
|
2665
|
+
return remap$(v, {
|
|
2666
|
+
onCodes: "on_codes",
|
|
2667
|
+
});
|
|
2668
|
+
});
|
|
2669
|
+
|
|
2670
|
+
export function streamRunAgentModelConfigurationRetryToJSON(
|
|
2671
|
+
streamRunAgentModelConfigurationRetry: StreamRunAgentModelConfigurationRetry,
|
|
2672
|
+
): string {
|
|
2673
|
+
return JSON.stringify(
|
|
2674
|
+
StreamRunAgentModelConfigurationRetry$outboundSchema.parse(
|
|
2675
|
+
streamRunAgentModelConfigurationRetry,
|
|
2676
|
+
),
|
|
2677
|
+
);
|
|
2678
|
+
}
|
|
2679
|
+
export function streamRunAgentModelConfigurationRetryFromJSON(
|
|
2680
|
+
jsonString: string,
|
|
2681
|
+
): SafeParseResult<StreamRunAgentModelConfigurationRetry, SDKValidationError> {
|
|
2682
|
+
return safeParse(
|
|
2683
|
+
jsonString,
|
|
2684
|
+
(x) =>
|
|
2685
|
+
StreamRunAgentModelConfigurationRetry$inboundSchema.parse(JSON.parse(x)),
|
|
2686
|
+
`Failed to parse 'StreamRunAgentModelConfigurationRetry' from JSON`,
|
|
2687
|
+
);
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2619
2690
|
/** @internal */
|
|
2620
2691
|
export const StreamRunAgentModelConfiguration2$inboundSchema: z.ZodType<
|
|
2621
2692
|
StreamRunAgentModelConfiguration2,
|
|
@@ -2626,11 +2697,14 @@ export const StreamRunAgentModelConfiguration2$inboundSchema: z.ZodType<
|
|
|
2626
2697
|
parameters: z.lazy(() =>
|
|
2627
2698
|
StreamRunAgentModelConfigurationParameters$inboundSchema
|
|
2628
2699
|
).optional(),
|
|
2700
|
+
retry: z.lazy(() => StreamRunAgentModelConfigurationRetry$inboundSchema)
|
|
2701
|
+
.optional(),
|
|
2629
2702
|
});
|
|
2630
2703
|
/** @internal */
|
|
2631
2704
|
export type StreamRunAgentModelConfiguration2$Outbound = {
|
|
2632
2705
|
id: string;
|
|
2633
2706
|
parameters?: StreamRunAgentModelConfigurationParameters$Outbound | undefined;
|
|
2707
|
+
retry?: StreamRunAgentModelConfigurationRetry$Outbound | undefined;
|
|
2634
2708
|
};
|
|
2635
2709
|
|
|
2636
2710
|
/** @internal */
|
|
@@ -2643,6 +2717,8 @@ export const StreamRunAgentModelConfiguration2$outboundSchema: z.ZodType<
|
|
|
2643
2717
|
parameters: z.lazy(() =>
|
|
2644
2718
|
StreamRunAgentModelConfigurationParameters$outboundSchema
|
|
2645
2719
|
).optional(),
|
|
2720
|
+
retry: z.lazy(() => StreamRunAgentModelConfigurationRetry$outboundSchema)
|
|
2721
|
+
.optional(),
|
|
2646
2722
|
});
|
|
2647
2723
|
|
|
2648
2724
|
export function streamRunAgentModelConfiguration2ToJSON(
|
|
@@ -978,7 +978,7 @@ export const SyncMcpToolResponseBody5$inboundSchema: z.ZodType<
|
|
|
978
978
|
z.ZodTypeDef,
|
|
979
979
|
unknown
|
|
980
980
|
> = z.object({
|
|
981
|
-
_id: z.string().default("
|
|
981
|
+
_id: z.string().default("tool_01KA1CXJJEW253GFC72GSPBA98"),
|
|
982
982
|
path: z.string(),
|
|
983
983
|
key: z.string(),
|
|
984
984
|
display_name: z.string().optional(),
|
|
@@ -1037,7 +1037,7 @@ export const SyncMcpToolResponseBody5$outboundSchema: z.ZodType<
|
|
|
1037
1037
|
z.ZodTypeDef,
|
|
1038
1038
|
SyncMcpToolResponseBody5
|
|
1039
1039
|
> = z.object({
|
|
1040
|
-
id: z.string().default("
|
|
1040
|
+
id: z.string().default("tool_01KA1CXJJEW253GFC72GSPBA98"),
|
|
1041
1041
|
path: z.string(),
|
|
1042
1042
|
key: z.string(),
|
|
1043
1043
|
displayName: z.string().optional(),
|
|
@@ -1388,7 +1388,7 @@ export const SyncMcpToolResponseBody4$inboundSchema: z.ZodType<
|
|
|
1388
1388
|
z.ZodTypeDef,
|
|
1389
1389
|
unknown
|
|
1390
1390
|
> = z.object({
|
|
1391
|
-
_id: z.string().default("
|
|
1391
|
+
_id: z.string().default("tool_01KA1CXJJCVS4H9FASFJ8AJDK9"),
|
|
1392
1392
|
path: z.string(),
|
|
1393
1393
|
key: z.string(),
|
|
1394
1394
|
display_name: z.string().optional(),
|
|
@@ -1445,7 +1445,7 @@ export const SyncMcpToolResponseBody4$outboundSchema: z.ZodType<
|
|
|
1445
1445
|
z.ZodTypeDef,
|
|
1446
1446
|
SyncMcpToolResponseBody4
|
|
1447
1447
|
> = z.object({
|
|
1448
|
-
id: z.string().default("
|
|
1448
|
+
id: z.string().default("tool_01KA1CXJJCVS4H9FASFJ8AJDK9"),
|
|
1449
1449
|
path: z.string(),
|
|
1450
1450
|
key: z.string(),
|
|
1451
1451
|
displayName: z.string().optional(),
|
|
@@ -1873,7 +1873,7 @@ export const SyncMcpToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
1873
1873
|
z.ZodTypeDef,
|
|
1874
1874
|
unknown
|
|
1875
1875
|
> = z.object({
|
|
1876
|
-
_id: z.string().default("
|
|
1876
|
+
_id: z.string().default("tool_01KA1CXJJA52Z3DVTAFT5NE2T4"),
|
|
1877
1877
|
path: z.string(),
|
|
1878
1878
|
key: z.string(),
|
|
1879
1879
|
display_name: z.string().optional(),
|
|
@@ -1928,7 +1928,7 @@ export const SyncMcpToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
1928
1928
|
z.ZodTypeDef,
|
|
1929
1929
|
SyncMcpToolResponseBody3
|
|
1930
1930
|
> = z.object({
|
|
1931
|
-
id: z.string().default("
|
|
1931
|
+
id: z.string().default("tool_01KA1CXJJA52Z3DVTAFT5NE2T4"),
|
|
1932
1932
|
path: z.string(),
|
|
1933
1933
|
key: z.string(),
|
|
1934
1934
|
displayName: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const SyncMcpToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01KA1CXJJ9P0TEAJK4Y1P7M47G"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
|
@@ -2211,7 +2211,7 @@ export const SyncMcpToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
2211
2211
|
z.ZodTypeDef,
|
|
2212
2212
|
SyncMcpToolResponseBody2
|
|
2213
2213
|
> = z.object({
|
|
2214
|
-
id: z.string().default("
|
|
2214
|
+
id: z.string().default("tool_01KA1CXJJ9P0TEAJK4Y1P7M47G"),
|
|
2215
2215
|
path: z.string(),
|
|
2216
2216
|
key: z.string(),
|
|
2217
2217
|
displayName: z.string().optional(),
|
|
@@ -2450,7 +2450,7 @@ export const SyncMcpToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
2450
2450
|
z.ZodTypeDef,
|
|
2451
2451
|
unknown
|
|
2452
2452
|
> = z.object({
|
|
2453
|
-
_id: z.string().default("
|
|
2453
|
+
_id: z.string().default("tool_01KA1CXJJ7B6SR2C9A2607H85C"),
|
|
2454
2454
|
path: z.string(),
|
|
2455
2455
|
key: z.string(),
|
|
2456
2456
|
display_name: z.string().optional(),
|
|
@@ -2503,7 +2503,7 @@ export const SyncMcpToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
2503
2503
|
z.ZodTypeDef,
|
|
2504
2504
|
SyncMcpToolResponseBody1
|
|
2505
2505
|
> = z.object({
|
|
2506
|
-
id: z.string().default("
|
|
2506
|
+
id: z.string().default("tool_01KA1CXJJ7B6SR2C9A2607H85C"),
|
|
2507
2507
|
path: z.string(),
|
|
2508
2508
|
key: z.string(),
|
|
2509
2509
|
displayName: z.string().optional(),
|