@orq-ai/node 4.1.0-rc.45 → 4.1.0-rc.50
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 +31 -24
- package/bin/mcp-server.js +3439 -531
- package/bin/mcp-server.js.map +65 -58
- package/examples/package-lock.json +1 -1
- package/funcs/routerChatCompletions.d.ts +23 -0
- package/funcs/routerChatCompletions.d.ts.map +1 -0
- package/funcs/routerChatCompletions.js +121 -0
- package/funcs/routerChatCompletions.js.map +1 -0
- package/funcs/routerImagesGenerate.d.ts +17 -0
- package/funcs/routerImagesGenerate.d.ts.map +1 -0
- package/funcs/routerImagesGenerate.js +114 -0
- package/funcs/routerImagesGenerate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/event-streams.js +1 -1
- package/lib/event-streams.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +5 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/routerChatCompletions.d.ts +8 -0
- package/mcp-server/tools/routerChatCompletions.d.ts.map +1 -0
- package/mcp-server/tools/routerChatCompletions.js +64 -0
- package/mcp-server/tools/routerChatCompletions.js.map +1 -0
- package/mcp-server/tools/routerImagesGenerate.d.ts +8 -0
- package/mcp-server/tools/routerImagesGenerate.d.ts.map +1 -0
- package/mcp-server/tools/routerImagesGenerate.js +64 -0
- package/mcp-server/tools/routerImagesGenerate.js.map +1 -0
- package/models/components/conversationresponse.js +2 -2
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/publiccontact.d.ts +52 -0
- package/models/components/publiccontact.d.ts.map +1 -0
- package/models/components/publiccontact.js +79 -0
- package/models/components/publiccontact.js.map +1 -0
- package/models/components/reasoningpart.js +2 -2
- package/models/operations/createagentrequest.d.ts +280 -36
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +308 -51
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +3 -1
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createchatcompletion.d.ts +3152 -0
- package/models/operations/createchatcompletion.d.ts.map +1 -0
- package/models/operations/createchatcompletion.js +3398 -0
- package/models/operations/createchatcompletion.js.map +1 -0
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createimage.d.ts +433 -0
- package/models/operations/createimage.d.ts.map +1 -0
- package/models/operations/createimage.js +455 -0
- package/models/operations/createimage.js.map +1 -0
- package/models/operations/creatememory.d.ts +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +3 -1
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.js +2 -2
- package/models/operations/getallprompts.d.ts +8 -8
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +11 -12
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeeval.d.ts +5 -5
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +7 -7
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listagents.d.ts +122 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +129 -3
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +122 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +128 -3
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrieveconversation.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +122 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +132 -7
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +122 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +131 -7
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +244 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +255 -7
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatememory.d.ts +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/router.d.ts +23 -0
- package/sdk/router.d.ts.map +1 -0
- package/sdk/router.js +34 -0
- package/sdk/router.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/routerChatCompletions.ts +172 -0
- package/src/funcs/routerImagesGenerate.ts +160 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/routerChatCompletions.ts +37 -0
- package/src/mcp-server/tools/routerImagesGenerate.ts +37 -0
- package/src/models/components/conversationresponse.ts +2 -2
- package/src/models/components/index.ts +1 -0
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/publiccontact.ts +99 -0
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/operations/createagentrequest.ts +760 -113
- package/src/models/operations/createagentresponserequest.ts +2 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createchatcompletion.ts +8911 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createimage.ts +966 -0
- package/src/models/operations/creatememory.ts +1 -1
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentstream.ts +2 -1
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/generateconversationname.ts +2 -2
- package/src/models/operations/getallprompts.ts +45 -38
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/invokeeval.ts +11 -10
- package/src/models/operations/listagents.ts +313 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +337 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrieveconversation.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +315 -2
- package/src/models/operations/streamrunagent.ts +342 -2
- package/src/models/operations/updateagent.ts +659 -0
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatememory.ts +1 -1
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/router.ts +52 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -204,6 +204,39 @@ export const Modalities = {
|
|
|
204
204
|
} as const;
|
|
205
205
|
export type Modalities = ClosedEnum<typeof Modalities>;
|
|
206
206
|
|
|
207
|
+
/**
|
|
208
|
+
* The key of the guardrail.
|
|
209
|
+
*/
|
|
210
|
+
export const Id1 = {
|
|
211
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
212
|
+
} as const;
|
|
213
|
+
/**
|
|
214
|
+
* The key of the guardrail.
|
|
215
|
+
*/
|
|
216
|
+
export type Id1 = ClosedEnum<typeof Id1>;
|
|
217
|
+
|
|
218
|
+
export type Id = Id1 | string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
222
|
+
*/
|
|
223
|
+
export const ExecuteOn = {
|
|
224
|
+
Input: "input",
|
|
225
|
+
Output: "output",
|
|
226
|
+
} as const;
|
|
227
|
+
/**
|
|
228
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
229
|
+
*/
|
|
230
|
+
export type ExecuteOn = ClosedEnum<typeof ExecuteOn>;
|
|
231
|
+
|
|
232
|
+
export type Guardrails = {
|
|
233
|
+
id: Id1 | string;
|
|
234
|
+
/**
|
|
235
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
236
|
+
*/
|
|
237
|
+
executeOn: ExecuteOn;
|
|
238
|
+
};
|
|
239
|
+
|
|
207
240
|
/**
|
|
208
241
|
* Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
|
|
209
242
|
*/
|
|
@@ -305,6 +338,10 @@ export type ParametersT = {
|
|
|
305
338
|
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
306
339
|
*/
|
|
307
340
|
modalities?: Array<Modalities> | null | undefined;
|
|
341
|
+
/**
|
|
342
|
+
* A list of guardrails to apply to the request.
|
|
343
|
+
*/
|
|
344
|
+
guardrails?: Array<Guardrails> | undefined;
|
|
308
345
|
};
|
|
309
346
|
|
|
310
347
|
/**
|
|
@@ -557,6 +594,41 @@ export type FallbackModelConfigurationModalities = ClosedEnum<
|
|
|
557
594
|
typeof FallbackModelConfigurationModalities
|
|
558
595
|
>;
|
|
559
596
|
|
|
597
|
+
/**
|
|
598
|
+
* The key of the guardrail.
|
|
599
|
+
*/
|
|
600
|
+
export const CreateAgentRequestId1 = {
|
|
601
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
602
|
+
} as const;
|
|
603
|
+
/**
|
|
604
|
+
* The key of the guardrail.
|
|
605
|
+
*/
|
|
606
|
+
export type CreateAgentRequestId1 = ClosedEnum<typeof CreateAgentRequestId1>;
|
|
607
|
+
|
|
608
|
+
export type FallbackModelConfigurationId = CreateAgentRequestId1 | string;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
612
|
+
*/
|
|
613
|
+
export const FallbackModelConfigurationExecuteOn = {
|
|
614
|
+
Input: "input",
|
|
615
|
+
Output: "output",
|
|
616
|
+
} as const;
|
|
617
|
+
/**
|
|
618
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
619
|
+
*/
|
|
620
|
+
export type FallbackModelConfigurationExecuteOn = ClosedEnum<
|
|
621
|
+
typeof FallbackModelConfigurationExecuteOn
|
|
622
|
+
>;
|
|
623
|
+
|
|
624
|
+
export type FallbackModelConfigurationGuardrails = {
|
|
625
|
+
id: CreateAgentRequestId1 | string;
|
|
626
|
+
/**
|
|
627
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
628
|
+
*/
|
|
629
|
+
executeOn: FallbackModelConfigurationExecuteOn;
|
|
630
|
+
};
|
|
631
|
+
|
|
560
632
|
/**
|
|
561
633
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
562
634
|
*/
|
|
@@ -665,6 +737,10 @@ export type FallbackModelConfigurationParameters = {
|
|
|
665
737
|
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
666
738
|
*/
|
|
667
739
|
modalities?: Array<FallbackModelConfigurationModalities> | null | undefined;
|
|
740
|
+
/**
|
|
741
|
+
* A list of guardrails to apply to the request.
|
|
742
|
+
*/
|
|
743
|
+
guardrails?: Array<FallbackModelConfigurationGuardrails> | undefined;
|
|
668
744
|
};
|
|
669
745
|
|
|
670
746
|
/**
|
|
@@ -1098,14 +1174,16 @@ export type AgentToolInputCRUD =
|
|
|
1098
1174
|
/**
|
|
1099
1175
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1100
1176
|
*/
|
|
1101
|
-
export const
|
|
1177
|
+
export const CreateAgentRequestExecuteOn = {
|
|
1102
1178
|
Input: "input",
|
|
1103
1179
|
Output: "output",
|
|
1104
1180
|
} as const;
|
|
1105
1181
|
/**
|
|
1106
1182
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1107
1183
|
*/
|
|
1108
|
-
export type
|
|
1184
|
+
export type CreateAgentRequestExecuteOn = ClosedEnum<
|
|
1185
|
+
typeof CreateAgentRequestExecuteOn
|
|
1186
|
+
>;
|
|
1109
1187
|
|
|
1110
1188
|
export type Evaluators = {
|
|
1111
1189
|
/**
|
|
@@ -1119,24 +1197,24 @@ export type Evaluators = {
|
|
|
1119
1197
|
/**
|
|
1120
1198
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1121
1199
|
*/
|
|
1122
|
-
executeOn:
|
|
1200
|
+
executeOn: CreateAgentRequestExecuteOn;
|
|
1123
1201
|
};
|
|
1124
1202
|
|
|
1125
1203
|
/**
|
|
1126
1204
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1127
1205
|
*/
|
|
1128
|
-
export const
|
|
1206
|
+
export const CreateAgentRequestAgentsExecuteOn = {
|
|
1129
1207
|
Input: "input",
|
|
1130
1208
|
Output: "output",
|
|
1131
1209
|
} as const;
|
|
1132
1210
|
/**
|
|
1133
1211
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1134
1212
|
*/
|
|
1135
|
-
export type
|
|
1136
|
-
typeof
|
|
1213
|
+
export type CreateAgentRequestAgentsExecuteOn = ClosedEnum<
|
|
1214
|
+
typeof CreateAgentRequestAgentsExecuteOn
|
|
1137
1215
|
>;
|
|
1138
1216
|
|
|
1139
|
-
export type
|
|
1217
|
+
export type CreateAgentRequestGuardrails = {
|
|
1140
1218
|
/**
|
|
1141
1219
|
* Unique key or identifier of the evaluator
|
|
1142
1220
|
*/
|
|
@@ -1148,7 +1226,7 @@ export type Guardrails = {
|
|
|
1148
1226
|
/**
|
|
1149
1227
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1150
1228
|
*/
|
|
1151
|
-
executeOn:
|
|
1229
|
+
executeOn: CreateAgentRequestAgentsExecuteOn;
|
|
1152
1230
|
};
|
|
1153
1231
|
|
|
1154
1232
|
/**
|
|
@@ -1196,7 +1274,7 @@ export type Settings = {
|
|
|
1196
1274
|
/**
|
|
1197
1275
|
* Configuration for a guardrail applied to the agent
|
|
1198
1276
|
*/
|
|
1199
|
-
guardrails?: Array<
|
|
1277
|
+
guardrails?: Array<CreateAgentRequestGuardrails> | undefined;
|
|
1200
1278
|
};
|
|
1201
1279
|
|
|
1202
1280
|
export type KnowledgeBases = {
|
|
@@ -1353,15 +1431,15 @@ export type CreateAgentRequestTools = {
|
|
|
1353
1431
|
/**
|
|
1354
1432
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1355
1433
|
*/
|
|
1356
|
-
export const
|
|
1434
|
+
export const CreateAgentRequestAgentsResponseExecuteOn = {
|
|
1357
1435
|
Input: "input",
|
|
1358
1436
|
Output: "output",
|
|
1359
1437
|
} as const;
|
|
1360
1438
|
/**
|
|
1361
1439
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1362
1440
|
*/
|
|
1363
|
-
export type
|
|
1364
|
-
typeof
|
|
1441
|
+
export type CreateAgentRequestAgentsResponseExecuteOn = ClosedEnum<
|
|
1442
|
+
typeof CreateAgentRequestAgentsResponseExecuteOn
|
|
1365
1443
|
>;
|
|
1366
1444
|
|
|
1367
1445
|
export type CreateAgentRequestEvaluators = {
|
|
@@ -1376,24 +1454,24 @@ export type CreateAgentRequestEvaluators = {
|
|
|
1376
1454
|
/**
|
|
1377
1455
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1378
1456
|
*/
|
|
1379
|
-
executeOn:
|
|
1457
|
+
executeOn: CreateAgentRequestAgentsResponseExecuteOn;
|
|
1380
1458
|
};
|
|
1381
1459
|
|
|
1382
1460
|
/**
|
|
1383
1461
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1384
1462
|
*/
|
|
1385
|
-
export const
|
|
1463
|
+
export const CreateAgentRequestAgentsResponse201ExecuteOn = {
|
|
1386
1464
|
Input: "input",
|
|
1387
1465
|
Output: "output",
|
|
1388
1466
|
} as const;
|
|
1389
1467
|
/**
|
|
1390
1468
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1391
1469
|
*/
|
|
1392
|
-
export type
|
|
1393
|
-
typeof
|
|
1470
|
+
export type CreateAgentRequestAgentsResponse201ExecuteOn = ClosedEnum<
|
|
1471
|
+
typeof CreateAgentRequestAgentsResponse201ExecuteOn
|
|
1394
1472
|
>;
|
|
1395
1473
|
|
|
1396
|
-
export type
|
|
1474
|
+
export type CreateAgentRequestAgentsGuardrails = {
|
|
1397
1475
|
/**
|
|
1398
1476
|
* Unique key or identifier of the evaluator
|
|
1399
1477
|
*/
|
|
@@ -1405,7 +1483,7 @@ export type CreateAgentRequestGuardrails = {
|
|
|
1405
1483
|
/**
|
|
1406
1484
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1407
1485
|
*/
|
|
1408
|
-
executeOn:
|
|
1486
|
+
executeOn: CreateAgentRequestAgentsResponse201ExecuteOn;
|
|
1409
1487
|
};
|
|
1410
1488
|
|
|
1411
1489
|
export type CreateAgentRequestSettings = {
|
|
@@ -1429,7 +1507,7 @@ export type CreateAgentRequestSettings = {
|
|
|
1429
1507
|
/**
|
|
1430
1508
|
* Configuration for a guardrail applied to the agent
|
|
1431
1509
|
*/
|
|
1432
|
-
guardrails?: Array<
|
|
1510
|
+
guardrails?: Array<CreateAgentRequestAgentsGuardrails> | undefined;
|
|
1433
1511
|
};
|
|
1434
1512
|
|
|
1435
1513
|
/**
|
|
@@ -1643,6 +1721,44 @@ export type CreateAgentRequestModalities = ClosedEnum<
|
|
|
1643
1721
|
typeof CreateAgentRequestModalities
|
|
1644
1722
|
>;
|
|
1645
1723
|
|
|
1724
|
+
/**
|
|
1725
|
+
* The key of the guardrail.
|
|
1726
|
+
*/
|
|
1727
|
+
export const CreateAgentRequestIdAgents1 = {
|
|
1728
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
1729
|
+
} as const;
|
|
1730
|
+
/**
|
|
1731
|
+
* The key of the guardrail.
|
|
1732
|
+
*/
|
|
1733
|
+
export type CreateAgentRequestIdAgents1 = ClosedEnum<
|
|
1734
|
+
typeof CreateAgentRequestIdAgents1
|
|
1735
|
+
>;
|
|
1736
|
+
|
|
1737
|
+
export type CreateAgentRequestId = CreateAgentRequestIdAgents1 | string;
|
|
1738
|
+
|
|
1739
|
+
/**
|
|
1740
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
1741
|
+
*/
|
|
1742
|
+
export const CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn = {
|
|
1743
|
+
Input: "input",
|
|
1744
|
+
Output: "output",
|
|
1745
|
+
} as const;
|
|
1746
|
+
/**
|
|
1747
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
1748
|
+
*/
|
|
1749
|
+
export type CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn =
|
|
1750
|
+
ClosedEnum<
|
|
1751
|
+
typeof CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn
|
|
1752
|
+
>;
|
|
1753
|
+
|
|
1754
|
+
export type CreateAgentRequestAgentsResponseGuardrails = {
|
|
1755
|
+
id: CreateAgentRequestIdAgents1 | string;
|
|
1756
|
+
/**
|
|
1757
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
1758
|
+
*/
|
|
1759
|
+
executeOn: CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn;
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1646
1762
|
/**
|
|
1647
1763
|
* Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
|
|
1648
1764
|
*/
|
|
@@ -1751,6 +1867,10 @@ export type CreateAgentRequestParameters = {
|
|
|
1751
1867
|
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
1752
1868
|
*/
|
|
1753
1869
|
modalities?: Array<CreateAgentRequestModalities> | null | undefined;
|
|
1870
|
+
/**
|
|
1871
|
+
* A list of guardrails to apply to the request.
|
|
1872
|
+
*/
|
|
1873
|
+
guardrails?: Array<CreateAgentRequestAgentsResponseGuardrails> | undefined;
|
|
1754
1874
|
};
|
|
1755
1875
|
|
|
1756
1876
|
/**
|
|
@@ -1984,6 +2104,45 @@ export type CreateAgentRequestFallbackModelConfigurationModalities = ClosedEnum<
|
|
|
1984
2104
|
typeof CreateAgentRequestFallbackModelConfigurationModalities
|
|
1985
2105
|
>;
|
|
1986
2106
|
|
|
2107
|
+
/**
|
|
2108
|
+
* The key of the guardrail.
|
|
2109
|
+
*/
|
|
2110
|
+
export const CreateAgentRequestIdAgentsResponse1 = {
|
|
2111
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
2112
|
+
} as const;
|
|
2113
|
+
/**
|
|
2114
|
+
* The key of the guardrail.
|
|
2115
|
+
*/
|
|
2116
|
+
export type CreateAgentRequestIdAgentsResponse1 = ClosedEnum<
|
|
2117
|
+
typeof CreateAgentRequestIdAgentsResponse1
|
|
2118
|
+
>;
|
|
2119
|
+
|
|
2120
|
+
export type CreateAgentRequestFallbackModelConfigurationId =
|
|
2121
|
+
| CreateAgentRequestIdAgentsResponse1
|
|
2122
|
+
| string;
|
|
2123
|
+
|
|
2124
|
+
/**
|
|
2125
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2126
|
+
*/
|
|
2127
|
+
export const CreateAgentRequestFallbackModelConfigurationExecuteOn = {
|
|
2128
|
+
Input: "input",
|
|
2129
|
+
Output: "output",
|
|
2130
|
+
} as const;
|
|
2131
|
+
/**
|
|
2132
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2133
|
+
*/
|
|
2134
|
+
export type CreateAgentRequestFallbackModelConfigurationExecuteOn = ClosedEnum<
|
|
2135
|
+
typeof CreateAgentRequestFallbackModelConfigurationExecuteOn
|
|
2136
|
+
>;
|
|
2137
|
+
|
|
2138
|
+
export type CreateAgentRequestFallbackModelConfigurationGuardrails = {
|
|
2139
|
+
id: CreateAgentRequestIdAgentsResponse1 | string;
|
|
2140
|
+
/**
|
|
2141
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2142
|
+
*/
|
|
2143
|
+
executeOn: CreateAgentRequestFallbackModelConfigurationExecuteOn;
|
|
2144
|
+
};
|
|
2145
|
+
|
|
1987
2146
|
/**
|
|
1988
2147
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
1989
2148
|
*/
|
|
@@ -2100,6 +2259,12 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
|
|
|
2100
2259
|
| Array<CreateAgentRequestFallbackModelConfigurationModalities>
|
|
2101
2260
|
| null
|
|
2102
2261
|
| undefined;
|
|
2262
|
+
/**
|
|
2263
|
+
* A list of guardrails to apply to the request.
|
|
2264
|
+
*/
|
|
2265
|
+
guardrails?:
|
|
2266
|
+
| Array<CreateAgentRequestFallbackModelConfigurationGuardrails>
|
|
2267
|
+
| undefined;
|
|
2103
2268
|
};
|
|
2104
2269
|
|
|
2105
2270
|
/**
|
|
@@ -2730,6 +2895,90 @@ export const Modalities$inboundSchema: z.ZodNativeEnum<typeof Modalities> = z
|
|
|
2730
2895
|
export const Modalities$outboundSchema: z.ZodNativeEnum<typeof Modalities> =
|
|
2731
2896
|
Modalities$inboundSchema;
|
|
2732
2897
|
|
|
2898
|
+
/** @internal */
|
|
2899
|
+
export const Id1$inboundSchema: z.ZodNativeEnum<typeof Id1> = z.nativeEnum(Id1);
|
|
2900
|
+
/** @internal */
|
|
2901
|
+
export const Id1$outboundSchema: z.ZodNativeEnum<typeof Id1> =
|
|
2902
|
+
Id1$inboundSchema;
|
|
2903
|
+
|
|
2904
|
+
/** @internal */
|
|
2905
|
+
export const Id$inboundSchema: z.ZodType<Id, z.ZodTypeDef, unknown> = z.union([
|
|
2906
|
+
Id1$inboundSchema,
|
|
2907
|
+
z.string(),
|
|
2908
|
+
]);
|
|
2909
|
+
/** @internal */
|
|
2910
|
+
export type Id$Outbound = string | string;
|
|
2911
|
+
|
|
2912
|
+
/** @internal */
|
|
2913
|
+
export const Id$outboundSchema: z.ZodType<Id$Outbound, z.ZodTypeDef, Id> = z
|
|
2914
|
+
.union([Id1$outboundSchema, z.string()]);
|
|
2915
|
+
|
|
2916
|
+
export function idToJSON(id: Id): string {
|
|
2917
|
+
return JSON.stringify(Id$outboundSchema.parse(id));
|
|
2918
|
+
}
|
|
2919
|
+
export function idFromJSON(
|
|
2920
|
+
jsonString: string,
|
|
2921
|
+
): SafeParseResult<Id, SDKValidationError> {
|
|
2922
|
+
return safeParse(
|
|
2923
|
+
jsonString,
|
|
2924
|
+
(x) => Id$inboundSchema.parse(JSON.parse(x)),
|
|
2925
|
+
`Failed to parse 'Id' from JSON`,
|
|
2926
|
+
);
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
/** @internal */
|
|
2930
|
+
export const ExecuteOn$inboundSchema: z.ZodNativeEnum<typeof ExecuteOn> = z
|
|
2931
|
+
.nativeEnum(ExecuteOn);
|
|
2932
|
+
/** @internal */
|
|
2933
|
+
export const ExecuteOn$outboundSchema: z.ZodNativeEnum<typeof ExecuteOn> =
|
|
2934
|
+
ExecuteOn$inboundSchema;
|
|
2935
|
+
|
|
2936
|
+
/** @internal */
|
|
2937
|
+
export const Guardrails$inboundSchema: z.ZodType<
|
|
2938
|
+
Guardrails,
|
|
2939
|
+
z.ZodTypeDef,
|
|
2940
|
+
unknown
|
|
2941
|
+
> = z.object({
|
|
2942
|
+
id: z.union([Id1$inboundSchema, z.string()]),
|
|
2943
|
+
execute_on: ExecuteOn$inboundSchema,
|
|
2944
|
+
}).transform((v) => {
|
|
2945
|
+
return remap$(v, {
|
|
2946
|
+
"execute_on": "executeOn",
|
|
2947
|
+
});
|
|
2948
|
+
});
|
|
2949
|
+
/** @internal */
|
|
2950
|
+
export type Guardrails$Outbound = {
|
|
2951
|
+
id: string | string;
|
|
2952
|
+
execute_on: string;
|
|
2953
|
+
};
|
|
2954
|
+
|
|
2955
|
+
/** @internal */
|
|
2956
|
+
export const Guardrails$outboundSchema: z.ZodType<
|
|
2957
|
+
Guardrails$Outbound,
|
|
2958
|
+
z.ZodTypeDef,
|
|
2959
|
+
Guardrails
|
|
2960
|
+
> = z.object({
|
|
2961
|
+
id: z.union([Id1$outboundSchema, z.string()]),
|
|
2962
|
+
executeOn: ExecuteOn$outboundSchema,
|
|
2963
|
+
}).transform((v) => {
|
|
2964
|
+
return remap$(v, {
|
|
2965
|
+
executeOn: "execute_on",
|
|
2966
|
+
});
|
|
2967
|
+
});
|
|
2968
|
+
|
|
2969
|
+
export function guardrailsToJSON(guardrails: Guardrails): string {
|
|
2970
|
+
return JSON.stringify(Guardrails$outboundSchema.parse(guardrails));
|
|
2971
|
+
}
|
|
2972
|
+
export function guardrailsFromJSON(
|
|
2973
|
+
jsonString: string,
|
|
2974
|
+
): SafeParseResult<Guardrails, SDKValidationError> {
|
|
2975
|
+
return safeParse(
|
|
2976
|
+
jsonString,
|
|
2977
|
+
(x) => Guardrails$inboundSchema.parse(JSON.parse(x)),
|
|
2978
|
+
`Failed to parse 'Guardrails' from JSON`,
|
|
2979
|
+
);
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2733
2982
|
/** @internal */
|
|
2734
2983
|
export const ParametersT$inboundSchema: z.ZodType<
|
|
2735
2984
|
ParametersT,
|
|
@@ -2769,6 +3018,7 @@ export const ParametersT$inboundSchema: z.ZodType<
|
|
|
2769
3018
|
]).optional(),
|
|
2770
3019
|
parallel_tool_calls: z.boolean().optional(),
|
|
2771
3020
|
modalities: z.nullable(z.array(Modalities$inboundSchema)).optional(),
|
|
3021
|
+
guardrails: z.array(z.lazy(() => Guardrails$inboundSchema)).optional(),
|
|
2772
3022
|
}).transform((v) => {
|
|
2773
3023
|
return remap$(v, {
|
|
2774
3024
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -2815,6 +3065,7 @@ export type ParametersT$Outbound = {
|
|
|
2815
3065
|
tool_choice?: ToolChoice2$Outbound | string | undefined;
|
|
2816
3066
|
parallel_tool_calls?: boolean | undefined;
|
|
2817
3067
|
modalities?: Array<string> | null | undefined;
|
|
3068
|
+
guardrails?: Array<Guardrails$Outbound> | undefined;
|
|
2818
3069
|
};
|
|
2819
3070
|
|
|
2820
3071
|
/** @internal */
|
|
@@ -2856,6 +3107,7 @@ export const ParametersT$outboundSchema: z.ZodType<
|
|
|
2856
3107
|
]).optional(),
|
|
2857
3108
|
parallelToolCalls: z.boolean().optional(),
|
|
2858
3109
|
modalities: z.nullable(z.array(Modalities$outboundSchema)).optional(),
|
|
3110
|
+
guardrails: z.array(z.lazy(() => Guardrails$outboundSchema)).optional(),
|
|
2859
3111
|
}).transform((v) => {
|
|
2860
3112
|
return remap$(v, {
|
|
2861
3113
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -3624,39 +3876,145 @@ export const FallbackModelConfigurationModalities$outboundSchema:
|
|
|
3624
3876
|
FallbackModelConfigurationModalities$inboundSchema;
|
|
3625
3877
|
|
|
3626
3878
|
/** @internal */
|
|
3627
|
-
export const
|
|
3628
|
-
|
|
3879
|
+
export const CreateAgentRequestId1$inboundSchema: z.ZodNativeEnum<
|
|
3880
|
+
typeof CreateAgentRequestId1
|
|
3881
|
+
> = z.nativeEnum(CreateAgentRequestId1);
|
|
3882
|
+
/** @internal */
|
|
3883
|
+
export const CreateAgentRequestId1$outboundSchema: z.ZodNativeEnum<
|
|
3884
|
+
typeof CreateAgentRequestId1
|
|
3885
|
+
> = CreateAgentRequestId1$inboundSchema;
|
|
3886
|
+
|
|
3887
|
+
/** @internal */
|
|
3888
|
+
export const FallbackModelConfigurationId$inboundSchema: z.ZodType<
|
|
3889
|
+
FallbackModelConfigurationId,
|
|
3890
|
+
z.ZodTypeDef,
|
|
3891
|
+
unknown
|
|
3892
|
+
> = z.union([CreateAgentRequestId1$inboundSchema, z.string()]);
|
|
3893
|
+
/** @internal */
|
|
3894
|
+
export type FallbackModelConfigurationId$Outbound = string | string;
|
|
3895
|
+
|
|
3896
|
+
/** @internal */
|
|
3897
|
+
export const FallbackModelConfigurationId$outboundSchema: z.ZodType<
|
|
3898
|
+
FallbackModelConfigurationId$Outbound,
|
|
3899
|
+
z.ZodTypeDef,
|
|
3900
|
+
FallbackModelConfigurationId
|
|
3901
|
+
> = z.union([CreateAgentRequestId1$outboundSchema, z.string()]);
|
|
3902
|
+
|
|
3903
|
+
export function fallbackModelConfigurationIdToJSON(
|
|
3904
|
+
fallbackModelConfigurationId: FallbackModelConfigurationId,
|
|
3905
|
+
): string {
|
|
3906
|
+
return JSON.stringify(
|
|
3907
|
+
FallbackModelConfigurationId$outboundSchema.parse(
|
|
3908
|
+
fallbackModelConfigurationId,
|
|
3909
|
+
),
|
|
3910
|
+
);
|
|
3911
|
+
}
|
|
3912
|
+
export function fallbackModelConfigurationIdFromJSON(
|
|
3913
|
+
jsonString: string,
|
|
3914
|
+
): SafeParseResult<FallbackModelConfigurationId, SDKValidationError> {
|
|
3915
|
+
return safeParse(
|
|
3916
|
+
jsonString,
|
|
3917
|
+
(x) => FallbackModelConfigurationId$inboundSchema.parse(JSON.parse(x)),
|
|
3918
|
+
`Failed to parse 'FallbackModelConfigurationId' from JSON`,
|
|
3919
|
+
);
|
|
3920
|
+
}
|
|
3921
|
+
|
|
3922
|
+
/** @internal */
|
|
3923
|
+
export const FallbackModelConfigurationExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
3924
|
+
typeof FallbackModelConfigurationExecuteOn
|
|
3925
|
+
> = z.nativeEnum(FallbackModelConfigurationExecuteOn);
|
|
3926
|
+
/** @internal */
|
|
3927
|
+
export const FallbackModelConfigurationExecuteOn$outboundSchema:
|
|
3928
|
+
z.ZodNativeEnum<typeof FallbackModelConfigurationExecuteOn> =
|
|
3929
|
+
FallbackModelConfigurationExecuteOn$inboundSchema;
|
|
3930
|
+
|
|
3931
|
+
/** @internal */
|
|
3932
|
+
export const FallbackModelConfigurationGuardrails$inboundSchema: z.ZodType<
|
|
3933
|
+
FallbackModelConfigurationGuardrails,
|
|
3629
3934
|
z.ZodTypeDef,
|
|
3630
3935
|
unknown
|
|
3631
3936
|
> = z.object({
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3937
|
+
id: z.union([CreateAgentRequestId1$inboundSchema, z.string()]),
|
|
3938
|
+
execute_on: FallbackModelConfigurationExecuteOn$inboundSchema,
|
|
3939
|
+
}).transform((v) => {
|
|
3940
|
+
return remap$(v, {
|
|
3941
|
+
"execute_on": "executeOn",
|
|
3942
|
+
});
|
|
3943
|
+
});
|
|
3944
|
+
/** @internal */
|
|
3945
|
+
export type FallbackModelConfigurationGuardrails$Outbound = {
|
|
3946
|
+
id: string | string;
|
|
3947
|
+
execute_on: string;
|
|
3948
|
+
};
|
|
3949
|
+
|
|
3950
|
+
/** @internal */
|
|
3951
|
+
export const FallbackModelConfigurationGuardrails$outboundSchema: z.ZodType<
|
|
3952
|
+
FallbackModelConfigurationGuardrails$Outbound,
|
|
3953
|
+
z.ZodTypeDef,
|
|
3954
|
+
FallbackModelConfigurationGuardrails
|
|
3955
|
+
> = z.object({
|
|
3956
|
+
id: z.union([CreateAgentRequestId1$outboundSchema, z.string()]),
|
|
3957
|
+
executeOn: FallbackModelConfigurationExecuteOn$outboundSchema,
|
|
3958
|
+
}).transform((v) => {
|
|
3959
|
+
return remap$(v, {
|
|
3960
|
+
executeOn: "execute_on",
|
|
3961
|
+
});
|
|
3962
|
+
});
|
|
3963
|
+
|
|
3964
|
+
export function fallbackModelConfigurationGuardrailsToJSON(
|
|
3965
|
+
fallbackModelConfigurationGuardrails: FallbackModelConfigurationGuardrails,
|
|
3966
|
+
): string {
|
|
3967
|
+
return JSON.stringify(
|
|
3968
|
+
FallbackModelConfigurationGuardrails$outboundSchema.parse(
|
|
3969
|
+
fallbackModelConfigurationGuardrails,
|
|
3970
|
+
),
|
|
3971
|
+
);
|
|
3972
|
+
}
|
|
3973
|
+
export function fallbackModelConfigurationGuardrailsFromJSON(
|
|
3974
|
+
jsonString: string,
|
|
3975
|
+
): SafeParseResult<FallbackModelConfigurationGuardrails, SDKValidationError> {
|
|
3976
|
+
return safeParse(
|
|
3977
|
+
jsonString,
|
|
3978
|
+
(x) =>
|
|
3979
|
+
FallbackModelConfigurationGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
3980
|
+
`Failed to parse 'FallbackModelConfigurationGuardrails' from JSON`,
|
|
3981
|
+
);
|
|
3982
|
+
}
|
|
3983
|
+
|
|
3984
|
+
/** @internal */
|
|
3985
|
+
export const FallbackModelConfigurationParameters$inboundSchema: z.ZodType<
|
|
3986
|
+
FallbackModelConfigurationParameters,
|
|
3987
|
+
z.ZodTypeDef,
|
|
3988
|
+
unknown
|
|
3989
|
+
> = z.object({
|
|
3990
|
+
audio: z.nullable(z.lazy(() => FallbackModelConfigurationAudio$inboundSchema))
|
|
3991
|
+
.optional(),
|
|
3992
|
+
frequency_penalty: z.nullable(z.number()).optional(),
|
|
3993
|
+
max_tokens: z.nullable(z.number().int()).optional(),
|
|
3994
|
+
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
3995
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
3996
|
+
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
3997
|
+
n: z.nullable(z.number().int()).optional(),
|
|
3998
|
+
presence_penalty: z.nullable(z.number()).optional(),
|
|
3999
|
+
response_format: z.union([
|
|
4000
|
+
z.lazy(() => ResponseFormatText$inboundSchema),
|
|
4001
|
+
z.lazy(() => ResponseFormatJSONObject$inboundSchema),
|
|
4002
|
+
z.lazy(() => CreateAgentRequestResponseFormatJSONSchema$inboundSchema),
|
|
4003
|
+
]).optional(),
|
|
4004
|
+
reasoning_effort: FallbackModelConfigurationReasoningEffort$inboundSchema
|
|
4005
|
+
.optional(),
|
|
4006
|
+
verbosity: z.string().optional(),
|
|
4007
|
+
seed: z.nullable(z.number()).optional(),
|
|
4008
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
4009
|
+
stream_options: z.nullable(
|
|
4010
|
+
z.lazy(() => FallbackModelConfigurationStreamOptions$inboundSchema),
|
|
4011
|
+
).optional(),
|
|
4012
|
+
thinking: z.union([
|
|
4013
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
4014
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
4015
|
+
]).optional(),
|
|
4016
|
+
temperature: z.nullable(z.number()).optional(),
|
|
4017
|
+
top_p: z.nullable(z.number()).optional(),
|
|
3660
4018
|
top_k: z.nullable(z.number()).optional(),
|
|
3661
4019
|
tool_choice: z.union([
|
|
3662
4020
|
z.lazy(() => CreateAgentRequestToolChoice2$inboundSchema),
|
|
@@ -3666,6 +4024,9 @@ export const FallbackModelConfigurationParameters$inboundSchema: z.ZodType<
|
|
|
3666
4024
|
modalities: z.nullable(
|
|
3667
4025
|
z.array(FallbackModelConfigurationModalities$inboundSchema),
|
|
3668
4026
|
).optional(),
|
|
4027
|
+
guardrails: z.array(
|
|
4028
|
+
z.lazy(() => FallbackModelConfigurationGuardrails$inboundSchema),
|
|
4029
|
+
).optional(),
|
|
3669
4030
|
}).transform((v) => {
|
|
3670
4031
|
return remap$(v, {
|
|
3671
4032
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -3715,6 +4076,7 @@ export type FallbackModelConfigurationParameters$Outbound = {
|
|
|
3715
4076
|
tool_choice?: CreateAgentRequestToolChoice2$Outbound | string | undefined;
|
|
3716
4077
|
parallel_tool_calls?: boolean | undefined;
|
|
3717
4078
|
modalities?: Array<string> | null | undefined;
|
|
4079
|
+
guardrails?: Array<FallbackModelConfigurationGuardrails$Outbound> | undefined;
|
|
3718
4080
|
};
|
|
3719
4081
|
|
|
3720
4082
|
/** @internal */
|
|
@@ -3761,6 +4123,9 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
3761
4123
|
modalities: z.nullable(
|
|
3762
4124
|
z.array(FallbackModelConfigurationModalities$outboundSchema),
|
|
3763
4125
|
).optional(),
|
|
4126
|
+
guardrails: z.array(
|
|
4127
|
+
z.lazy(() => FallbackModelConfigurationGuardrails$outboundSchema),
|
|
4128
|
+
).optional(),
|
|
3764
4129
|
}).transform((v) => {
|
|
3765
4130
|
return remap$(v, {
|
|
3766
4131
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -4955,11 +5320,13 @@ export function agentToolInputCRUDFromJSON(
|
|
|
4955
5320
|
}
|
|
4956
5321
|
|
|
4957
5322
|
/** @internal */
|
|
4958
|
-
export const
|
|
4959
|
-
|
|
5323
|
+
export const CreateAgentRequestExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
5324
|
+
typeof CreateAgentRequestExecuteOn
|
|
5325
|
+
> = z.nativeEnum(CreateAgentRequestExecuteOn);
|
|
4960
5326
|
/** @internal */
|
|
4961
|
-
export const
|
|
4962
|
-
|
|
5327
|
+
export const CreateAgentRequestExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
5328
|
+
typeof CreateAgentRequestExecuteOn
|
|
5329
|
+
> = CreateAgentRequestExecuteOn$inboundSchema;
|
|
4963
5330
|
|
|
4964
5331
|
/** @internal */
|
|
4965
5332
|
export const Evaluators$inboundSchema: z.ZodType<
|
|
@@ -4969,7 +5336,7 @@ export const Evaluators$inboundSchema: z.ZodType<
|
|
|
4969
5336
|
> = z.object({
|
|
4970
5337
|
id: z.string(),
|
|
4971
5338
|
sample_rate: z.number().default(50),
|
|
4972
|
-
execute_on:
|
|
5339
|
+
execute_on: CreateAgentRequestExecuteOn$inboundSchema,
|
|
4973
5340
|
}).transform((v) => {
|
|
4974
5341
|
return remap$(v, {
|
|
4975
5342
|
"sample_rate": "sampleRate",
|
|
@@ -4991,7 +5358,7 @@ export const Evaluators$outboundSchema: z.ZodType<
|
|
|
4991
5358
|
> = z.object({
|
|
4992
5359
|
id: z.string(),
|
|
4993
5360
|
sampleRate: z.number().default(50),
|
|
4994
|
-
executeOn:
|
|
5361
|
+
executeOn: CreateAgentRequestExecuteOn$outboundSchema,
|
|
4995
5362
|
}).transform((v) => {
|
|
4996
5363
|
return remap$(v, {
|
|
4997
5364
|
sampleRate: "sample_rate",
|
|
@@ -5013,23 +5380,23 @@ export function evaluatorsFromJSON(
|
|
|
5013
5380
|
}
|
|
5014
5381
|
|
|
5015
5382
|
/** @internal */
|
|
5016
|
-
export const
|
|
5017
|
-
typeof
|
|
5018
|
-
> = z.nativeEnum(
|
|
5383
|
+
export const CreateAgentRequestAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
5384
|
+
typeof CreateAgentRequestAgentsExecuteOn
|
|
5385
|
+
> = z.nativeEnum(CreateAgentRequestAgentsExecuteOn);
|
|
5019
5386
|
/** @internal */
|
|
5020
|
-
export const
|
|
5021
|
-
typeof
|
|
5022
|
-
> =
|
|
5387
|
+
export const CreateAgentRequestAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
5388
|
+
typeof CreateAgentRequestAgentsExecuteOn
|
|
5389
|
+
> = CreateAgentRequestAgentsExecuteOn$inboundSchema;
|
|
5023
5390
|
|
|
5024
5391
|
/** @internal */
|
|
5025
|
-
export const
|
|
5026
|
-
|
|
5392
|
+
export const CreateAgentRequestGuardrails$inboundSchema: z.ZodType<
|
|
5393
|
+
CreateAgentRequestGuardrails,
|
|
5027
5394
|
z.ZodTypeDef,
|
|
5028
5395
|
unknown
|
|
5029
5396
|
> = z.object({
|
|
5030
5397
|
id: z.string(),
|
|
5031
5398
|
sample_rate: z.number().default(50),
|
|
5032
|
-
execute_on:
|
|
5399
|
+
execute_on: CreateAgentRequestAgentsExecuteOn$inboundSchema,
|
|
5033
5400
|
}).transform((v) => {
|
|
5034
5401
|
return remap$(v, {
|
|
5035
5402
|
"sample_rate": "sampleRate",
|
|
@@ -5037,21 +5404,21 @@ export const Guardrails$inboundSchema: z.ZodType<
|
|
|
5037
5404
|
});
|
|
5038
5405
|
});
|
|
5039
5406
|
/** @internal */
|
|
5040
|
-
export type
|
|
5407
|
+
export type CreateAgentRequestGuardrails$Outbound = {
|
|
5041
5408
|
id: string;
|
|
5042
5409
|
sample_rate: number;
|
|
5043
5410
|
execute_on: string;
|
|
5044
5411
|
};
|
|
5045
5412
|
|
|
5046
5413
|
/** @internal */
|
|
5047
|
-
export const
|
|
5048
|
-
|
|
5414
|
+
export const CreateAgentRequestGuardrails$outboundSchema: z.ZodType<
|
|
5415
|
+
CreateAgentRequestGuardrails$Outbound,
|
|
5049
5416
|
z.ZodTypeDef,
|
|
5050
|
-
|
|
5417
|
+
CreateAgentRequestGuardrails
|
|
5051
5418
|
> = z.object({
|
|
5052
5419
|
id: z.string(),
|
|
5053
5420
|
sampleRate: z.number().default(50),
|
|
5054
|
-
executeOn:
|
|
5421
|
+
executeOn: CreateAgentRequestAgentsExecuteOn$outboundSchema,
|
|
5055
5422
|
}).transform((v) => {
|
|
5056
5423
|
return remap$(v, {
|
|
5057
5424
|
sampleRate: "sample_rate",
|
|
@@ -5059,16 +5426,22 @@ export const Guardrails$outboundSchema: z.ZodType<
|
|
|
5059
5426
|
});
|
|
5060
5427
|
});
|
|
5061
5428
|
|
|
5062
|
-
export function
|
|
5063
|
-
|
|
5429
|
+
export function createAgentRequestGuardrailsToJSON(
|
|
5430
|
+
createAgentRequestGuardrails: CreateAgentRequestGuardrails,
|
|
5431
|
+
): string {
|
|
5432
|
+
return JSON.stringify(
|
|
5433
|
+
CreateAgentRequestGuardrails$outboundSchema.parse(
|
|
5434
|
+
createAgentRequestGuardrails,
|
|
5435
|
+
),
|
|
5436
|
+
);
|
|
5064
5437
|
}
|
|
5065
|
-
export function
|
|
5438
|
+
export function createAgentRequestGuardrailsFromJSON(
|
|
5066
5439
|
jsonString: string,
|
|
5067
|
-
): SafeParseResult<
|
|
5440
|
+
): SafeParseResult<CreateAgentRequestGuardrails, SDKValidationError> {
|
|
5068
5441
|
return safeParse(
|
|
5069
5442
|
jsonString,
|
|
5070
|
-
(x) =>
|
|
5071
|
-
`Failed to parse '
|
|
5443
|
+
(x) => CreateAgentRequestGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
5444
|
+
`Failed to parse 'CreateAgentRequestGuardrails' from JSON`,
|
|
5072
5445
|
);
|
|
5073
5446
|
}
|
|
5074
5447
|
|
|
@@ -5103,7 +5476,8 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
5103
5476
|
]),
|
|
5104
5477
|
).optional(),
|
|
5105
5478
|
evaluators: z.array(z.lazy(() => Evaluators$inboundSchema)).optional(),
|
|
5106
|
-
guardrails: z.array(z.lazy(() =>
|
|
5479
|
+
guardrails: z.array(z.lazy(() => CreateAgentRequestGuardrails$inboundSchema))
|
|
5480
|
+
.optional(),
|
|
5107
5481
|
}).transform((v) => {
|
|
5108
5482
|
return remap$(v, {
|
|
5109
5483
|
"max_iterations": "maxIterations",
|
|
@@ -5136,7 +5510,7 @@ export type Settings$Outbound = {
|
|
|
5136
5510
|
>
|
|
5137
5511
|
| undefined;
|
|
5138
5512
|
evaluators?: Array<Evaluators$Outbound> | undefined;
|
|
5139
|
-
guardrails?: Array<
|
|
5513
|
+
guardrails?: Array<CreateAgentRequestGuardrails$Outbound> | undefined;
|
|
5140
5514
|
};
|
|
5141
5515
|
|
|
5142
5516
|
/** @internal */
|
|
@@ -5170,7 +5544,8 @@ export const Settings$outboundSchema: z.ZodType<
|
|
|
5170
5544
|
]),
|
|
5171
5545
|
).optional(),
|
|
5172
5546
|
evaluators: z.array(z.lazy(() => Evaluators$outboundSchema)).optional(),
|
|
5173
|
-
guardrails: z.array(z.lazy(() =>
|
|
5547
|
+
guardrails: z.array(z.lazy(() => CreateAgentRequestGuardrails$outboundSchema))
|
|
5548
|
+
.optional(),
|
|
5174
5549
|
}).transform((v) => {
|
|
5175
5550
|
return remap$(v, {
|
|
5176
5551
|
maxIterations: "max_iterations",
|
|
@@ -5526,13 +5901,13 @@ export function createAgentRequestToolsFromJSON(
|
|
|
5526
5901
|
}
|
|
5527
5902
|
|
|
5528
5903
|
/** @internal */
|
|
5529
|
-
export const
|
|
5530
|
-
typeof
|
|
5531
|
-
|
|
5904
|
+
export const CreateAgentRequestAgentsResponseExecuteOn$inboundSchema:
|
|
5905
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponseExecuteOn> = z
|
|
5906
|
+
.nativeEnum(CreateAgentRequestAgentsResponseExecuteOn);
|
|
5532
5907
|
/** @internal */
|
|
5533
|
-
export const
|
|
5534
|
-
typeof
|
|
5535
|
-
|
|
5908
|
+
export const CreateAgentRequestAgentsResponseExecuteOn$outboundSchema:
|
|
5909
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponseExecuteOn> =
|
|
5910
|
+
CreateAgentRequestAgentsResponseExecuteOn$inboundSchema;
|
|
5536
5911
|
|
|
5537
5912
|
/** @internal */
|
|
5538
5913
|
export const CreateAgentRequestEvaluators$inboundSchema: z.ZodType<
|
|
@@ -5542,7 +5917,7 @@ export const CreateAgentRequestEvaluators$inboundSchema: z.ZodType<
|
|
|
5542
5917
|
> = z.object({
|
|
5543
5918
|
id: z.string(),
|
|
5544
5919
|
sample_rate: z.number().default(50),
|
|
5545
|
-
execute_on:
|
|
5920
|
+
execute_on: CreateAgentRequestAgentsResponseExecuteOn$inboundSchema,
|
|
5546
5921
|
}).transform((v) => {
|
|
5547
5922
|
return remap$(v, {
|
|
5548
5923
|
"sample_rate": "sampleRate",
|
|
@@ -5564,7 +5939,7 @@ export const CreateAgentRequestEvaluators$outboundSchema: z.ZodType<
|
|
|
5564
5939
|
> = z.object({
|
|
5565
5940
|
id: z.string(),
|
|
5566
5941
|
sampleRate: z.number().default(50),
|
|
5567
|
-
executeOn:
|
|
5942
|
+
executeOn: CreateAgentRequestAgentsResponseExecuteOn$outboundSchema,
|
|
5568
5943
|
}).transform((v) => {
|
|
5569
5944
|
return remap$(v, {
|
|
5570
5945
|
sampleRate: "sample_rate",
|
|
@@ -5592,23 +5967,23 @@ export function createAgentRequestEvaluatorsFromJSON(
|
|
|
5592
5967
|
}
|
|
5593
5968
|
|
|
5594
5969
|
/** @internal */
|
|
5595
|
-
export const
|
|
5596
|
-
z.ZodNativeEnum<typeof
|
|
5597
|
-
.nativeEnum(
|
|
5970
|
+
export const CreateAgentRequestAgentsResponse201ExecuteOn$inboundSchema:
|
|
5971
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponse201ExecuteOn> = z
|
|
5972
|
+
.nativeEnum(CreateAgentRequestAgentsResponse201ExecuteOn);
|
|
5598
5973
|
/** @internal */
|
|
5599
|
-
export const
|
|
5600
|
-
z.ZodNativeEnum<typeof
|
|
5601
|
-
|
|
5974
|
+
export const CreateAgentRequestAgentsResponse201ExecuteOn$outboundSchema:
|
|
5975
|
+
z.ZodNativeEnum<typeof CreateAgentRequestAgentsResponse201ExecuteOn> =
|
|
5976
|
+
CreateAgentRequestAgentsResponse201ExecuteOn$inboundSchema;
|
|
5602
5977
|
|
|
5603
5978
|
/** @internal */
|
|
5604
|
-
export const
|
|
5605
|
-
|
|
5979
|
+
export const CreateAgentRequestAgentsGuardrails$inboundSchema: z.ZodType<
|
|
5980
|
+
CreateAgentRequestAgentsGuardrails,
|
|
5606
5981
|
z.ZodTypeDef,
|
|
5607
5982
|
unknown
|
|
5608
5983
|
> = z.object({
|
|
5609
5984
|
id: z.string(),
|
|
5610
5985
|
sample_rate: z.number().default(50),
|
|
5611
|
-
execute_on:
|
|
5986
|
+
execute_on: CreateAgentRequestAgentsResponse201ExecuteOn$inboundSchema,
|
|
5612
5987
|
}).transform((v) => {
|
|
5613
5988
|
return remap$(v, {
|
|
5614
5989
|
"sample_rate": "sampleRate",
|
|
@@ -5616,21 +5991,21 @@ export const CreateAgentRequestGuardrails$inboundSchema: z.ZodType<
|
|
|
5616
5991
|
});
|
|
5617
5992
|
});
|
|
5618
5993
|
/** @internal */
|
|
5619
|
-
export type
|
|
5994
|
+
export type CreateAgentRequestAgentsGuardrails$Outbound = {
|
|
5620
5995
|
id: string;
|
|
5621
5996
|
sample_rate: number;
|
|
5622
5997
|
execute_on: string;
|
|
5623
5998
|
};
|
|
5624
5999
|
|
|
5625
6000
|
/** @internal */
|
|
5626
|
-
export const
|
|
5627
|
-
|
|
6001
|
+
export const CreateAgentRequestAgentsGuardrails$outboundSchema: z.ZodType<
|
|
6002
|
+
CreateAgentRequestAgentsGuardrails$Outbound,
|
|
5628
6003
|
z.ZodTypeDef,
|
|
5629
|
-
|
|
6004
|
+
CreateAgentRequestAgentsGuardrails
|
|
5630
6005
|
> = z.object({
|
|
5631
6006
|
id: z.string(),
|
|
5632
6007
|
sampleRate: z.number().default(50),
|
|
5633
|
-
executeOn:
|
|
6008
|
+
executeOn: CreateAgentRequestAgentsResponse201ExecuteOn$outboundSchema,
|
|
5634
6009
|
}).transform((v) => {
|
|
5635
6010
|
return remap$(v, {
|
|
5636
6011
|
sampleRate: "sample_rate",
|
|
@@ -5638,22 +6013,23 @@ export const CreateAgentRequestGuardrails$outboundSchema: z.ZodType<
|
|
|
5638
6013
|
});
|
|
5639
6014
|
});
|
|
5640
6015
|
|
|
5641
|
-
export function
|
|
5642
|
-
|
|
6016
|
+
export function createAgentRequestAgentsGuardrailsToJSON(
|
|
6017
|
+
createAgentRequestAgentsGuardrails: CreateAgentRequestAgentsGuardrails,
|
|
5643
6018
|
): string {
|
|
5644
6019
|
return JSON.stringify(
|
|
5645
|
-
|
|
5646
|
-
|
|
6020
|
+
CreateAgentRequestAgentsGuardrails$outboundSchema.parse(
|
|
6021
|
+
createAgentRequestAgentsGuardrails,
|
|
5647
6022
|
),
|
|
5648
6023
|
);
|
|
5649
6024
|
}
|
|
5650
|
-
export function
|
|
6025
|
+
export function createAgentRequestAgentsGuardrailsFromJSON(
|
|
5651
6026
|
jsonString: string,
|
|
5652
|
-
): SafeParseResult<
|
|
6027
|
+
): SafeParseResult<CreateAgentRequestAgentsGuardrails, SDKValidationError> {
|
|
5653
6028
|
return safeParse(
|
|
5654
6029
|
jsonString,
|
|
5655
|
-
(x) =>
|
|
5656
|
-
|
|
6030
|
+
(x) =>
|
|
6031
|
+
CreateAgentRequestAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
6032
|
+
`Failed to parse 'CreateAgentRequestAgentsGuardrails' from JSON`,
|
|
5657
6033
|
);
|
|
5658
6034
|
}
|
|
5659
6035
|
|
|
@@ -5671,8 +6047,9 @@ export const CreateAgentRequestSettings$inboundSchema: z.ZodType<
|
|
|
5671
6047
|
.optional(),
|
|
5672
6048
|
evaluators: z.array(z.lazy(() => CreateAgentRequestEvaluators$inboundSchema))
|
|
5673
6049
|
.optional(),
|
|
5674
|
-
guardrails: z.array(
|
|
5675
|
-
.
|
|
6050
|
+
guardrails: z.array(
|
|
6051
|
+
z.lazy(() => CreateAgentRequestAgentsGuardrails$inboundSchema),
|
|
6052
|
+
).optional(),
|
|
5676
6053
|
}).transform((v) => {
|
|
5677
6054
|
return remap$(v, {
|
|
5678
6055
|
"max_iterations": "maxIterations",
|
|
@@ -5687,7 +6064,7 @@ export type CreateAgentRequestSettings$Outbound = {
|
|
|
5687
6064
|
tool_approval_required: string;
|
|
5688
6065
|
tools?: Array<CreateAgentRequestTools$Outbound> | undefined;
|
|
5689
6066
|
evaluators?: Array<CreateAgentRequestEvaluators$Outbound> | undefined;
|
|
5690
|
-
guardrails?: Array<
|
|
6067
|
+
guardrails?: Array<CreateAgentRequestAgentsGuardrails$Outbound> | undefined;
|
|
5691
6068
|
};
|
|
5692
6069
|
|
|
5693
6070
|
/** @internal */
|
|
@@ -5704,8 +6081,9 @@ export const CreateAgentRequestSettings$outboundSchema: z.ZodType<
|
|
|
5704
6081
|
.optional(),
|
|
5705
6082
|
evaluators: z.array(z.lazy(() => CreateAgentRequestEvaluators$outboundSchema))
|
|
5706
6083
|
.optional(),
|
|
5707
|
-
guardrails: z.array(
|
|
5708
|
-
.
|
|
6084
|
+
guardrails: z.array(
|
|
6085
|
+
z.lazy(() => CreateAgentRequestAgentsGuardrails$outboundSchema),
|
|
6086
|
+
).optional(),
|
|
5709
6087
|
}).transform((v) => {
|
|
5710
6088
|
return remap$(v, {
|
|
5711
6089
|
maxIterations: "max_iterations",
|
|
@@ -6352,6 +6730,119 @@ export const CreateAgentRequestModalities$outboundSchema: z.ZodNativeEnum<
|
|
|
6352
6730
|
typeof CreateAgentRequestModalities
|
|
6353
6731
|
> = CreateAgentRequestModalities$inboundSchema;
|
|
6354
6732
|
|
|
6733
|
+
/** @internal */
|
|
6734
|
+
export const CreateAgentRequestIdAgents1$inboundSchema: z.ZodNativeEnum<
|
|
6735
|
+
typeof CreateAgentRequestIdAgents1
|
|
6736
|
+
> = z.nativeEnum(CreateAgentRequestIdAgents1);
|
|
6737
|
+
/** @internal */
|
|
6738
|
+
export const CreateAgentRequestIdAgents1$outboundSchema: z.ZodNativeEnum<
|
|
6739
|
+
typeof CreateAgentRequestIdAgents1
|
|
6740
|
+
> = CreateAgentRequestIdAgents1$inboundSchema;
|
|
6741
|
+
|
|
6742
|
+
/** @internal */
|
|
6743
|
+
export const CreateAgentRequestId$inboundSchema: z.ZodType<
|
|
6744
|
+
CreateAgentRequestId,
|
|
6745
|
+
z.ZodTypeDef,
|
|
6746
|
+
unknown
|
|
6747
|
+
> = z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]);
|
|
6748
|
+
/** @internal */
|
|
6749
|
+
export type CreateAgentRequestId$Outbound = string | string;
|
|
6750
|
+
|
|
6751
|
+
/** @internal */
|
|
6752
|
+
export const CreateAgentRequestId$outboundSchema: z.ZodType<
|
|
6753
|
+
CreateAgentRequestId$Outbound,
|
|
6754
|
+
z.ZodTypeDef,
|
|
6755
|
+
CreateAgentRequestId
|
|
6756
|
+
> = z.union([CreateAgentRequestIdAgents1$outboundSchema, z.string()]);
|
|
6757
|
+
|
|
6758
|
+
export function createAgentRequestIdToJSON(
|
|
6759
|
+
createAgentRequestId: CreateAgentRequestId,
|
|
6760
|
+
): string {
|
|
6761
|
+
return JSON.stringify(
|
|
6762
|
+
CreateAgentRequestId$outboundSchema.parse(createAgentRequestId),
|
|
6763
|
+
);
|
|
6764
|
+
}
|
|
6765
|
+
export function createAgentRequestIdFromJSON(
|
|
6766
|
+
jsonString: string,
|
|
6767
|
+
): SafeParseResult<CreateAgentRequestId, SDKValidationError> {
|
|
6768
|
+
return safeParse(
|
|
6769
|
+
jsonString,
|
|
6770
|
+
(x) => CreateAgentRequestId$inboundSchema.parse(JSON.parse(x)),
|
|
6771
|
+
`Failed to parse 'CreateAgentRequestId' from JSON`,
|
|
6772
|
+
);
|
|
6773
|
+
}
|
|
6774
|
+
|
|
6775
|
+
/** @internal */
|
|
6776
|
+
export const CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$inboundSchema:
|
|
6777
|
+
z.ZodNativeEnum<
|
|
6778
|
+
typeof CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn
|
|
6779
|
+
> = z.nativeEnum(CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn);
|
|
6780
|
+
/** @internal */
|
|
6781
|
+
export const CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$outboundSchema:
|
|
6782
|
+
z.ZodNativeEnum<
|
|
6783
|
+
typeof CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn
|
|
6784
|
+
> = CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$inboundSchema;
|
|
6785
|
+
|
|
6786
|
+
/** @internal */
|
|
6787
|
+
export const CreateAgentRequestAgentsResponseGuardrails$inboundSchema:
|
|
6788
|
+
z.ZodType<CreateAgentRequestAgentsResponseGuardrails, z.ZodTypeDef, unknown> =
|
|
6789
|
+
z.object({
|
|
6790
|
+
id: z.union([CreateAgentRequestIdAgents1$inboundSchema, z.string()]),
|
|
6791
|
+
execute_on:
|
|
6792
|
+
CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$inboundSchema,
|
|
6793
|
+
}).transform((v) => {
|
|
6794
|
+
return remap$(v, {
|
|
6795
|
+
"execute_on": "executeOn",
|
|
6796
|
+
});
|
|
6797
|
+
});
|
|
6798
|
+
/** @internal */
|
|
6799
|
+
export type CreateAgentRequestAgentsResponseGuardrails$Outbound = {
|
|
6800
|
+
id: string | string;
|
|
6801
|
+
execute_on: string;
|
|
6802
|
+
};
|
|
6803
|
+
|
|
6804
|
+
/** @internal */
|
|
6805
|
+
export const CreateAgentRequestAgentsResponseGuardrails$outboundSchema:
|
|
6806
|
+
z.ZodType<
|
|
6807
|
+
CreateAgentRequestAgentsResponseGuardrails$Outbound,
|
|
6808
|
+
z.ZodTypeDef,
|
|
6809
|
+
CreateAgentRequestAgentsResponseGuardrails
|
|
6810
|
+
> = z.object({
|
|
6811
|
+
id: z.union([CreateAgentRequestIdAgents1$outboundSchema, z.string()]),
|
|
6812
|
+
executeOn:
|
|
6813
|
+
CreateAgentRequestAgentsResponse201ApplicationJSONExecuteOn$outboundSchema,
|
|
6814
|
+
}).transform((v) => {
|
|
6815
|
+
return remap$(v, {
|
|
6816
|
+
executeOn: "execute_on",
|
|
6817
|
+
});
|
|
6818
|
+
});
|
|
6819
|
+
|
|
6820
|
+
export function createAgentRequestAgentsResponseGuardrailsToJSON(
|
|
6821
|
+
createAgentRequestAgentsResponseGuardrails:
|
|
6822
|
+
CreateAgentRequestAgentsResponseGuardrails,
|
|
6823
|
+
): string {
|
|
6824
|
+
return JSON.stringify(
|
|
6825
|
+
CreateAgentRequestAgentsResponseGuardrails$outboundSchema.parse(
|
|
6826
|
+
createAgentRequestAgentsResponseGuardrails,
|
|
6827
|
+
),
|
|
6828
|
+
);
|
|
6829
|
+
}
|
|
6830
|
+
export function createAgentRequestAgentsResponseGuardrailsFromJSON(
|
|
6831
|
+
jsonString: string,
|
|
6832
|
+
): SafeParseResult<
|
|
6833
|
+
CreateAgentRequestAgentsResponseGuardrails,
|
|
6834
|
+
SDKValidationError
|
|
6835
|
+
> {
|
|
6836
|
+
return safeParse(
|
|
6837
|
+
jsonString,
|
|
6838
|
+
(x) =>
|
|
6839
|
+
CreateAgentRequestAgentsResponseGuardrails$inboundSchema.parse(
|
|
6840
|
+
JSON.parse(x),
|
|
6841
|
+
),
|
|
6842
|
+
`Failed to parse 'CreateAgentRequestAgentsResponseGuardrails' from JSON`,
|
|
6843
|
+
);
|
|
6844
|
+
}
|
|
6845
|
+
|
|
6355
6846
|
/** @internal */
|
|
6356
6847
|
export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
6357
6848
|
CreateAgentRequestParameters,
|
|
@@ -6395,6 +6886,9 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
|
|
|
6395
6886
|
parallel_tool_calls: z.boolean().optional(),
|
|
6396
6887
|
modalities: z.nullable(z.array(CreateAgentRequestModalities$inboundSchema))
|
|
6397
6888
|
.optional(),
|
|
6889
|
+
guardrails: z.array(
|
|
6890
|
+
z.lazy(() => CreateAgentRequestAgentsResponseGuardrails$inboundSchema),
|
|
6891
|
+
).optional(),
|
|
6398
6892
|
}).transform((v) => {
|
|
6399
6893
|
return remap$(v, {
|
|
6400
6894
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -6444,6 +6938,9 @@ export type CreateAgentRequestParameters$Outbound = {
|
|
|
6444
6938
|
| undefined;
|
|
6445
6939
|
parallel_tool_calls?: boolean | undefined;
|
|
6446
6940
|
modalities?: Array<string> | null | undefined;
|
|
6941
|
+
guardrails?:
|
|
6942
|
+
| Array<CreateAgentRequestAgentsResponseGuardrails$Outbound>
|
|
6943
|
+
| undefined;
|
|
6447
6944
|
};
|
|
6448
6945
|
|
|
6449
6946
|
/** @internal */
|
|
@@ -6489,6 +6986,9 @@ export const CreateAgentRequestParameters$outboundSchema: z.ZodType<
|
|
|
6489
6986
|
parallelToolCalls: z.boolean().optional(),
|
|
6490
6987
|
modalities: z.nullable(z.array(CreateAgentRequestModalities$outboundSchema))
|
|
6491
6988
|
.optional(),
|
|
6989
|
+
guardrails: z.array(
|
|
6990
|
+
z.lazy(() => CreateAgentRequestAgentsResponseGuardrails$outboundSchema),
|
|
6991
|
+
).optional(),
|
|
6492
6992
|
}).transform((v) => {
|
|
6493
6993
|
return remap$(v, {
|
|
6494
6994
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -7286,6 +7786,140 @@ export const CreateAgentRequestFallbackModelConfigurationModalities$outboundSche
|
|
|
7286
7786
|
typeof CreateAgentRequestFallbackModelConfigurationModalities
|
|
7287
7787
|
> = CreateAgentRequestFallbackModelConfigurationModalities$inboundSchema;
|
|
7288
7788
|
|
|
7789
|
+
/** @internal */
|
|
7790
|
+
export const CreateAgentRequestIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
|
|
7791
|
+
typeof CreateAgentRequestIdAgentsResponse1
|
|
7792
|
+
> = z.nativeEnum(CreateAgentRequestIdAgentsResponse1);
|
|
7793
|
+
/** @internal */
|
|
7794
|
+
export const CreateAgentRequestIdAgentsResponse1$outboundSchema:
|
|
7795
|
+
z.ZodNativeEnum<typeof CreateAgentRequestIdAgentsResponse1> =
|
|
7796
|
+
CreateAgentRequestIdAgentsResponse1$inboundSchema;
|
|
7797
|
+
|
|
7798
|
+
/** @internal */
|
|
7799
|
+
export const CreateAgentRequestFallbackModelConfigurationId$inboundSchema:
|
|
7800
|
+
z.ZodType<
|
|
7801
|
+
CreateAgentRequestFallbackModelConfigurationId,
|
|
7802
|
+
z.ZodTypeDef,
|
|
7803
|
+
unknown
|
|
7804
|
+
> = z.union([CreateAgentRequestIdAgentsResponse1$inboundSchema, z.string()]);
|
|
7805
|
+
/** @internal */
|
|
7806
|
+
export type CreateAgentRequestFallbackModelConfigurationId$Outbound =
|
|
7807
|
+
| string
|
|
7808
|
+
| string;
|
|
7809
|
+
|
|
7810
|
+
/** @internal */
|
|
7811
|
+
export const CreateAgentRequestFallbackModelConfigurationId$outboundSchema:
|
|
7812
|
+
z.ZodType<
|
|
7813
|
+
CreateAgentRequestFallbackModelConfigurationId$Outbound,
|
|
7814
|
+
z.ZodTypeDef,
|
|
7815
|
+
CreateAgentRequestFallbackModelConfigurationId
|
|
7816
|
+
> = z.union([CreateAgentRequestIdAgentsResponse1$outboundSchema, z.string()]);
|
|
7817
|
+
|
|
7818
|
+
export function createAgentRequestFallbackModelConfigurationIdToJSON(
|
|
7819
|
+
createAgentRequestFallbackModelConfigurationId:
|
|
7820
|
+
CreateAgentRequestFallbackModelConfigurationId,
|
|
7821
|
+
): string {
|
|
7822
|
+
return JSON.stringify(
|
|
7823
|
+
CreateAgentRequestFallbackModelConfigurationId$outboundSchema.parse(
|
|
7824
|
+
createAgentRequestFallbackModelConfigurationId,
|
|
7825
|
+
),
|
|
7826
|
+
);
|
|
7827
|
+
}
|
|
7828
|
+
export function createAgentRequestFallbackModelConfigurationIdFromJSON(
|
|
7829
|
+
jsonString: string,
|
|
7830
|
+
): SafeParseResult<
|
|
7831
|
+
CreateAgentRequestFallbackModelConfigurationId,
|
|
7832
|
+
SDKValidationError
|
|
7833
|
+
> {
|
|
7834
|
+
return safeParse(
|
|
7835
|
+
jsonString,
|
|
7836
|
+
(x) =>
|
|
7837
|
+
CreateAgentRequestFallbackModelConfigurationId$inboundSchema.parse(
|
|
7838
|
+
JSON.parse(x),
|
|
7839
|
+
),
|
|
7840
|
+
`Failed to parse 'CreateAgentRequestFallbackModelConfigurationId' from JSON`,
|
|
7841
|
+
);
|
|
7842
|
+
}
|
|
7843
|
+
|
|
7844
|
+
/** @internal */
|
|
7845
|
+
export const CreateAgentRequestFallbackModelConfigurationExecuteOn$inboundSchema:
|
|
7846
|
+
z.ZodNativeEnum<
|
|
7847
|
+
typeof CreateAgentRequestFallbackModelConfigurationExecuteOn
|
|
7848
|
+
> = z.nativeEnum(CreateAgentRequestFallbackModelConfigurationExecuteOn);
|
|
7849
|
+
/** @internal */
|
|
7850
|
+
export const CreateAgentRequestFallbackModelConfigurationExecuteOn$outboundSchema:
|
|
7851
|
+
z.ZodNativeEnum<
|
|
7852
|
+
typeof CreateAgentRequestFallbackModelConfigurationExecuteOn
|
|
7853
|
+
> = CreateAgentRequestFallbackModelConfigurationExecuteOn$inboundSchema;
|
|
7854
|
+
|
|
7855
|
+
/** @internal */
|
|
7856
|
+
export const CreateAgentRequestFallbackModelConfigurationGuardrails$inboundSchema:
|
|
7857
|
+
z.ZodType<
|
|
7858
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails,
|
|
7859
|
+
z.ZodTypeDef,
|
|
7860
|
+
unknown
|
|
7861
|
+
> = z.object({
|
|
7862
|
+
id: z.union([
|
|
7863
|
+
CreateAgentRequestIdAgentsResponse1$inboundSchema,
|
|
7864
|
+
z.string(),
|
|
7865
|
+
]),
|
|
7866
|
+
execute_on:
|
|
7867
|
+
CreateAgentRequestFallbackModelConfigurationExecuteOn$inboundSchema,
|
|
7868
|
+
}).transform((v) => {
|
|
7869
|
+
return remap$(v, {
|
|
7870
|
+
"execute_on": "executeOn",
|
|
7871
|
+
});
|
|
7872
|
+
});
|
|
7873
|
+
/** @internal */
|
|
7874
|
+
export type CreateAgentRequestFallbackModelConfigurationGuardrails$Outbound = {
|
|
7875
|
+
id: string | string;
|
|
7876
|
+
execute_on: string;
|
|
7877
|
+
};
|
|
7878
|
+
|
|
7879
|
+
/** @internal */
|
|
7880
|
+
export const CreateAgentRequestFallbackModelConfigurationGuardrails$outboundSchema:
|
|
7881
|
+
z.ZodType<
|
|
7882
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails$Outbound,
|
|
7883
|
+
z.ZodTypeDef,
|
|
7884
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails
|
|
7885
|
+
> = z.object({
|
|
7886
|
+
id: z.union([
|
|
7887
|
+
CreateAgentRequestIdAgentsResponse1$outboundSchema,
|
|
7888
|
+
z.string(),
|
|
7889
|
+
]),
|
|
7890
|
+
executeOn:
|
|
7891
|
+
CreateAgentRequestFallbackModelConfigurationExecuteOn$outboundSchema,
|
|
7892
|
+
}).transform((v) => {
|
|
7893
|
+
return remap$(v, {
|
|
7894
|
+
executeOn: "execute_on",
|
|
7895
|
+
});
|
|
7896
|
+
});
|
|
7897
|
+
|
|
7898
|
+
export function createAgentRequestFallbackModelConfigurationGuardrailsToJSON(
|
|
7899
|
+
createAgentRequestFallbackModelConfigurationGuardrails:
|
|
7900
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails,
|
|
7901
|
+
): string {
|
|
7902
|
+
return JSON.stringify(
|
|
7903
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails$outboundSchema.parse(
|
|
7904
|
+
createAgentRequestFallbackModelConfigurationGuardrails,
|
|
7905
|
+
),
|
|
7906
|
+
);
|
|
7907
|
+
}
|
|
7908
|
+
export function createAgentRequestFallbackModelConfigurationGuardrailsFromJSON(
|
|
7909
|
+
jsonString: string,
|
|
7910
|
+
): SafeParseResult<
|
|
7911
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails,
|
|
7912
|
+
SDKValidationError
|
|
7913
|
+
> {
|
|
7914
|
+
return safeParse(
|
|
7915
|
+
jsonString,
|
|
7916
|
+
(x) =>
|
|
7917
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails$inboundSchema
|
|
7918
|
+
.parse(JSON.parse(x)),
|
|
7919
|
+
`Failed to parse 'CreateAgentRequestFallbackModelConfigurationGuardrails' from JSON`,
|
|
7920
|
+
);
|
|
7921
|
+
}
|
|
7922
|
+
|
|
7289
7923
|
/** @internal */
|
|
7290
7924
|
export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchema:
|
|
7291
7925
|
z.ZodType<
|
|
@@ -7342,6 +7976,11 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
|
|
|
7342
7976
|
CreateAgentRequestFallbackModelConfigurationModalities$inboundSchema,
|
|
7343
7977
|
),
|
|
7344
7978
|
).optional(),
|
|
7979
|
+
guardrails: z.array(
|
|
7980
|
+
z.lazy(() =>
|
|
7981
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails$inboundSchema
|
|
7982
|
+
),
|
|
7983
|
+
).optional(),
|
|
7345
7984
|
}).transform((v) => {
|
|
7346
7985
|
return remap$(v, {
|
|
7347
7986
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -7397,6 +8036,9 @@ export type CreateAgentRequestFallbackModelConfigurationParameters$Outbound = {
|
|
|
7397
8036
|
| undefined;
|
|
7398
8037
|
parallel_tool_calls?: boolean | undefined;
|
|
7399
8038
|
modalities?: Array<string> | null | undefined;
|
|
8039
|
+
guardrails?:
|
|
8040
|
+
| Array<CreateAgentRequestFallbackModelConfigurationGuardrails$Outbound>
|
|
8041
|
+
| undefined;
|
|
7400
8042
|
};
|
|
7401
8043
|
|
|
7402
8044
|
/** @internal */
|
|
@@ -7455,6 +8097,11 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$outboundSche
|
|
|
7455
8097
|
CreateAgentRequestFallbackModelConfigurationModalities$outboundSchema,
|
|
7456
8098
|
),
|
|
7457
8099
|
).optional(),
|
|
8100
|
+
guardrails: z.array(
|
|
8101
|
+
z.lazy(() =>
|
|
8102
|
+
CreateAgentRequestFallbackModelConfigurationGuardrails$outboundSchema
|
|
8103
|
+
),
|
|
8104
|
+
).optional(),
|
|
7458
8105
|
}).transform((v) => {
|
|
7459
8106
|
return remap$(v, {
|
|
7460
8107
|
frequencyPenalty: "frequency_penalty",
|