@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
|
@@ -999,16 +999,16 @@ export type ProviderBuiltInTool = {
|
|
|
999
999
|
/**
|
|
1000
1000
|
* MCP tool type
|
|
1001
1001
|
*/
|
|
1002
|
-
export const
|
|
1002
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type =
|
|
1003
1003
|
{
|
|
1004
1004
|
Mcp: "mcp",
|
|
1005
1005
|
} as const;
|
|
1006
1006
|
/**
|
|
1007
1007
|
* MCP tool type
|
|
1008
1008
|
*/
|
|
1009
|
-
export type
|
|
1009
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type =
|
|
1010
1010
|
ClosedEnum<
|
|
1011
|
-
typeof
|
|
1011
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type
|
|
1012
1012
|
>;
|
|
1013
1013
|
|
|
1014
1014
|
/**
|
|
@@ -1019,7 +1019,7 @@ export type MCPTool = {
|
|
|
1019
1019
|
* MCP tool type
|
|
1020
1020
|
*/
|
|
1021
1021
|
type?:
|
|
1022
|
-
|
|
|
1022
|
+
| CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type
|
|
1023
1023
|
| undefined;
|
|
1024
1024
|
/**
|
|
1025
1025
|
* The key of the parent MCP tool
|
|
@@ -1042,16 +1042,16 @@ export type MCPTool = {
|
|
|
1042
1042
|
/**
|
|
1043
1043
|
* JSON Schema tool type
|
|
1044
1044
|
*/
|
|
1045
|
-
export const
|
|
1045
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type =
|
|
1046
1046
|
{
|
|
1047
1047
|
JsonSchema: "json_schema",
|
|
1048
1048
|
} as const;
|
|
1049
1049
|
/**
|
|
1050
1050
|
* JSON Schema tool type
|
|
1051
1051
|
*/
|
|
1052
|
-
export type
|
|
1052
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type =
|
|
1053
1053
|
ClosedEnum<
|
|
1054
|
-
typeof
|
|
1054
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type
|
|
1055
1055
|
>;
|
|
1056
1056
|
|
|
1057
1057
|
/**
|
|
@@ -1062,7 +1062,7 @@ export type JSONSchemaTool = {
|
|
|
1062
1062
|
* JSON Schema tool type
|
|
1063
1063
|
*/
|
|
1064
1064
|
type?:
|
|
1065
|
-
|
|
|
1065
|
+
| CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type
|
|
1066
1066
|
| undefined;
|
|
1067
1067
|
/**
|
|
1068
1068
|
* The key of the pre-created JSON Schema tool
|
|
@@ -1081,16 +1081,16 @@ export type JSONSchemaTool = {
|
|
|
1081
1081
|
/**
|
|
1082
1082
|
* Function tool type
|
|
1083
1083
|
*/
|
|
1084
|
-
export const
|
|
1084
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type =
|
|
1085
1085
|
{
|
|
1086
1086
|
Function: "function",
|
|
1087
1087
|
} as const;
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Function tool type
|
|
1090
1090
|
*/
|
|
1091
|
-
export type
|
|
1091
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type =
|
|
1092
1092
|
ClosedEnum<
|
|
1093
|
-
typeof
|
|
1093
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
|
|
1094
1094
|
>;
|
|
1095
1095
|
|
|
1096
1096
|
/**
|
|
@@ -1101,7 +1101,7 @@ export type FunctionTool = {
|
|
|
1101
1101
|
* Function tool type
|
|
1102
1102
|
*/
|
|
1103
1103
|
type?:
|
|
1104
|
-
|
|
|
1104
|
+
| CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
|
|
1105
1105
|
| undefined;
|
|
1106
1106
|
/**
|
|
1107
1107
|
* The key of the pre-created function tool
|
|
@@ -1120,16 +1120,16 @@ export type FunctionTool = {
|
|
|
1120
1120
|
/**
|
|
1121
1121
|
* Code execution tool type
|
|
1122
1122
|
*/
|
|
1123
|
-
export const
|
|
1123
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
|
|
1124
1124
|
{
|
|
1125
1125
|
Code: "code",
|
|
1126
1126
|
} as const;
|
|
1127
1127
|
/**
|
|
1128
1128
|
* Code execution tool type
|
|
1129
1129
|
*/
|
|
1130
|
-
export type
|
|
1130
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
|
|
1131
1131
|
ClosedEnum<
|
|
1132
|
-
typeof
|
|
1132
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
|
|
1133
1133
|
>;
|
|
1134
1134
|
|
|
1135
1135
|
/**
|
|
@@ -1140,7 +1140,7 @@ export type CodeExecutionTool = {
|
|
|
1140
1140
|
* Code execution tool type
|
|
1141
1141
|
*/
|
|
1142
1142
|
type?:
|
|
1143
|
-
|
|
|
1143
|
+
| CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
|
|
1144
1144
|
| undefined;
|
|
1145
1145
|
/**
|
|
1146
1146
|
* The key of the pre-created code tool
|
|
@@ -1159,16 +1159,16 @@ export type CodeExecutionTool = {
|
|
|
1159
1159
|
/**
|
|
1160
1160
|
* HTTP tool type
|
|
1161
1161
|
*/
|
|
1162
|
-
export const
|
|
1162
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
|
|
1163
1163
|
{
|
|
1164
1164
|
Http: "http",
|
|
1165
1165
|
} as const;
|
|
1166
1166
|
/**
|
|
1167
1167
|
* HTTP tool type
|
|
1168
1168
|
*/
|
|
1169
|
-
export type
|
|
1169
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
|
|
1170
1170
|
ClosedEnum<
|
|
1171
|
-
typeof
|
|
1171
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
|
|
1172
1172
|
>;
|
|
1173
1173
|
|
|
1174
1174
|
/**
|
|
@@ -1179,7 +1179,7 @@ export type HTTPTool = {
|
|
|
1179
1179
|
* HTTP tool type
|
|
1180
1180
|
*/
|
|
1181
1181
|
type?:
|
|
1182
|
-
|
|
|
1182
|
+
| CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
|
|
1183
1183
|
| undefined;
|
|
1184
1184
|
/**
|
|
1185
1185
|
* The key of the pre-created HTTP tool
|
|
@@ -1195,6 +1195,31 @@ export type HTTPTool = {
|
|
|
1195
1195
|
requiresApproval?: boolean | undefined;
|
|
1196
1196
|
};
|
|
1197
1197
|
|
|
1198
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
|
|
1199
|
+
{
|
|
1200
|
+
CodeInterpreter: "code_interpreter",
|
|
1201
|
+
} as const;
|
|
1202
|
+
export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
|
|
1203
|
+
ClosedEnum<
|
|
1204
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
|
|
1205
|
+
>;
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Executes model-written Python code. Uses provider-native code execution when the model supports it, otherwise a secure orq-managed sandbox.
|
|
1209
|
+
*/
|
|
1210
|
+
export type CodeInterpreterTool = {
|
|
1211
|
+
type:
|
|
1212
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type;
|
|
1213
|
+
/**
|
|
1214
|
+
* Whether this tool requires approval before execution
|
|
1215
|
+
*/
|
|
1216
|
+
requiresApproval?: boolean | undefined;
|
|
1217
|
+
/**
|
|
1218
|
+
* Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
|
|
1219
|
+
*/
|
|
1220
|
+
configuration?: { [k: string]: any } | undefined;
|
|
1221
|
+
};
|
|
1222
|
+
|
|
1198
1223
|
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
|
|
1199
1224
|
{
|
|
1200
1225
|
CurrentDate: "current_date",
|
|
@@ -1470,6 +1495,7 @@ export type AgentToolInputCRUD =
|
|
|
1470
1495
|
| RetrieveKnowledgeBasesTool
|
|
1471
1496
|
| QueryKnowledgeBaseTool
|
|
1472
1497
|
| CurrentDateTool
|
|
1498
|
+
| CodeInterpreterTool
|
|
1473
1499
|
| MCPTool
|
|
1474
1500
|
| ProviderBuiltInTool
|
|
1475
1501
|
| HTTPTool
|
|
@@ -1555,6 +1581,10 @@ export type Settings = {
|
|
|
1555
1581
|
* 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.
|
|
1556
1582
|
*/
|
|
1557
1583
|
toolApprovalRequired?: ToolApprovalRequired | undefined;
|
|
1584
|
+
/**
|
|
1585
|
+
* When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
|
|
1586
|
+
*/
|
|
1587
|
+
chatExposed?: boolean | undefined;
|
|
1558
1588
|
/**
|
|
1559
1589
|
* Tools available to the agent. Built-in tools only need a type, while custom tools (http, code, function) must reference pre-created tools by key or id.
|
|
1560
1590
|
*/
|
|
@@ -1571,6 +1601,7 @@ export type Settings = {
|
|
|
1571
1601
|
| RetrieveKnowledgeBasesTool
|
|
1572
1602
|
| QueryKnowledgeBaseTool
|
|
1573
1603
|
| CurrentDateTool
|
|
1604
|
+
| CodeInterpreterTool
|
|
1574
1605
|
| MCPTool
|
|
1575
1606
|
| ProviderBuiltInTool
|
|
1576
1607
|
| HTTPTool
|
|
@@ -1891,6 +1922,10 @@ export type CreateAgentRequestSettings = {
|
|
|
1891
1922
|
* 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.
|
|
1892
1923
|
*/
|
|
1893
1924
|
toolApprovalRequired: CreateAgentRequestToolApprovalRequired;
|
|
1925
|
+
/**
|
|
1926
|
+
* When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
|
|
1927
|
+
*/
|
|
1928
|
+
chatExposed?: boolean | undefined;
|
|
1894
1929
|
tools?: Array<CreateAgentRequestTools> | undefined;
|
|
1895
1930
|
/**
|
|
1896
1931
|
* Configuration for an evaluator applied to the agent
|
|
@@ -4431,11 +4466,11 @@ export function providerBuiltInToolToJSON(
|
|
|
4431
4466
|
}
|
|
4432
4467
|
|
|
4433
4468
|
/** @internal */
|
|
4434
|
-
export const
|
|
4469
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type$outboundSchema:
|
|
4435
4470
|
z.ZodNativeEnum<
|
|
4436
|
-
typeof
|
|
4471
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type
|
|
4437
4472
|
> = z.nativeEnum(
|
|
4438
|
-
|
|
4473
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type,
|
|
4439
4474
|
);
|
|
4440
4475
|
|
|
4441
4476
|
/** @internal */
|
|
@@ -4454,7 +4489,7 @@ export const MCPTool$outboundSchema: z.ZodType<
|
|
|
4454
4489
|
MCPTool
|
|
4455
4490
|
> = z.object({
|
|
4456
4491
|
type:
|
|
4457
|
-
|
|
4492
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type$outboundSchema
|
|
4458
4493
|
.default("mcp"),
|
|
4459
4494
|
key: z.string().optional(),
|
|
4460
4495
|
id: z.string().optional(),
|
|
@@ -4472,11 +4507,11 @@ export function mcpToolToJSON(mcpTool: MCPTool): string {
|
|
|
4472
4507
|
}
|
|
4473
4508
|
|
|
4474
4509
|
/** @internal */
|
|
4475
|
-
export const
|
|
4510
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type$outboundSchema:
|
|
4476
4511
|
z.ZodNativeEnum<
|
|
4477
|
-
typeof
|
|
4512
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type
|
|
4478
4513
|
> = z.nativeEnum(
|
|
4479
|
-
|
|
4514
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type,
|
|
4480
4515
|
);
|
|
4481
4516
|
|
|
4482
4517
|
/** @internal */
|
|
@@ -4494,7 +4529,7 @@ export const JSONSchemaTool$outboundSchema: z.ZodType<
|
|
|
4494
4529
|
JSONSchemaTool
|
|
4495
4530
|
> = z.object({
|
|
4496
4531
|
type:
|
|
4497
|
-
|
|
4532
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type$outboundSchema
|
|
4498
4533
|
.default("json_schema"),
|
|
4499
4534
|
key: z.string().optional(),
|
|
4500
4535
|
id: z.string().optional(),
|
|
@@ -4510,11 +4545,11 @@ export function jsonSchemaToolToJSON(jsonSchemaTool: JSONSchemaTool): string {
|
|
|
4510
4545
|
}
|
|
4511
4546
|
|
|
4512
4547
|
/** @internal */
|
|
4513
|
-
export const
|
|
4548
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$outboundSchema:
|
|
4514
4549
|
z.ZodNativeEnum<
|
|
4515
|
-
typeof
|
|
4550
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
|
|
4516
4551
|
> = z.nativeEnum(
|
|
4517
|
-
|
|
4552
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type,
|
|
4518
4553
|
);
|
|
4519
4554
|
|
|
4520
4555
|
/** @internal */
|
|
@@ -4532,7 +4567,7 @@ export const FunctionTool$outboundSchema: z.ZodType<
|
|
|
4532
4567
|
FunctionTool
|
|
4533
4568
|
> = z.object({
|
|
4534
4569
|
type:
|
|
4535
|
-
|
|
4570
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$outboundSchema
|
|
4536
4571
|
.default("function"),
|
|
4537
4572
|
key: z.string().optional(),
|
|
4538
4573
|
id: z.string().optional(),
|
|
@@ -4548,11 +4583,11 @@ export function functionToolToJSON(functionTool: FunctionTool): string {
|
|
|
4548
4583
|
}
|
|
4549
4584
|
|
|
4550
4585
|
/** @internal */
|
|
4551
|
-
export const
|
|
4586
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
|
|
4552
4587
|
z.ZodNativeEnum<
|
|
4553
|
-
typeof
|
|
4588
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
|
|
4554
4589
|
> = z.nativeEnum(
|
|
4555
|
-
|
|
4590
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type,
|
|
4556
4591
|
);
|
|
4557
4592
|
|
|
4558
4593
|
/** @internal */
|
|
@@ -4570,7 +4605,7 @@ export const CodeExecutionTool$outboundSchema: z.ZodType<
|
|
|
4570
4605
|
CodeExecutionTool
|
|
4571
4606
|
> = z.object({
|
|
4572
4607
|
type:
|
|
4573
|
-
|
|
4608
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema
|
|
4574
4609
|
.default("code"),
|
|
4575
4610
|
key: z.string().optional(),
|
|
4576
4611
|
id: z.string().optional(),
|
|
@@ -4590,11 +4625,11 @@ export function codeExecutionToolToJSON(
|
|
|
4590
4625
|
}
|
|
4591
4626
|
|
|
4592
4627
|
/** @internal */
|
|
4593
|
-
export const
|
|
4628
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
|
|
4594
4629
|
z.ZodNativeEnum<
|
|
4595
|
-
typeof
|
|
4630
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
|
|
4596
4631
|
> = z.nativeEnum(
|
|
4597
|
-
|
|
4632
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type,
|
|
4598
4633
|
);
|
|
4599
4634
|
|
|
4600
4635
|
/** @internal */
|
|
@@ -4612,7 +4647,7 @@ export const HTTPTool$outboundSchema: z.ZodType<
|
|
|
4612
4647
|
HTTPTool
|
|
4613
4648
|
> = z.object({
|
|
4614
4649
|
type:
|
|
4615
|
-
|
|
4650
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema
|
|
4616
4651
|
.default("http"),
|
|
4617
4652
|
key: z.string().optional(),
|
|
4618
4653
|
id: z.string().optional(),
|
|
@@ -4627,6 +4662,45 @@ export function httpToolToJSON(httpTool: HTTPTool): string {
|
|
|
4627
4662
|
return JSON.stringify(HTTPTool$outboundSchema.parse(httpTool));
|
|
4628
4663
|
}
|
|
4629
4664
|
|
|
4665
|
+
/** @internal */
|
|
4666
|
+
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
|
|
4667
|
+
z.ZodNativeEnum<
|
|
4668
|
+
typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
|
|
4669
|
+
> = z.nativeEnum(
|
|
4670
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type,
|
|
4671
|
+
);
|
|
4672
|
+
|
|
4673
|
+
/** @internal */
|
|
4674
|
+
export type CodeInterpreterTool$Outbound = {
|
|
4675
|
+
type: string;
|
|
4676
|
+
requires_approval?: boolean | undefined;
|
|
4677
|
+
configuration?: { [k: string]: any } | undefined;
|
|
4678
|
+
};
|
|
4679
|
+
|
|
4680
|
+
/** @internal */
|
|
4681
|
+
export const CodeInterpreterTool$outboundSchema: z.ZodType<
|
|
4682
|
+
CodeInterpreterTool$Outbound,
|
|
4683
|
+
z.ZodTypeDef,
|
|
4684
|
+
CodeInterpreterTool
|
|
4685
|
+
> = z.object({
|
|
4686
|
+
type:
|
|
4687
|
+
CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
|
|
4688
|
+
requiresApproval: z.boolean().optional(),
|
|
4689
|
+
configuration: z.record(z.any()).optional(),
|
|
4690
|
+
}).transform((v) => {
|
|
4691
|
+
return remap$(v, {
|
|
4692
|
+
requiresApproval: "requires_approval",
|
|
4693
|
+
});
|
|
4694
|
+
});
|
|
4695
|
+
|
|
4696
|
+
export function codeInterpreterToolToJSON(
|
|
4697
|
+
codeInterpreterTool: CodeInterpreterTool,
|
|
4698
|
+
): string {
|
|
4699
|
+
return JSON.stringify(
|
|
4700
|
+
CodeInterpreterTool$outboundSchema.parse(codeInterpreterTool),
|
|
4701
|
+
);
|
|
4702
|
+
}
|
|
4703
|
+
|
|
4630
4704
|
/** @internal */
|
|
4631
4705
|
export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
|
|
4632
4706
|
z.ZodNativeEnum<
|
|
@@ -5048,6 +5122,7 @@ export type AgentToolInputCRUD$Outbound =
|
|
|
5048
5122
|
| RetrieveKnowledgeBasesTool$Outbound
|
|
5049
5123
|
| QueryKnowledgeBaseTool$Outbound
|
|
5050
5124
|
| CurrentDateTool$Outbound
|
|
5125
|
+
| CodeInterpreterTool$Outbound
|
|
5051
5126
|
| MCPTool$Outbound
|
|
5052
5127
|
| ProviderBuiltInTool$Outbound
|
|
5053
5128
|
| HTTPTool$Outbound
|
|
@@ -5072,6 +5147,7 @@ export const AgentToolInputCRUD$outboundSchema: z.ZodType<
|
|
|
5072
5147
|
z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
|
|
5073
5148
|
z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
|
|
5074
5149
|
z.lazy(() => CurrentDateTool$outboundSchema),
|
|
5150
|
+
z.lazy(() => CodeInterpreterTool$outboundSchema),
|
|
5075
5151
|
z.lazy(() => MCPTool$outboundSchema),
|
|
5076
5152
|
z.lazy(() => ProviderBuiltInTool$outboundSchema),
|
|
5077
5153
|
z.lazy(() => HTTPTool$outboundSchema),
|
|
@@ -5164,6 +5240,7 @@ export type Settings$Outbound = {
|
|
|
5164
5240
|
max_execution_time: number;
|
|
5165
5241
|
max_cost: number;
|
|
5166
5242
|
tool_approval_required: string;
|
|
5243
|
+
chat_exposed?: boolean | undefined;
|
|
5167
5244
|
tools?:
|
|
5168
5245
|
| Array<
|
|
5169
5246
|
| GoogleSearchTool$Outbound
|
|
@@ -5177,6 +5254,7 @@ export type Settings$Outbound = {
|
|
|
5177
5254
|
| RetrieveKnowledgeBasesTool$Outbound
|
|
5178
5255
|
| QueryKnowledgeBaseTool$Outbound
|
|
5179
5256
|
| CurrentDateTool$Outbound
|
|
5257
|
+
| CodeInterpreterTool$Outbound
|
|
5180
5258
|
| MCPTool$Outbound
|
|
5181
5259
|
| ProviderBuiltInTool$Outbound
|
|
5182
5260
|
| HTTPTool$Outbound
|
|
@@ -5201,6 +5279,7 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
5201
5279
|
toolApprovalRequired: ToolApprovalRequired$outboundSchema.default(
|
|
5202
5280
|
"respect_tool",
|
|
5203
5281
|
),
|
|
5282
|
+
chatExposed: z.boolean().optional(),
|
|
5204
5283
|
tools: z.array(
|
|
5205
5284
|
z.union([
|
|
5206
5285
|
z.lazy(() => GoogleSearchTool$outboundSchema),
|
|
@@ -5214,6 +5293,7 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
5214
5293
|
z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
|
|
5215
5294
|
z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
|
|
5216
5295
|
z.lazy(() => CurrentDateTool$outboundSchema),
|
|
5296
|
+
z.lazy(() => CodeInterpreterTool$outboundSchema),
|
|
5217
5297
|
z.lazy(() => MCPTool$outboundSchema),
|
|
5218
5298
|
z.lazy(() => ProviderBuiltInTool$outboundSchema),
|
|
5219
5299
|
z.lazy(() => HTTPTool$outboundSchema),
|
|
@@ -5231,6 +5311,7 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
5231
5311
|
maxExecutionTime: "max_execution_time",
|
|
5232
5312
|
maxCost: "max_cost",
|
|
5233
5313
|
toolApprovalRequired: "tool_approval_required",
|
|
5314
|
+
chatExposed: "chat_exposed",
|
|
5234
5315
|
});
|
|
5235
5316
|
});
|
|
5236
5317
|
|
|
@@ -5583,6 +5664,7 @@ export const CreateAgentRequestSettings$inboundSchema: z.ZodType<
|
|
|
5583
5664
|
max_cost: z.number().default(0),
|
|
5584
5665
|
tool_approval_required: CreateAgentRequestToolApprovalRequired$inboundSchema
|
|
5585
5666
|
.default("respect_tool"),
|
|
5667
|
+
chat_exposed: z.boolean().optional(),
|
|
5586
5668
|
tools: z.array(z.lazy(() => CreateAgentRequestTools$inboundSchema))
|
|
5587
5669
|
.optional(),
|
|
5588
5670
|
evaluators: z.array(z.lazy(() => CreateAgentRequestEvaluators$inboundSchema))
|
|
@@ -5596,6 +5678,7 @@ export const CreateAgentRequestSettings$inboundSchema: z.ZodType<
|
|
|
5596
5678
|
"max_execution_time": "maxExecutionTime",
|
|
5597
5679
|
"max_cost": "maxCost",
|
|
5598
5680
|
"tool_approval_required": "toolApprovalRequired",
|
|
5681
|
+
"chat_exposed": "chatExposed",
|
|
5599
5682
|
});
|
|
5600
5683
|
});
|
|
5601
5684
|
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-07-
|
|
141
|
+
"2026-07-07T16:09:53.587Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2607,7 +2607,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2607
2607
|
explanation: z.string().optional(),
|
|
2608
2608
|
reviewed_by_id: z.string(),
|
|
2609
2609
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2610
|
-
"2026-07-
|
|
2610
|
+
"2026-07-07T16:10:19.118Z",
|
|
2611
2611
|
).transform(v => new Date(v)),
|
|
2612
2612
|
type: z.literal("string_array"),
|
|
2613
2613
|
values: z.array(z.string()),
|
|
@@ -2692,7 +2692,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2692
2692
|
explanation: z.string().optional(),
|
|
2693
2693
|
reviewed_by_id: z.string(),
|
|
2694
2694
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2695
|
-
"2026-07-
|
|
2695
|
+
"2026-07-07T16:10:19.117Z",
|
|
2696
2696
|
).transform(v => new Date(v)),
|
|
2697
2697
|
type: z.literal("number"),
|
|
2698
2698
|
value: z.number(),
|
|
@@ -2777,7 +2777,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2777
2777
|
explanation: z.string().optional(),
|
|
2778
2778
|
reviewed_by_id: z.string(),
|
|
2779
2779
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2780
|
-
"2026-07-
|
|
2780
|
+
"2026-07-07T16:10:19.116Z",
|
|
2781
2781
|
).transform(v => new Date(v)),
|
|
2782
2782
|
type: z.literal("string"),
|
|
2783
2783
|
value: z.string(),
|
|
@@ -2862,7 +2862,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2862
2862
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2863
2863
|
.optional(),
|
|
2864
2864
|
updated: z.string().datetime({ offset: true }).default(
|
|
2865
|
-
"2026-07-
|
|
2865
|
+
"2026-07-07T16:09:53.587Z",
|
|
2866
2866
|
).transform(v => new Date(v)),
|
|
2867
2867
|
}).transform((v) => {
|
|
2868
2868
|
return remap$(v, {
|
|
@@ -412,7 +412,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
412
412
|
z.ZodTypeDef,
|
|
413
413
|
unknown
|
|
414
414
|
> = z.object({
|
|
415
|
-
_id: z.string().default("
|
|
415
|
+
_id: z.string().default("01KWYNGDGJK7FJXGQMYM2Z10ZT"),
|
|
416
416
|
display_name: z.string(),
|
|
417
417
|
description: z.nullable(z.string()).optional(),
|
|
418
418
|
status: CreateDatasourceStatus$inboundSchema,
|