@orq-ai/node 4.3.0-rc.9 → 4.3.1-rc.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/README.md +15 -10
- package/examples/package-lock.json +3 -3
- package/funcs/evalsInvoke.d.ts +1 -1
- package/funcs/evalsInvoke.d.ts.map +1 -1
- package/funcs/evalsInvoke.js +2 -2
- package/funcs/evalsInvoke.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js +40 -21
- package/lib/event-streams.js.map +1 -1
- package/models/components/agentstartedstreamingevent.d.ts +5 -0
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +4 -0
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/conversationresponse.js +1 -1
- package/models/components/conversationwithmessagesresponse.js +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/toolexecutionstartedstreamingevent.d.ts +1 -0
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.js +2 -0
- package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
- package/models/errors/invokeeval.d.ts +23 -3
- package/models/errors/invokeeval.d.ts.map +1 -1
- package/models/errors/invokeeval.js +28 -2
- package/models/errors/invokeeval.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +35 -5
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +23 -4
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +2 -2
- package/models/operations/createcompletion.d.ts +2 -2
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createconversation.js +1 -1
- package/models/operations/createconversationresponse.js +2 -2
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +14 -14
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createprompt.d.ts +1 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +1 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentinvoke.d.ts +1 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1 -0
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +1 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +2 -1
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +1 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +1 -0
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +2 -2
- package/models/operations/filelist.js.map +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/generateconversationname.js +1 -1
- package/models/operations/getallmemories.js +1 -1
- package/models/operations/getallmemories.js.map +1 -1
- package/models/operations/getallmemorydocuments.js +1 -1
- package/models/operations/getallmemorydocuments.js.map +1 -1
- package/models/operations/getallmemorystores.js +1 -1
- package/models/operations/getallmemorystores.js.map +1 -1
- package/models/operations/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +2 -1
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +15 -15
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +1 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2evaluatorsidversions.js +1 -1
- package/models/operations/getv2evaluatorsidversions.js.map +1 -1
- package/models/operations/getv2toolstoolidversions.js +1 -1
- package/models/operations/getv2toolstoolidversions.js.map +1 -1
- package/models/operations/invokeeval.d.ts +15 -1
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +12 -1
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listagents.d.ts +4 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +2 -0
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listchunks.js +1 -1
- package/models/operations/listchunks.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasets.js.map +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +2 -2
- package/models/operations/listidentities.js.map +1 -1
- package/models/operations/listknowledgebases.js +1 -1
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -1
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +4 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +2 -0
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +5 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +3 -1
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/searchknowledge.d.ts +2 -2
- package/models/operations/streamrunagent.d.ts +5 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +3 -1
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +35 -5
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +23 -4
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updateconversation.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +14 -14
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatememorydocument.d.ts +2 -2
- package/models/operations/updatememorydocument.d.ts.map +1 -1
- package/models/operations/updatememorydocument.js +1 -1
- package/models/operations/updatememorydocument.js.map +1 -1
- package/models/operations/updatememorystore.d.ts +1 -0
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +1 -0
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +1 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +1 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/src/funcs/evalsInvoke.ts +7 -3
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +37 -20
- package/src/models/components/agentstartedstreamingevent.ts +9 -0
- package/src/models/components/conversationresponse.ts +1 -1
- package/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/toolexecutionstartedstreamingevent.ts +3 -0
- package/src/models/errors/invokeeval.ts +48 -3
- package/src/models/operations/createagentrequest.ts +62 -1
- package/src/models/operations/createchatcompletion.ts +2 -2
- package/src/models/operations/createcompletion.ts +2 -2
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createconversation.ts +1 -1
- package/src/models/operations/createconversationresponse.ts +2 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +14 -14
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createprompt.ts +1 -0
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentinvoke.ts +1 -0
- package/src/models/operations/deployments.ts +2 -1
- package/src/models/operations/deploymentstream.ts +1 -0
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/generateconversationname.ts +1 -1
- package/src/models/operations/getallmemories.ts +1 -1
- package/src/models/operations/getallmemorydocuments.ts +1 -1
- package/src/models/operations/getallmemorystores.ts +1 -1
- package/src/models/operations/getallprompts.ts +2 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +15 -15
- package/src/models/operations/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- package/src/models/operations/getv2evaluatorsidversions.ts +1 -1
- package/src/models/operations/getv2toolstoolidversions.ts +1 -1
- package/src/models/operations/invokeeval.ts +34 -1
- package/src/models/operations/listagents.ts +6 -0
- package/src/models/operations/listchunks.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +2 -2
- package/src/models/operations/listknowledgebases.ts +1 -1
- package/src/models/operations/listpromptversions.ts +2 -1
- package/src/models/operations/retrieveagentrequest.ts +6 -0
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +8 -1
- package/src/models/operations/searchknowledge.ts +2 -2
- package/src/models/operations/streamrunagent.ts +8 -1
- package/src/models/operations/updateagent.ts +64 -1
- package/src/models/operations/updateconversation.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +14 -14
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatememorydocument.ts +3 -3
- package/src/models/operations/updatememorystore.ts +1 -0
- package/src/models/operations/updateprompt.ts +1 -0
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -152,7 +152,7 @@ export const ListChunksRequest$outboundSchema: z.ZodType<
|
|
|
152
152
|
> = z.object({
|
|
153
153
|
knowledgeId: z.string(),
|
|
154
154
|
datasourceId: z.string(),
|
|
155
|
-
limit: z.number().default(10),
|
|
155
|
+
limit: z.number().int().default(10),
|
|
156
156
|
startingAfter: z.string().optional(),
|
|
157
157
|
endingBefore: z.string().optional(),
|
|
158
158
|
q: z.string().optional(),
|
|
@@ -624,7 +624,7 @@ export const ListDatasetDatapointsRequest$outboundSchema: z.ZodType<
|
|
|
624
624
|
ListDatasetDatapointsRequest
|
|
625
625
|
> = z.object({
|
|
626
626
|
datasetId: z.string(),
|
|
627
|
-
limit: z.number().default(10),
|
|
627
|
+
limit: z.number().int().default(10),
|
|
628
628
|
startingAfter: z.string().optional(),
|
|
629
629
|
endingBefore: z.string().optional(),
|
|
630
630
|
}).transform((v) => {
|
|
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1270
1270
|
),
|
|
1271
1271
|
reviewed_by_id: z.string(),
|
|
1272
1272
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1273
|
-
"2026-
|
|
1273
|
+
"2026-02-16T07:19:07.164Z",
|
|
1274
1274
|
).transform(v => new Date(v)),
|
|
1275
1275
|
type: z.literal("string_array"),
|
|
1276
1276
|
values: z.array(z.string()),
|
|
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1320
1320
|
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
1321
1321
|
reviewed_by_id: z.string(),
|
|
1322
1322
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1323
|
-
"2026-
|
|
1323
|
+
"2026-02-16T07:19:07.163Z",
|
|
1324
1324
|
).transform(v => new Date(v)),
|
|
1325
1325
|
type: z.literal("number"),
|
|
1326
1326
|
value: z.number(),
|
|
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1369
1369
|
.default("orq"),
|
|
1370
1370
|
reviewed_by_id: z.string(),
|
|
1371
1371
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1372
|
-
"2026-
|
|
1372
|
+
"2026-02-16T07:19:07.163Z",
|
|
1373
1373
|
).transform(v => new Date(v)),
|
|
1374
1374
|
type: z.literal("string"),
|
|
1375
1375
|
value: z.string(),
|
|
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1448
1448
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1449
1449
|
.optional(),
|
|
1450
1450
|
updated: z.string().datetime({ offset: true }).default(
|
|
1451
|
-
"2026-
|
|
1451
|
+
"2026-02-16T07:18:52.260Z",
|
|
1452
1452
|
).transform(v => new Date(v)),
|
|
1453
1453
|
}).transform((v) => {
|
|
1454
1454
|
return remap$(v, {
|
|
@@ -92,7 +92,7 @@ export const ListDatasetsRequest$outboundSchema: z.ZodType<
|
|
|
92
92
|
z.ZodTypeDef,
|
|
93
93
|
ListDatasetsRequest
|
|
94
94
|
> = z.object({
|
|
95
|
-
limit: z.number().default(10),
|
|
95
|
+
limit: z.number().int().default(10),
|
|
96
96
|
startingAfter: z.string().optional(),
|
|
97
97
|
endingBefore: z.string().optional(),
|
|
98
98
|
}).transform((v) => {
|
|
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
156
156
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
157
157
|
.optional(),
|
|
158
158
|
updated: z.string().datetime({ offset: true }).default(
|
|
159
|
-
"2026-
|
|
159
|
+
"2026-02-16T07:18:52.260Z",
|
|
160
160
|
).transform(v => new Date(v)),
|
|
161
161
|
}).transform((v) => {
|
|
162
162
|
return remap$(v, {
|
|
@@ -176,7 +176,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
176
176
|
z.ZodTypeDef,
|
|
177
177
|
unknown
|
|
178
178
|
> = z.object({
|
|
179
|
-
_id: z.string().default("
|
|
179
|
+
_id: z.string().default("01KHJN2DHV7QAX3EJJ92W14SYC"),
|
|
180
180
|
display_name: z.string(),
|
|
181
181
|
description: z.string().optional(),
|
|
182
182
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -154,7 +154,7 @@ export const ListIdentitiesRequest$outboundSchema: z.ZodType<
|
|
|
154
154
|
z.ZodTypeDef,
|
|
155
155
|
ListIdentitiesRequest
|
|
156
156
|
> = z.object({
|
|
157
|
-
limit: z.number().default(10),
|
|
157
|
+
limit: z.number().int().default(10),
|
|
158
158
|
startingAfter: z.string().optional(),
|
|
159
159
|
endingBefore: z.string().optional(),
|
|
160
160
|
search: z.string().optional(),
|
|
@@ -227,7 +227,7 @@ export const ListIdentitiesData$inboundSchema: z.ZodType<
|
|
|
227
227
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
228
228
|
.optional(),
|
|
229
229
|
updated: z.string().datetime({ offset: true }).default(
|
|
230
|
-
"2026-
|
|
230
|
+
"2026-02-16T07:18:52.260Z",
|
|
231
231
|
).transform(v => new Date(v)),
|
|
232
232
|
metrics: z.lazy(() => ListIdentitiesMetrics$inboundSchema),
|
|
233
233
|
}).transform((v) => {
|
|
@@ -290,7 +290,7 @@ export const ListKnowledgeBasesRequest$outboundSchema: z.ZodType<
|
|
|
290
290
|
z.ZodTypeDef,
|
|
291
291
|
ListKnowledgeBasesRequest
|
|
292
292
|
> = z.object({
|
|
293
|
-
limit: z.number().default(10),
|
|
293
|
+
limit: z.number().int().default(10),
|
|
294
294
|
startingAfter: z.string().optional(),
|
|
295
295
|
endingBefore: z.string().optional(),
|
|
296
296
|
}).transform((v) => {
|
|
@@ -367,6 +367,7 @@ export const ListPromptVersionsProvider = {
|
|
|
367
367
|
Contextualai: "contextualai",
|
|
368
368
|
Moonshotai: "moonshotai",
|
|
369
369
|
Zai: "zai",
|
|
370
|
+
Minimax: "minimax",
|
|
370
371
|
Slack: "slack",
|
|
371
372
|
} as const;
|
|
372
373
|
export type ListPromptVersionsProvider = ClosedEnum<
|
|
@@ -1435,7 +1436,7 @@ export const ListPromptVersionsRequest$outboundSchema: z.ZodType<
|
|
|
1435
1436
|
ListPromptVersionsRequest
|
|
1436
1437
|
> = z.object({
|
|
1437
1438
|
promptId: z.string(),
|
|
1438
|
-
limit: z.number().default(10),
|
|
1439
|
+
limit: z.number().int().default(10),
|
|
1439
1440
|
startingAfter: z.string().optional(),
|
|
1440
1441
|
endingBefore: z.string().optional(),
|
|
1441
1442
|
}).transform((v) => {
|
|
@@ -157,6 +157,10 @@ export type RetrieveAgentRequestSettings = {
|
|
|
157
157
|
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
158
158
|
*/
|
|
159
159
|
maxExecutionTime: number;
|
|
160
|
+
/**
|
|
161
|
+
* Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
|
|
162
|
+
*/
|
|
163
|
+
maxCost: number;
|
|
160
164
|
/**
|
|
161
165
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
162
166
|
*/
|
|
@@ -1456,6 +1460,7 @@ export const RetrieveAgentRequestSettings$inboundSchema: z.ZodType<
|
|
|
1456
1460
|
> = z.object({
|
|
1457
1461
|
max_iterations: z.number().int().default(100),
|
|
1458
1462
|
max_execution_time: z.number().int().default(600),
|
|
1463
|
+
max_cost: z.number().default(0),
|
|
1459
1464
|
tool_approval_required: RetrieveAgentRequestToolApprovalRequired$inboundSchema
|
|
1460
1465
|
.default("respect_tool"),
|
|
1461
1466
|
tools: z.array(z.lazy(() => RetrieveAgentRequestTools$inboundSchema))
|
|
@@ -1470,6 +1475,7 @@ export const RetrieveAgentRequestSettings$inboundSchema: z.ZodType<
|
|
|
1470
1475
|
return remap$(v, {
|
|
1471
1476
|
"max_iterations": "maxIterations",
|
|
1472
1477
|
"max_execution_time": "maxExecutionTime",
|
|
1478
|
+
"max_cost": "maxCost",
|
|
1473
1479
|
"tool_approval_required": "toolApprovalRequired",
|
|
1474
1480
|
});
|
|
1475
1481
|
});
|
|
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1207
1207
|
.default("orq"),
|
|
1208
1208
|
reviewed_by_id: z.string(),
|
|
1209
1209
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1210
|
-
"2026-
|
|
1210
|
+
"2026-02-16T07:19:07.172Z",
|
|
1211
1211
|
).transform(v => new Date(v)),
|
|
1212
1212
|
type: z.literal("string_array"),
|
|
1213
1213
|
values: z.array(z.string()),
|
|
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1255
1255
|
),
|
|
1256
1256
|
reviewed_by_id: z.string(),
|
|
1257
1257
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1258
|
-
"2026-
|
|
1258
|
+
"2026-02-16T07:19:07.172Z",
|
|
1259
1259
|
).transform(v => new Date(v)),
|
|
1260
1260
|
type: z.literal("number"),
|
|
1261
1261
|
value: z.number(),
|
|
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1300
1300
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
1301
1301
|
reviewed_by_id: z.string(),
|
|
1302
1302
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1303
|
-
"2026-
|
|
1303
|
+
"2026-02-16T07:19:07.171Z",
|
|
1304
1304
|
).transform(v => new Date(v)),
|
|
1305
1305
|
type: z.literal("string"),
|
|
1306
1306
|
value: z.string(),
|
|
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1377
1377
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1378
1378
|
.optional(),
|
|
1379
1379
|
updated: z.string().datetime({ offset: true }).default(
|
|
1380
|
-
"2026-
|
|
1380
|
+
"2026-02-16T07:18:52.260Z",
|
|
1381
1381
|
).transform(v => new Date(v)),
|
|
1382
1382
|
}).transform((v) => {
|
|
1383
1383
|
return remap$(v, {
|
|
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
126
126
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
127
|
.optional(),
|
|
128
128
|
updated: z.string().datetime({ offset: true }).default(
|
|
129
|
-
"2026-
|
|
129
|
+
"2026-02-16T07:18:52.260Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
118
118
|
z.ZodTypeDef,
|
|
119
119
|
unknown
|
|
120
120
|
> = z.object({
|
|
121
|
-
_id: z.string().default("
|
|
121
|
+
_id: z.string().default("01KHJN2DHYH0YSE0NW9AVGW7SA"),
|
|
122
122
|
display_name: z.string(),
|
|
123
123
|
description: z.string().optional(),
|
|
124
124
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -95,7 +95,7 @@ export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
95
95
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
96
96
|
.optional(),
|
|
97
97
|
updated: z.string().datetime({ offset: true }).default(
|
|
98
|
-
"2026-
|
|
98
|
+
"2026-02-16T07:18:52.260Z",
|
|
99
99
|
).transform(v => new Date(v)),
|
|
100
100
|
}).transform((v) => {
|
|
101
101
|
return remap$(v, {
|
|
@@ -754,7 +754,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
754
754
|
z.ZodTypeDef,
|
|
755
755
|
unknown
|
|
756
756
|
> = z.object({
|
|
757
|
-
_id: z.string().default("
|
|
757
|
+
_id: z.string().default("tool_01KHJN2DE6C8R5EB32DC72V8SK"),
|
|
758
758
|
path: z.string(),
|
|
759
759
|
key: z.string(),
|
|
760
760
|
display_name: z.string().optional(),
|
|
@@ -862,7 +862,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
862
862
|
z.ZodTypeDef,
|
|
863
863
|
unknown
|
|
864
864
|
> = z.object({
|
|
865
|
-
id: z.string().default("
|
|
865
|
+
id: z.string().default("01KHJN2DE5REKERAA2DED1CK2E"),
|
|
866
866
|
name: z.string(),
|
|
867
867
|
description: z.string().optional(),
|
|
868
868
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -918,7 +918,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
918
918
|
z.ZodTypeDef,
|
|
919
919
|
unknown
|
|
920
920
|
> = z.object({
|
|
921
|
-
_id: z.string().default("
|
|
921
|
+
_id: z.string().default("tool_01KHJN2DE3W1GCG5A6VXK3X1G8"),
|
|
922
922
|
path: z.string(),
|
|
923
923
|
key: z.string(),
|
|
924
924
|
display_name: z.string().optional(),
|
|
@@ -1111,7 +1111,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1111
1111
|
z.ZodTypeDef,
|
|
1112
1112
|
unknown
|
|
1113
1113
|
> = z.object({
|
|
1114
|
-
_id: z.string().default("
|
|
1114
|
+
_id: z.string().default("tool_01KHJN2DE03N34BGTNYF4C7K8R"),
|
|
1115
1115
|
path: z.string(),
|
|
1116
1116
|
key: z.string(),
|
|
1117
1117
|
display_name: z.string().optional(),
|
|
@@ -1209,7 +1209,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1209
1209
|
z.ZodTypeDef,
|
|
1210
1210
|
unknown
|
|
1211
1211
|
> = z.object({
|
|
1212
|
-
_id: z.string().default("
|
|
1212
|
+
_id: z.string().default("tool_01KHJN2DDZCVPSTFM4JHY45CCN"),
|
|
1213
1213
|
path: z.string(),
|
|
1214
1214
|
key: z.string(),
|
|
1215
1215
|
display_name: z.string().optional(),
|
|
@@ -1317,7 +1317,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1317
1317
|
z.ZodTypeDef,
|
|
1318
1318
|
unknown
|
|
1319
1319
|
> = z.object({
|
|
1320
|
-
_id: z.string().default("
|
|
1320
|
+
_id: z.string().default("tool_01KHJN2DDWK5VNS5HWGW4H5WZ2"),
|
|
1321
1321
|
path: z.string(),
|
|
1322
1322
|
key: z.string(),
|
|
1323
1323
|
display_name: z.string().optional(),
|
|
@@ -1822,6 +1822,10 @@ export type RunAgentSettings = {
|
|
|
1822
1822
|
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
1823
1823
|
*/
|
|
1824
1824
|
maxExecutionTime?: number | undefined;
|
|
1825
|
+
/**
|
|
1826
|
+
* Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
|
|
1827
|
+
*/
|
|
1828
|
+
maxCost?: number | undefined;
|
|
1825
1829
|
/**
|
|
1826
1830
|
* Configuration for an evaluator applied to the agent
|
|
1827
1831
|
*/
|
|
@@ -4027,7 +4031,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4027
4031
|
z.ZodTypeDef,
|
|
4028
4032
|
Tools
|
|
4029
4033
|
> = z.object({
|
|
4030
|
-
id: z.string().default("
|
|
4034
|
+
id: z.string().default("01KHJN2CWC88X5QTQHKRDVAM9W"),
|
|
4031
4035
|
name: z.string(),
|
|
4032
4036
|
description: z.string().optional(),
|
|
4033
4037
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -5089,6 +5093,7 @@ export type RunAgentSettings$Outbound = {
|
|
|
5089
5093
|
tool_approval_required: string;
|
|
5090
5094
|
max_iterations: number;
|
|
5091
5095
|
max_execution_time: number;
|
|
5096
|
+
max_cost: number;
|
|
5092
5097
|
evaluators?: Array<RunAgentEvaluators$Outbound> | undefined;
|
|
5093
5098
|
guardrails?: Array<RunAgentGuardrails$Outbound> | undefined;
|
|
5094
5099
|
};
|
|
@@ -5124,6 +5129,7 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
|
5124
5129
|
),
|
|
5125
5130
|
maxIterations: z.number().int().default(100),
|
|
5126
5131
|
maxExecutionTime: z.number().int().default(600),
|
|
5132
|
+
maxCost: z.number().default(0),
|
|
5127
5133
|
evaluators: z.array(z.lazy(() => RunAgentEvaluators$outboundSchema))
|
|
5128
5134
|
.optional(),
|
|
5129
5135
|
guardrails: z.array(z.lazy(() => RunAgentGuardrails$outboundSchema))
|
|
@@ -5133,6 +5139,7 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
|
5133
5139
|
toolApprovalRequired: "tool_approval_required",
|
|
5134
5140
|
maxIterations: "max_iterations",
|
|
5135
5141
|
maxExecutionTime: "max_execution_time",
|
|
5142
|
+
maxCost: "max_cost",
|
|
5136
5143
|
});
|
|
5137
5144
|
});
|
|
5138
5145
|
|
|
@@ -309,7 +309,7 @@ export type FilterBy1 =
|
|
|
309
309
|
| SearchKnowledge1Exists;
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://
|
|
312
|
+
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/knowledge/api#knowledge-base-search) for more information.
|
|
313
313
|
*/
|
|
314
314
|
export type FilterBy = FilterByAnd | FilterByOr | {
|
|
315
315
|
[k: string]:
|
|
@@ -391,7 +391,7 @@ export type SearchKnowledgeRequestBody = {
|
|
|
391
391
|
*/
|
|
392
392
|
searchType?: SearchType | undefined;
|
|
393
393
|
/**
|
|
394
|
-
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://
|
|
394
|
+
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/knowledge/api#knowledge-base-search) for more information.
|
|
395
395
|
*/
|
|
396
396
|
filterBy?: FilterByAnd | FilterByOr | {
|
|
397
397
|
[k: string]:
|
|
@@ -1862,6 +1862,10 @@ export type StreamRunAgentSettings = {
|
|
|
1862
1862
|
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
1863
1863
|
*/
|
|
1864
1864
|
maxExecutionTime?: number | undefined;
|
|
1865
|
+
/**
|
|
1866
|
+
* Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
|
|
1867
|
+
*/
|
|
1868
|
+
maxCost?: number | undefined;
|
|
1865
1869
|
/**
|
|
1866
1870
|
* Configuration for an evaluator applied to the agent
|
|
1867
1871
|
*/
|
|
@@ -4099,7 +4103,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
4099
4103
|
z.ZodTypeDef,
|
|
4100
4104
|
AgentToolInputRunTools
|
|
4101
4105
|
> = z.object({
|
|
4102
|
-
id: z.string().default("
|
|
4106
|
+
id: z.string().default("01KHJN2CZ8071Z5BFCNVRT2BQ2"),
|
|
4103
4107
|
name: z.string(),
|
|
4104
4108
|
description: z.string().optional(),
|
|
4105
4109
|
schema: z.lazy(() =>
|
|
@@ -5296,6 +5300,7 @@ export type StreamRunAgentSettings$Outbound = {
|
|
|
5296
5300
|
tool_approval_required: string;
|
|
5297
5301
|
max_iterations: number;
|
|
5298
5302
|
max_execution_time: number;
|
|
5303
|
+
max_cost: number;
|
|
5299
5304
|
evaluators?: Array<StreamRunAgentEvaluators$Outbound> | undefined;
|
|
5300
5305
|
guardrails?: Array<StreamRunAgentGuardrails$Outbound> | undefined;
|
|
5301
5306
|
};
|
|
@@ -5352,6 +5357,7 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
|
|
|
5352
5357
|
.default("none"),
|
|
5353
5358
|
maxIterations: z.number().int().default(100),
|
|
5354
5359
|
maxExecutionTime: z.number().int().default(600),
|
|
5360
|
+
maxCost: z.number().default(0),
|
|
5355
5361
|
evaluators: z.array(z.lazy(() => StreamRunAgentEvaluators$outboundSchema))
|
|
5356
5362
|
.optional(),
|
|
5357
5363
|
guardrails: z.array(z.lazy(() => StreamRunAgentGuardrails$outboundSchema))
|
|
@@ -5361,6 +5367,7 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
|
|
|
5361
5367
|
toolApprovalRequired: "tool_approval_required",
|
|
5362
5368
|
maxIterations: "max_iterations",
|
|
5363
5369
|
maxExecutionTime: "max_execution_time",
|
|
5370
|
+
maxCost: "max_cost",
|
|
5364
5371
|
});
|
|
5365
5372
|
});
|
|
5366
5373
|
|
|
@@ -1039,6 +1039,20 @@ export type UpdateAgentToolApprovalRequired = ClosedEnum<
|
|
|
1039
1039
|
typeof UpdateAgentToolApprovalRequired
|
|
1040
1040
|
>;
|
|
1041
1041
|
|
|
1042
|
+
/**
|
|
1043
|
+
* Provider-specific built-in tools that are passed through to the provider. Must be prefixed with the provider name (e.g., openai:web_search, anthropic:web_search_20250305, google:google_search).
|
|
1044
|
+
*/
|
|
1045
|
+
export type AgentToolInputCRUDProviderBuiltInTool = {
|
|
1046
|
+
/**
|
|
1047
|
+
* Provider-prefixed tool type
|
|
1048
|
+
*/
|
|
1049
|
+
type: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* Whether this tool requires approval before execution
|
|
1052
|
+
*/
|
|
1053
|
+
requiresApproval?: boolean | undefined;
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1042
1056
|
/**
|
|
1043
1057
|
* MCP tool type
|
|
1044
1058
|
*/
|
|
@@ -1452,7 +1466,7 @@ export type AgentToolInputCRUDGoogleSearchTool = {
|
|
|
1452
1466
|
};
|
|
1453
1467
|
|
|
1454
1468
|
/**
|
|
1455
|
-
* Tool configuration for agent create/update operations. Built-in tools only require a type, while custom tools (HTTP, Code, Function, JSON Schema, MCP) must reference pre-created tools by key or id.
|
|
1469
|
+
* Tool configuration for agent create/update operations. Built-in tools only require a type, while custom tools (HTTP, Code, Function, JSON Schema, MCP) must reference pre-created tools by key or id. Provider-prefixed tools (e.g., openai:web_search) are passed through to the provider.
|
|
1456
1470
|
*/
|
|
1457
1471
|
export type UpdateAgentAgentToolInputCRUD =
|
|
1458
1472
|
| AgentToolInputCRUDGoogleSearchTool
|
|
@@ -1467,6 +1481,7 @@ export type UpdateAgentAgentToolInputCRUD =
|
|
|
1467
1481
|
| AgentToolInputCRUDQueryKnowledgeBaseTool
|
|
1468
1482
|
| AgentToolInputCRUDCurrentDateTool
|
|
1469
1483
|
| AgentToolInputCRUDMCPTool
|
|
1484
|
+
| AgentToolInputCRUDProviderBuiltInTool
|
|
1470
1485
|
| AgentToolInputCRUDHTTPTool
|
|
1471
1486
|
| AgentToolInputCRUDCodeExecutionTool
|
|
1472
1487
|
| AgentToolInputCRUDFunctionTool
|
|
@@ -1537,6 +1552,10 @@ export type UpdateAgentSettings = {
|
|
|
1537
1552
|
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
1538
1553
|
*/
|
|
1539
1554
|
maxExecutionTime?: number | undefined;
|
|
1555
|
+
/**
|
|
1556
|
+
* Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
|
|
1557
|
+
*/
|
|
1558
|
+
maxCost?: number | undefined;
|
|
1540
1559
|
/**
|
|
1541
1560
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1542
1561
|
*/
|
|
@@ -1558,6 +1577,7 @@ export type UpdateAgentSettings = {
|
|
|
1558
1577
|
| AgentToolInputCRUDQueryKnowledgeBaseTool
|
|
1559
1578
|
| AgentToolInputCRUDCurrentDateTool
|
|
1560
1579
|
| AgentToolInputCRUDMCPTool
|
|
1580
|
+
| AgentToolInputCRUDProviderBuiltInTool
|
|
1561
1581
|
| AgentToolInputCRUDHTTPTool
|
|
1562
1582
|
| AgentToolInputCRUDCodeExecutionTool
|
|
1563
1583
|
| AgentToolInputCRUDFunctionTool
|
|
@@ -1791,6 +1811,10 @@ export type UpdateAgentAgentsSettings = {
|
|
|
1791
1811
|
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
1792
1812
|
*/
|
|
1793
1813
|
maxExecutionTime: number;
|
|
1814
|
+
/**
|
|
1815
|
+
* Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
|
|
1816
|
+
*/
|
|
1817
|
+
maxCost: number;
|
|
1794
1818
|
/**
|
|
1795
1819
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1796
1820
|
*/
|
|
@@ -4579,6 +4603,36 @@ export const UpdateAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
|
|
|
4579
4603
|
typeof UpdateAgentToolApprovalRequired
|
|
4580
4604
|
> = z.nativeEnum(UpdateAgentToolApprovalRequired);
|
|
4581
4605
|
|
|
4606
|
+
/** @internal */
|
|
4607
|
+
export type AgentToolInputCRUDProviderBuiltInTool$Outbound = {
|
|
4608
|
+
type: string;
|
|
4609
|
+
requires_approval?: boolean | undefined;
|
|
4610
|
+
};
|
|
4611
|
+
|
|
4612
|
+
/** @internal */
|
|
4613
|
+
export const AgentToolInputCRUDProviderBuiltInTool$outboundSchema: z.ZodType<
|
|
4614
|
+
AgentToolInputCRUDProviderBuiltInTool$Outbound,
|
|
4615
|
+
z.ZodTypeDef,
|
|
4616
|
+
AgentToolInputCRUDProviderBuiltInTool
|
|
4617
|
+
> = z.object({
|
|
4618
|
+
type: z.string(),
|
|
4619
|
+
requiresApproval: z.boolean().optional(),
|
|
4620
|
+
}).transform((v) => {
|
|
4621
|
+
return remap$(v, {
|
|
4622
|
+
requiresApproval: "requires_approval",
|
|
4623
|
+
});
|
|
4624
|
+
});
|
|
4625
|
+
|
|
4626
|
+
export function agentToolInputCRUDProviderBuiltInToolToJSON(
|
|
4627
|
+
agentToolInputCRUDProviderBuiltInTool: AgentToolInputCRUDProviderBuiltInTool,
|
|
4628
|
+
): string {
|
|
4629
|
+
return JSON.stringify(
|
|
4630
|
+
AgentToolInputCRUDProviderBuiltInTool$outboundSchema.parse(
|
|
4631
|
+
agentToolInputCRUDProviderBuiltInTool,
|
|
4632
|
+
),
|
|
4633
|
+
);
|
|
4634
|
+
}
|
|
4635
|
+
|
|
4582
4636
|
/** @internal */
|
|
4583
4637
|
export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type$outboundSchema:
|
|
4584
4638
|
z.ZodNativeEnum<
|
|
@@ -5236,6 +5290,7 @@ export type UpdateAgentAgentToolInputCRUD$Outbound =
|
|
|
5236
5290
|
| AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound
|
|
5237
5291
|
| AgentToolInputCRUDCurrentDateTool$Outbound
|
|
5238
5292
|
| AgentToolInputCRUDMCPTool$Outbound
|
|
5293
|
+
| AgentToolInputCRUDProviderBuiltInTool$Outbound
|
|
5239
5294
|
| AgentToolInputCRUDHTTPTool$Outbound
|
|
5240
5295
|
| AgentToolInputCRUDCodeExecutionTool$Outbound
|
|
5241
5296
|
| AgentToolInputCRUDFunctionTool$Outbound
|
|
@@ -5259,6 +5314,7 @@ export const UpdateAgentAgentToolInputCRUD$outboundSchema: z.ZodType<
|
|
|
5259
5314
|
z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema),
|
|
5260
5315
|
z.lazy(() => AgentToolInputCRUDCurrentDateTool$outboundSchema),
|
|
5261
5316
|
z.lazy(() => AgentToolInputCRUDMCPTool$outboundSchema),
|
|
5317
|
+
z.lazy(() => AgentToolInputCRUDProviderBuiltInTool$outboundSchema),
|
|
5262
5318
|
z.lazy(() => AgentToolInputCRUDHTTPTool$outboundSchema),
|
|
5263
5319
|
z.lazy(() => AgentToolInputCRUDCodeExecutionTool$outboundSchema),
|
|
5264
5320
|
z.lazy(() => AgentToolInputCRUDFunctionTool$outboundSchema),
|
|
@@ -5351,6 +5407,7 @@ export function updateAgentGuardrailsToJSON(
|
|
|
5351
5407
|
export type UpdateAgentSettings$Outbound = {
|
|
5352
5408
|
max_iterations: number;
|
|
5353
5409
|
max_execution_time: number;
|
|
5410
|
+
max_cost: number;
|
|
5354
5411
|
tool_approval_required: string;
|
|
5355
5412
|
tools?:
|
|
5356
5413
|
| Array<
|
|
@@ -5366,6 +5423,7 @@ export type UpdateAgentSettings$Outbound = {
|
|
|
5366
5423
|
| AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound
|
|
5367
5424
|
| AgentToolInputCRUDCurrentDateTool$Outbound
|
|
5368
5425
|
| AgentToolInputCRUDMCPTool$Outbound
|
|
5426
|
+
| AgentToolInputCRUDProviderBuiltInTool$Outbound
|
|
5369
5427
|
| AgentToolInputCRUDHTTPTool$Outbound
|
|
5370
5428
|
| AgentToolInputCRUDCodeExecutionTool$Outbound
|
|
5371
5429
|
| AgentToolInputCRUDFunctionTool$Outbound
|
|
@@ -5384,6 +5442,7 @@ export const UpdateAgentSettings$outboundSchema: z.ZodType<
|
|
|
5384
5442
|
> = z.object({
|
|
5385
5443
|
maxIterations: z.number().int().default(100),
|
|
5386
5444
|
maxExecutionTime: z.number().int().default(600),
|
|
5445
|
+
maxCost: z.number().default(0),
|
|
5387
5446
|
toolApprovalRequired: UpdateAgentToolApprovalRequired$outboundSchema.default(
|
|
5388
5447
|
"respect_tool",
|
|
5389
5448
|
),
|
|
@@ -5401,6 +5460,7 @@ export const UpdateAgentSettings$outboundSchema: z.ZodType<
|
|
|
5401
5460
|
z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema),
|
|
5402
5461
|
z.lazy(() => AgentToolInputCRUDCurrentDateTool$outboundSchema),
|
|
5403
5462
|
z.lazy(() => AgentToolInputCRUDMCPTool$outboundSchema),
|
|
5463
|
+
z.lazy(() => AgentToolInputCRUDProviderBuiltInTool$outboundSchema),
|
|
5404
5464
|
z.lazy(() => AgentToolInputCRUDHTTPTool$outboundSchema),
|
|
5405
5465
|
z.lazy(() => AgentToolInputCRUDCodeExecutionTool$outboundSchema),
|
|
5406
5466
|
z.lazy(() => AgentToolInputCRUDFunctionTool$outboundSchema),
|
|
@@ -5415,6 +5475,7 @@ export const UpdateAgentSettings$outboundSchema: z.ZodType<
|
|
|
5415
5475
|
return remap$(v, {
|
|
5416
5476
|
maxIterations: "max_iterations",
|
|
5417
5477
|
maxExecutionTime: "max_execution_time",
|
|
5478
|
+
maxCost: "max_cost",
|
|
5418
5479
|
toolApprovalRequired: "tool_approval_required",
|
|
5419
5480
|
});
|
|
5420
5481
|
});
|
|
@@ -5719,6 +5780,7 @@ export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
|
|
|
5719
5780
|
> = z.object({
|
|
5720
5781
|
max_iterations: z.number().int().default(100),
|
|
5721
5782
|
max_execution_time: z.number().int().default(600),
|
|
5783
|
+
max_cost: z.number().default(0),
|
|
5722
5784
|
tool_approval_required: UpdateAgentAgentsToolApprovalRequired$inboundSchema
|
|
5723
5785
|
.default("respect_tool"),
|
|
5724
5786
|
tools: z.array(z.lazy(() => UpdateAgentTools$inboundSchema)).optional(),
|
|
@@ -5730,6 +5792,7 @@ export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
|
|
|
5730
5792
|
return remap$(v, {
|
|
5731
5793
|
"max_iterations": "maxIterations",
|
|
5732
5794
|
"max_execution_time": "maxExecutionTime",
|
|
5795
|
+
"max_cost": "maxCost",
|
|
5733
5796
|
"tool_approval_required": "toolApprovalRequired",
|
|
5734
5797
|
});
|
|
5735
5798
|
});
|
|
@@ -226,7 +226,7 @@ export const UpdateConversationResponseBody$inboundSchema: z.ZodType<
|
|
|
226
226
|
z.ZodTypeDef,
|
|
227
227
|
unknown
|
|
228
228
|
> = z.object({
|
|
229
|
-
_id: z.string().default("
|
|
229
|
+
_id: z.string().default("conv_01khjn2d1kgpmhddczrhak2mas"),
|
|
230
230
|
kind: UpdateConversationKind$inboundSchema,
|
|
231
231
|
displayName: z.string(),
|
|
232
232
|
createdAt: z.number(),
|
|
@@ -2358,7 +2358,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2358
2358
|
.default("orq"),
|
|
2359
2359
|
reviewed_by_id: z.string(),
|
|
2360
2360
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2361
|
-
"2026-
|
|
2361
|
+
"2026-02-16T07:19:07.225Z",
|
|
2362
2362
|
).transform(v => new Date(v)),
|
|
2363
2363
|
type: z.literal("string_array"),
|
|
2364
2364
|
values: z.array(z.string()),
|
|
@@ -2404,7 +2404,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2404
2404
|
source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
2405
2405
|
reviewed_by_id: z.string(),
|
|
2406
2406
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2407
|
-
"2026-
|
|
2407
|
+
"2026-02-16T07:19:07.224Z",
|
|
2408
2408
|
).transform(v => new Date(v)),
|
|
2409
2409
|
type: z.literal("number"),
|
|
2410
2410
|
value: z.number(),
|
|
@@ -2449,7 +2449,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2449
2449
|
source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2450
2450
|
reviewed_by_id: z.string(),
|
|
2451
2451
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2452
|
-
"2026-
|
|
2452
|
+
"2026-02-16T07:19:07.223Z",
|
|
2453
2453
|
).transform(v => new Date(v)),
|
|
2454
2454
|
type: z.literal("string"),
|
|
2455
2455
|
value: z.string(),
|
|
@@ -2530,7 +2530,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2530
2530
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2531
2531
|
.optional(),
|
|
2532
2532
|
updated: z.string().datetime({ offset: true }).default(
|
|
2533
|
-
"2026-
|
|
2533
|
+
"2026-02-16T07:18:52.260Z",
|
|
2534
2534
|
).transform(v => new Date(v)),
|
|
2535
2535
|
}).transform((v) => {
|
|
2536
2536
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-
|
|
185
|
+
"2026-02-16T07:18:52.260Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
152
152
|
z.ZodTypeDef,
|
|
153
153
|
unknown
|
|
154
154
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
155
|
+
_id: z.string().default("01KHJN2DJ4NSFF3DRBVNVW4AJK"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.string().optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|