@orq-ai/node 4.12.0-rc.2 → 4.12.0-rc.5
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 +45 -41
- package/funcs/agentsResponsesCreate.d.ts +2 -0
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +2 -0
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/agentsResponsesGet.d.ts +2 -0
- package/funcs/agentsResponsesGet.d.ts.map +1 -1
- package/funcs/agentsResponsesGet.js +2 -0
- package/funcs/agentsResponsesGet.js.map +1 -1
- package/funcs/modelsImportLitellm.d.ts +17 -0
- package/funcs/modelsImportLitellm.d.ts.map +1 -0
- package/funcs/modelsImportLitellm.js +118 -0
- package/funcs/modelsImportLitellm.js.map +1 -0
- package/funcs/modelsListLitellm.d.ts +18 -0
- package/funcs/modelsListLitellm.d.ts.map +1 -0
- package/funcs/modelsListLitellm.js +105 -0
- package/funcs/modelsListLitellm.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/agentstartedstreamingevent.d.ts +4 -0
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +2 -0
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/filepurpose.d.ts +1 -0
- package/models/components/filepurpose.d.ts.map +1 -1
- package/models/components/filepurpose.js +1 -0
- package/models/components/filepurpose.js.map +1 -1
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/litellmmodel.d.ts +18 -0
- package/models/components/litellmmodel.d.ts.map +1 -0
- package/models/components/litellmmodel.js +60 -0
- package/models/components/litellmmodel.js.map +1 -0
- package/models/components/litellmmodelinfo.d.ts +44 -0
- package/models/components/litellmmodelinfo.d.ts.map +1 -0
- package/models/components/litellmmodelinfo.js +83 -0
- package/models/components/litellmmodelinfo.js.map +1 -0
- package/models/components/litellmparams.d.ts +18 -0
- package/models/components/litellmparams.d.ts.map +1 -0
- package/models/components/litellmparams.js +59 -0
- package/models/components/litellmparams.js.map +1 -0
- package/models/components/modeldocument.d.ts +39 -0
- package/models/components/modeldocument.d.ts.map +1 -0
- package/models/components/modeldocument.js +99 -0
- package/models/components/modeldocument.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +66 -24
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +46 -21
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.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/createrouterresponse.d.ts +71 -0
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +39 -2
- package/models/operations/createrouterresponse.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 +1 -0
- 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/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- 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/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/invokeeval.d.ts +1 -1
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +1 -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/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- 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/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +52 -20
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +34 -16
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +52 -20
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +34 -16
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +66 -24
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +46 -21
- package/models/operations/updateagent.js.map +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/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/sdk/feedback.d.ts +1 -4
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +1 -4
- package/sdk/feedback.js.map +1 -1
- package/sdk/models.d.ts +17 -0
- package/sdk/models.d.ts.map +1 -1
- package/sdk/models.js +20 -0
- package/sdk/models.js.map +1 -1
- package/sdk/orqresponses.d.ts +4 -0
- package/sdk/orqresponses.d.ts.map +1 -1
- package/sdk/orqresponses.js +4 -0
- package/sdk/orqresponses.js.map +1 -1
- package/src/funcs/agentsResponsesCreate.ts +2 -0
- package/src/funcs/agentsResponsesGet.ts +2 -0
- package/src/funcs/modelsImportLitellm.ts +166 -0
- package/src/funcs/modelsListLitellm.ts +144 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/agentstartedstreamingevent.ts +6 -0
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/filepurpose.ts +1 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/litellmmodel.ts +50 -0
- package/src/models/components/litellmmodelinfo.ts +97 -0
- package/src/models/components/litellmparams.ts +43 -0
- package/src/models/components/modeldocument.ts +112 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +123 -40
- 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/createprompt.ts +1 -0
- package/src/models/operations/createrouterresponse.ts +108 -0
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentinvoke.ts +1 -0
- package/src/models/operations/deployments.ts +1 -0
- package/src/models/operations/deploymentstream.ts +1 -0
- package/src/models/operations/getallprompts.ts +1 -0
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/invokeeval.ts +2 -2
- package/src/models/operations/listagents.ts +6 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listpromptversions.ts +1 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- 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/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +93 -33
- package/src/models/operations/streamrunagent.ts +99 -33
- package/src/models/operations/updateagent.ts +125 -40
- 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/updateprompt.ts +1 -0
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +1 -4
- package/src/sdk/models.ts +35 -0
- package/src/sdk/orqresponses.ts +4 -0
|
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
753
753
|
z.ZodTypeDef,
|
|
754
754
|
unknown
|
|
755
755
|
> = z.object({
|
|
756
|
-
_id: z.string().default("
|
|
756
|
+
_id: z.string().default("tool_01KWYNGDD73EKFW7C17C0D32DQ"),
|
|
757
757
|
path: z.string(),
|
|
758
758
|
key: z.string(),
|
|
759
759
|
display_name: z.string().optional(),
|
|
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
859
859
|
z.ZodTypeDef,
|
|
860
860
|
unknown
|
|
861
861
|
> = z.object({
|
|
862
|
-
id: z.string().default("
|
|
862
|
+
id: z.string().default("01KWYNGDD68FBMM2AE7F4QCT56"),
|
|
863
863
|
name: z.string(),
|
|
864
864
|
description: z.string().optional(),
|
|
865
865
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KWYNGDD59YPDYT80N9EG8GYR"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1108
1108
|
z.ZodTypeDef,
|
|
1109
1109
|
unknown
|
|
1110
1110
|
> = z.object({
|
|
1111
|
-
_id: z.string().default("
|
|
1111
|
+
_id: z.string().default("tool_01KWYNGDD3F7SV37Z6EWT6X76W"),
|
|
1112
1112
|
path: z.string(),
|
|
1113
1113
|
key: z.string(),
|
|
1114
1114
|
display_name: z.string().optional(),
|
|
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1204
1204
|
z.ZodTypeDef,
|
|
1205
1205
|
unknown
|
|
1206
1206
|
> = z.object({
|
|
1207
|
-
_id: z.string().default("
|
|
1207
|
+
_id: z.string().default("tool_01KWYNGDD1PX5Q41KXCRPJX15V"),
|
|
1208
1208
|
path: z.string(),
|
|
1209
1209
|
key: z.string(),
|
|
1210
1210
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1310
|
z.ZodTypeDef,
|
|
1311
1311
|
unknown
|
|
1312
1312
|
> = z.object({
|
|
1313
|
-
_id: z.string().default("
|
|
1313
|
+
_id: z.string().default("tool_01KWYNGDCZCNKEVQRJT3KRV8KJ"),
|
|
1314
1314
|
path: z.string(),
|
|
1315
1315
|
key: z.string(),
|
|
1316
1316
|
display_name: z.string().optional(),
|
|
@@ -1165,17 +1165,17 @@ export type AgentToolInputRunHeaders = {
|
|
|
1165
1165
|
encrypted?: boolean | undefined;
|
|
1166
1166
|
};
|
|
1167
1167
|
|
|
1168
|
-
export const
|
|
1168
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17McpType =
|
|
1169
1169
|
{
|
|
1170
1170
|
Object: "object",
|
|
1171
1171
|
} as const;
|
|
1172
|
-
export type
|
|
1172
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17McpType =
|
|
1173
1173
|
ClosedEnum<
|
|
1174
|
-
typeof
|
|
1174
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17McpType
|
|
1175
1175
|
>;
|
|
1176
1176
|
|
|
1177
1177
|
export type AgentToolInputRunSchema = {
|
|
1178
|
-
type:
|
|
1178
|
+
type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17McpType;
|
|
1179
1179
|
properties?: { [k: string]: any } | undefined;
|
|
1180
1180
|
required?: Array<string> | undefined;
|
|
1181
1181
|
};
|
|
@@ -1297,16 +1297,16 @@ export type JSONSchemaToolRun = {
|
|
|
1297
1297
|
/**
|
|
1298
1298
|
* The type must be "object"
|
|
1299
1299
|
*/
|
|
1300
|
-
export const
|
|
1300
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15FunctionType =
|
|
1301
1301
|
{
|
|
1302
1302
|
Object: "object",
|
|
1303
1303
|
} as const;
|
|
1304
1304
|
/**
|
|
1305
1305
|
* The type must be "object"
|
|
1306
1306
|
*/
|
|
1307
|
-
export type
|
|
1307
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15FunctionType =
|
|
1308
1308
|
ClosedEnum<
|
|
1309
|
-
typeof
|
|
1309
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15FunctionType
|
|
1310
1310
|
>;
|
|
1311
1311
|
|
|
1312
1312
|
/**
|
|
@@ -1317,7 +1317,7 @@ export type RunAgentAgentToolInputRunParameters = {
|
|
|
1317
1317
|
* The type must be "object"
|
|
1318
1318
|
*/
|
|
1319
1319
|
type:
|
|
1320
|
-
|
|
1320
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15FunctionType;
|
|
1321
1321
|
/**
|
|
1322
1322
|
* The properties of the function parameters
|
|
1323
1323
|
*/
|
|
@@ -1367,16 +1367,16 @@ export type FunctionToolRun = {
|
|
|
1367
1367
|
/**
|
|
1368
1368
|
* The type must be "object"
|
|
1369
1369
|
*/
|
|
1370
|
-
export const
|
|
1370
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14CodeToolType =
|
|
1371
1371
|
{
|
|
1372
1372
|
Object: "object",
|
|
1373
1373
|
} as const;
|
|
1374
1374
|
/**
|
|
1375
1375
|
* The type must be "object"
|
|
1376
1376
|
*/
|
|
1377
|
-
export type
|
|
1377
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14CodeToolType =
|
|
1378
1378
|
ClosedEnum<
|
|
1379
|
-
typeof
|
|
1379
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14CodeToolType
|
|
1380
1380
|
>;
|
|
1381
1381
|
|
|
1382
1382
|
/**
|
|
@@ -1387,7 +1387,7 @@ export type AgentToolInputRunParameters = {
|
|
|
1387
1387
|
* The type must be "object"
|
|
1388
1388
|
*/
|
|
1389
1389
|
type:
|
|
1390
|
-
|
|
1390
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14CodeToolType;
|
|
1391
1391
|
/**
|
|
1392
1392
|
* The properties of the function parameters
|
|
1393
1393
|
*/
|
|
@@ -1481,7 +1481,7 @@ export type Blueprint = {
|
|
|
1481
1481
|
/**
|
|
1482
1482
|
* The type of the argument.
|
|
1483
1483
|
*/
|
|
1484
|
-
export const
|
|
1484
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13HttpType =
|
|
1485
1485
|
{
|
|
1486
1486
|
String: "string",
|
|
1487
1487
|
Number: "number",
|
|
@@ -1490,9 +1490,9 @@ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Htt
|
|
|
1490
1490
|
/**
|
|
1491
1491
|
* The type of the argument.
|
|
1492
1492
|
*/
|
|
1493
|
-
export type
|
|
1493
|
+
export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13HttpType =
|
|
1494
1494
|
ClosedEnum<
|
|
1495
|
-
typeof
|
|
1495
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13HttpType
|
|
1496
1496
|
>;
|
|
1497
1497
|
|
|
1498
1498
|
/**
|
|
@@ -1505,7 +1505,7 @@ export type Arguments = {
|
|
|
1505
1505
|
* The type of the argument.
|
|
1506
1506
|
*/
|
|
1507
1507
|
type:
|
|
1508
|
-
|
|
1508
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13HttpType;
|
|
1509
1509
|
/**
|
|
1510
1510
|
* A description of the argument.
|
|
1511
1511
|
*/
|
|
@@ -1550,6 +1550,21 @@ export type HTTPToolRun = {
|
|
|
1550
1550
|
requiresApproval?: boolean | undefined;
|
|
1551
1551
|
};
|
|
1552
1552
|
|
|
1553
|
+
/**
|
|
1554
|
+
* Executes model-written Python code. Uses provider-native code execution when the model supports it, otherwise a secure orq-managed sandbox.
|
|
1555
|
+
*/
|
|
1556
|
+
export type AgentToolInputRunCodeInterpreterTool = {
|
|
1557
|
+
type: "code_interpreter";
|
|
1558
|
+
/**
|
|
1559
|
+
* Whether this tool requires approval before execution
|
|
1560
|
+
*/
|
|
1561
|
+
requiresApproval?: boolean | undefined;
|
|
1562
|
+
/**
|
|
1563
|
+
* Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
|
|
1564
|
+
*/
|
|
1565
|
+
configuration?: { [k: string]: any } | undefined;
|
|
1566
|
+
};
|
|
1567
|
+
|
|
1553
1568
|
/**
|
|
1554
1569
|
* Returns the current date and time
|
|
1555
1570
|
*/
|
|
@@ -1730,6 +1745,7 @@ export type AgentToolInputRun =
|
|
|
1730
1745
|
| AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
1731
1746
|
| AgentToolInputRunQueryKnowledgeBaseTool
|
|
1732
1747
|
| AgentToolInputRunCurrentDateTool
|
|
1748
|
+
| AgentToolInputRunCodeInterpreterTool
|
|
1733
1749
|
| HTTPToolRun
|
|
1734
1750
|
| CodeToolRun
|
|
1735
1751
|
| FunctionToolRun
|
|
@@ -1824,6 +1840,7 @@ export type RunAgentSettings = {
|
|
|
1824
1840
|
| AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
1825
1841
|
| AgentToolInputRunQueryKnowledgeBaseTool
|
|
1826
1842
|
| AgentToolInputRunCurrentDateTool
|
|
1843
|
+
| AgentToolInputRunCodeInterpreterTool
|
|
1827
1844
|
| HTTPToolRun
|
|
1828
1845
|
| CodeToolRun
|
|
1829
1846
|
| FunctionToolRun
|
|
@@ -1847,6 +1864,10 @@ export type RunAgentSettings = {
|
|
|
1847
1864
|
* 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
|
|
1848
1865
|
*/
|
|
1849
1866
|
maxCost?: number | undefined;
|
|
1867
|
+
/**
|
|
1868
|
+
* When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
|
|
1869
|
+
*/
|
|
1870
|
+
chatExposed?: boolean | undefined;
|
|
1850
1871
|
/**
|
|
1851
1872
|
* Configuration for an evaluator applied to the agent
|
|
1852
1873
|
*/
|
|
@@ -3971,11 +3992,11 @@ export function agentToolInputRunHeadersToJSON(
|
|
|
3971
3992
|
}
|
|
3972
3993
|
|
|
3973
3994
|
/** @internal */
|
|
3974
|
-
export const
|
|
3995
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17McpType$outboundSchema:
|
|
3975
3996
|
z.ZodNativeEnum<
|
|
3976
|
-
typeof
|
|
3997
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17McpType
|
|
3977
3998
|
> = z.nativeEnum(
|
|
3978
|
-
|
|
3999
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17McpType,
|
|
3979
4000
|
);
|
|
3980
4001
|
|
|
3981
4002
|
/** @internal */
|
|
@@ -3992,7 +4013,7 @@ export const AgentToolInputRunSchema$outboundSchema: z.ZodType<
|
|
|
3992
4013
|
AgentToolInputRunSchema
|
|
3993
4014
|
> = z.object({
|
|
3994
4015
|
type:
|
|
3995
|
-
|
|
4016
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17McpType$outboundSchema,
|
|
3996
4017
|
properties: z.record(z.any()).optional(),
|
|
3997
4018
|
required: z.array(z.string()).optional(),
|
|
3998
4019
|
});
|
|
@@ -4019,7 +4040,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4019
4040
|
z.ZodTypeDef,
|
|
4020
4041
|
Tools
|
|
4021
4042
|
> = z.object({
|
|
4022
|
-
id: z.string().default("
|
|
4043
|
+
id: z.string().default("01KWYNGD3BY7SPDBQFG818X1DT"),
|
|
4023
4044
|
name: z.string(),
|
|
4024
4045
|
description: z.string().optional(),
|
|
4025
4046
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -4200,11 +4221,11 @@ export function jsonSchemaToolRunToJSON(
|
|
|
4200
4221
|
}
|
|
4201
4222
|
|
|
4202
4223
|
/** @internal */
|
|
4203
|
-
export const
|
|
4224
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15FunctionType$outboundSchema:
|
|
4204
4225
|
z.ZodNativeEnum<
|
|
4205
|
-
typeof
|
|
4226
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15FunctionType
|
|
4206
4227
|
> = z.nativeEnum(
|
|
4207
|
-
|
|
4228
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15FunctionType,
|
|
4208
4229
|
);
|
|
4209
4230
|
|
|
4210
4231
|
/** @internal */
|
|
@@ -4222,7 +4243,7 @@ export const RunAgentAgentToolInputRunParameters$outboundSchema: z.ZodType<
|
|
|
4222
4243
|
RunAgentAgentToolInputRunParameters
|
|
4223
4244
|
> = z.object({
|
|
4224
4245
|
type:
|
|
4225
|
-
|
|
4246
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15FunctionType$outboundSchema,
|
|
4226
4247
|
properties: z.record(z.any()),
|
|
4227
4248
|
required: z.array(z.string()),
|
|
4228
4249
|
additionalProperties: z.record(z.any()).optional(),
|
|
@@ -4313,11 +4334,11 @@ export function functionToolRunToJSON(
|
|
|
4313
4334
|
}
|
|
4314
4335
|
|
|
4315
4336
|
/** @internal */
|
|
4316
|
-
export const
|
|
4337
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14CodeToolType$outboundSchema:
|
|
4317
4338
|
z.ZodNativeEnum<
|
|
4318
|
-
typeof
|
|
4339
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14CodeToolType
|
|
4319
4340
|
> = z.nativeEnum(
|
|
4320
|
-
|
|
4341
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14CodeToolType,
|
|
4321
4342
|
);
|
|
4322
4343
|
|
|
4323
4344
|
/** @internal */
|
|
@@ -4335,7 +4356,7 @@ export const AgentToolInputRunParameters$outboundSchema: z.ZodType<
|
|
|
4335
4356
|
AgentToolInputRunParameters
|
|
4336
4357
|
> = z.object({
|
|
4337
4358
|
type:
|
|
4338
|
-
|
|
4359
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14CodeToolType$outboundSchema,
|
|
4339
4360
|
properties: z.record(z.any()),
|
|
4340
4361
|
required: z.array(z.string()),
|
|
4341
4362
|
additionalProperties: z.record(z.any()).optional(),
|
|
@@ -4487,11 +4508,11 @@ export function blueprintToJSON(blueprint: Blueprint): string {
|
|
|
4487
4508
|
}
|
|
4488
4509
|
|
|
4489
4510
|
/** @internal */
|
|
4490
|
-
export const
|
|
4511
|
+
export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13HttpType$outboundSchema:
|
|
4491
4512
|
z.ZodNativeEnum<
|
|
4492
|
-
typeof
|
|
4513
|
+
typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13HttpType
|
|
4493
4514
|
> = z.nativeEnum(
|
|
4494
|
-
|
|
4515
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13HttpType,
|
|
4495
4516
|
);
|
|
4496
4517
|
|
|
4497
4518
|
/** @internal */
|
|
@@ -4523,7 +4544,7 @@ export const Arguments$outboundSchema: z.ZodType<
|
|
|
4523
4544
|
Arguments
|
|
4524
4545
|
> = z.object({
|
|
4525
4546
|
type:
|
|
4526
|
-
|
|
4547
|
+
RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13HttpType$outboundSchema,
|
|
4527
4548
|
description: z.string(),
|
|
4528
4549
|
sendToModel: z.boolean().default(true),
|
|
4529
4550
|
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -4591,6 +4612,38 @@ export function httpToolRunToJSON(httpToolRun: HTTPToolRun): string {
|
|
|
4591
4612
|
return JSON.stringify(HTTPToolRun$outboundSchema.parse(httpToolRun));
|
|
4592
4613
|
}
|
|
4593
4614
|
|
|
4615
|
+
/** @internal */
|
|
4616
|
+
export type AgentToolInputRunCodeInterpreterTool$Outbound = {
|
|
4617
|
+
type: "code_interpreter";
|
|
4618
|
+
requires_approval?: boolean | undefined;
|
|
4619
|
+
configuration?: { [k: string]: any } | undefined;
|
|
4620
|
+
};
|
|
4621
|
+
|
|
4622
|
+
/** @internal */
|
|
4623
|
+
export const AgentToolInputRunCodeInterpreterTool$outboundSchema: z.ZodType<
|
|
4624
|
+
AgentToolInputRunCodeInterpreterTool$Outbound,
|
|
4625
|
+
z.ZodTypeDef,
|
|
4626
|
+
AgentToolInputRunCodeInterpreterTool
|
|
4627
|
+
> = z.object({
|
|
4628
|
+
type: z.literal("code_interpreter"),
|
|
4629
|
+
requiresApproval: z.boolean().optional(),
|
|
4630
|
+
configuration: z.record(z.any()).optional(),
|
|
4631
|
+
}).transform((v) => {
|
|
4632
|
+
return remap$(v, {
|
|
4633
|
+
requiresApproval: "requires_approval",
|
|
4634
|
+
});
|
|
4635
|
+
});
|
|
4636
|
+
|
|
4637
|
+
export function agentToolInputRunCodeInterpreterToolToJSON(
|
|
4638
|
+
agentToolInputRunCodeInterpreterTool: AgentToolInputRunCodeInterpreterTool,
|
|
4639
|
+
): string {
|
|
4640
|
+
return JSON.stringify(
|
|
4641
|
+
AgentToolInputRunCodeInterpreterTool$outboundSchema.parse(
|
|
4642
|
+
agentToolInputRunCodeInterpreterTool,
|
|
4643
|
+
),
|
|
4644
|
+
);
|
|
4645
|
+
}
|
|
4646
|
+
|
|
4594
4647
|
/** @internal */
|
|
4595
4648
|
export type AgentToolInputRunCurrentDateTool$Outbound = {
|
|
4596
4649
|
type: "current_date";
|
|
@@ -4963,6 +5016,7 @@ export type AgentToolInputRun$Outbound =
|
|
|
4963
5016
|
| AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
4964
5017
|
| AgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
4965
5018
|
| AgentToolInputRunCurrentDateTool$Outbound
|
|
5019
|
+
| AgentToolInputRunCodeInterpreterTool$Outbound
|
|
4966
5020
|
| HTTPToolRun$Outbound
|
|
4967
5021
|
| CodeToolRun$Outbound
|
|
4968
5022
|
| FunctionToolRun$Outbound
|
|
@@ -4986,6 +5040,7 @@ export const AgentToolInputRun$outboundSchema: z.ZodType<
|
|
|
4986
5040
|
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
4987
5041
|
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
4988
5042
|
z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
5043
|
+
z.lazy(() => AgentToolInputRunCodeInterpreterTool$outboundSchema),
|
|
4989
5044
|
z.lazy(() => HTTPToolRun$outboundSchema),
|
|
4990
5045
|
z.lazy(() => CodeToolRun$outboundSchema),
|
|
4991
5046
|
z.lazy(() => FunctionToolRun$outboundSchema),
|
|
@@ -5093,6 +5148,7 @@ export type RunAgentSettings$Outbound = {
|
|
|
5093
5148
|
| AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
5094
5149
|
| AgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
5095
5150
|
| AgentToolInputRunCurrentDateTool$Outbound
|
|
5151
|
+
| AgentToolInputRunCodeInterpreterTool$Outbound
|
|
5096
5152
|
| HTTPToolRun$Outbound
|
|
5097
5153
|
| CodeToolRun$Outbound
|
|
5098
5154
|
| FunctionToolRun$Outbound
|
|
@@ -5104,6 +5160,7 @@ export type RunAgentSettings$Outbound = {
|
|
|
5104
5160
|
max_iterations: number;
|
|
5105
5161
|
max_execution_time: number;
|
|
5106
5162
|
max_cost: number;
|
|
5163
|
+
chat_exposed?: boolean | undefined;
|
|
5107
5164
|
evaluators?: Array<RunAgentEvaluators$Outbound> | undefined;
|
|
5108
5165
|
guardrails?: Array<RunAgentGuardrails$Outbound> | undefined;
|
|
5109
5166
|
};
|
|
@@ -5127,6 +5184,7 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
|
5127
5184
|
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
5128
5185
|
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
5129
5186
|
z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
5187
|
+
z.lazy(() => AgentToolInputRunCodeInterpreterTool$outboundSchema),
|
|
5130
5188
|
z.lazy(() => HTTPToolRun$outboundSchema),
|
|
5131
5189
|
z.lazy(() => CodeToolRun$outboundSchema),
|
|
5132
5190
|
z.lazy(() => FunctionToolRun$outboundSchema),
|
|
@@ -5140,6 +5198,7 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
|
5140
5198
|
maxIterations: z.number().int().default(100),
|
|
5141
5199
|
maxExecutionTime: z.number().int().default(600),
|
|
5142
5200
|
maxCost: z.number().default(0),
|
|
5201
|
+
chatExposed: z.boolean().optional(),
|
|
5143
5202
|
evaluators: z.array(z.lazy(() => RunAgentEvaluators$outboundSchema))
|
|
5144
5203
|
.optional(),
|
|
5145
5204
|
guardrails: z.array(z.lazy(() => RunAgentGuardrails$outboundSchema))
|
|
@@ -5150,6 +5209,7 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
|
5150
5209
|
maxIterations: "max_iterations",
|
|
5151
5210
|
maxExecutionTime: "max_execution_time",
|
|
5152
5211
|
maxCost: "max_cost",
|
|
5212
|
+
chatExposed: "chat_exposed",
|
|
5153
5213
|
});
|
|
5154
5214
|
});
|
|
5155
5215
|
|