@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
|
@@ -219,6 +219,41 @@ export type ModelConfigurationModalities = ClosedEnum<
|
|
|
219
219
|
typeof ModelConfigurationModalities
|
|
220
220
|
>;
|
|
221
221
|
|
|
222
|
+
/**
|
|
223
|
+
* The key of the guardrail.
|
|
224
|
+
*/
|
|
225
|
+
export const UpdateAgentId1 = {
|
|
226
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
227
|
+
} as const;
|
|
228
|
+
/**
|
|
229
|
+
* The key of the guardrail.
|
|
230
|
+
*/
|
|
231
|
+
export type UpdateAgentId1 = ClosedEnum<typeof UpdateAgentId1>;
|
|
232
|
+
|
|
233
|
+
export type ModelConfigurationId = UpdateAgentId1 | string;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
237
|
+
*/
|
|
238
|
+
export const ModelConfigurationExecuteOn = {
|
|
239
|
+
Input: "input",
|
|
240
|
+
Output: "output",
|
|
241
|
+
} as const;
|
|
242
|
+
/**
|
|
243
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
244
|
+
*/
|
|
245
|
+
export type ModelConfigurationExecuteOn = ClosedEnum<
|
|
246
|
+
typeof ModelConfigurationExecuteOn
|
|
247
|
+
>;
|
|
248
|
+
|
|
249
|
+
export type ModelConfigurationGuardrails = {
|
|
250
|
+
id: UpdateAgentId1 | string;
|
|
251
|
+
/**
|
|
252
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
253
|
+
*/
|
|
254
|
+
executeOn: ModelConfigurationExecuteOn;
|
|
255
|
+
};
|
|
256
|
+
|
|
222
257
|
/**
|
|
223
258
|
* 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.
|
|
224
259
|
*/
|
|
@@ -324,6 +359,10 @@ export type ModelConfigurationParameters = {
|
|
|
324
359
|
* 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"].
|
|
325
360
|
*/
|
|
326
361
|
modalities?: Array<ModelConfigurationModalities> | null | undefined;
|
|
362
|
+
/**
|
|
363
|
+
* A list of guardrails to apply to the request.
|
|
364
|
+
*/
|
|
365
|
+
guardrails?: Array<ModelConfigurationGuardrails> | undefined;
|
|
327
366
|
};
|
|
328
367
|
|
|
329
368
|
/**
|
|
@@ -578,6 +617,43 @@ export type UpdateAgentFallbackModelConfigurationModalities = ClosedEnum<
|
|
|
578
617
|
typeof UpdateAgentFallbackModelConfigurationModalities
|
|
579
618
|
>;
|
|
580
619
|
|
|
620
|
+
/**
|
|
621
|
+
* The key of the guardrail.
|
|
622
|
+
*/
|
|
623
|
+
export const UpdateAgentIdAgents1 = {
|
|
624
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
625
|
+
} as const;
|
|
626
|
+
/**
|
|
627
|
+
* The key of the guardrail.
|
|
628
|
+
*/
|
|
629
|
+
export type UpdateAgentIdAgents1 = ClosedEnum<typeof UpdateAgentIdAgents1>;
|
|
630
|
+
|
|
631
|
+
export type UpdateAgentFallbackModelConfigurationId =
|
|
632
|
+
| UpdateAgentIdAgents1
|
|
633
|
+
| string;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
637
|
+
*/
|
|
638
|
+
export const UpdateAgentFallbackModelConfigurationExecuteOn = {
|
|
639
|
+
Input: "input",
|
|
640
|
+
Output: "output",
|
|
641
|
+
} as const;
|
|
642
|
+
/**
|
|
643
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
644
|
+
*/
|
|
645
|
+
export type UpdateAgentFallbackModelConfigurationExecuteOn = ClosedEnum<
|
|
646
|
+
typeof UpdateAgentFallbackModelConfigurationExecuteOn
|
|
647
|
+
>;
|
|
648
|
+
|
|
649
|
+
export type UpdateAgentFallbackModelConfigurationGuardrails = {
|
|
650
|
+
id: UpdateAgentIdAgents1 | string;
|
|
651
|
+
/**
|
|
652
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
653
|
+
*/
|
|
654
|
+
executeOn: UpdateAgentFallbackModelConfigurationExecuteOn;
|
|
655
|
+
};
|
|
656
|
+
|
|
581
657
|
/**
|
|
582
658
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
583
659
|
*/
|
|
@@ -694,6 +770,12 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
|
|
|
694
770
|
| Array<UpdateAgentFallbackModelConfigurationModalities>
|
|
695
771
|
| null
|
|
696
772
|
| undefined;
|
|
773
|
+
/**
|
|
774
|
+
* A list of guardrails to apply to the request.
|
|
775
|
+
*/
|
|
776
|
+
guardrails?:
|
|
777
|
+
| Array<UpdateAgentFallbackModelConfigurationGuardrails>
|
|
778
|
+
| undefined;
|
|
697
779
|
};
|
|
698
780
|
|
|
699
781
|
/**
|
|
@@ -1663,6 +1745,43 @@ export const UpdateAgentModalities = {
|
|
|
1663
1745
|
} as const;
|
|
1664
1746
|
export type UpdateAgentModalities = ClosedEnum<typeof UpdateAgentModalities>;
|
|
1665
1747
|
|
|
1748
|
+
/**
|
|
1749
|
+
* The key of the guardrail.
|
|
1750
|
+
*/
|
|
1751
|
+
export const UpdateAgentIdAgentsResponse1 = {
|
|
1752
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
1753
|
+
} as const;
|
|
1754
|
+
/**
|
|
1755
|
+
* The key of the guardrail.
|
|
1756
|
+
*/
|
|
1757
|
+
export type UpdateAgentIdAgentsResponse1 = ClosedEnum<
|
|
1758
|
+
typeof UpdateAgentIdAgentsResponse1
|
|
1759
|
+
>;
|
|
1760
|
+
|
|
1761
|
+
export type UpdateAgentId = UpdateAgentIdAgentsResponse1 | string;
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
1765
|
+
*/
|
|
1766
|
+
export const UpdateAgentAgentsResponse200ApplicationJSONExecuteOn = {
|
|
1767
|
+
Input: "input",
|
|
1768
|
+
Output: "output",
|
|
1769
|
+
} as const;
|
|
1770
|
+
/**
|
|
1771
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
1772
|
+
*/
|
|
1773
|
+
export type UpdateAgentAgentsResponse200ApplicationJSONExecuteOn = ClosedEnum<
|
|
1774
|
+
typeof UpdateAgentAgentsResponse200ApplicationJSONExecuteOn
|
|
1775
|
+
>;
|
|
1776
|
+
|
|
1777
|
+
export type UpdateAgentAgentsResponseGuardrails = {
|
|
1778
|
+
id: UpdateAgentIdAgentsResponse1 | string;
|
|
1779
|
+
/**
|
|
1780
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
1781
|
+
*/
|
|
1782
|
+
executeOn: UpdateAgentAgentsResponse200ApplicationJSONExecuteOn;
|
|
1783
|
+
};
|
|
1784
|
+
|
|
1666
1785
|
/**
|
|
1667
1786
|
* 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.
|
|
1668
1787
|
*/
|
|
@@ -1771,6 +1890,10 @@ export type UpdateAgentParameters = {
|
|
|
1771
1890
|
* 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"].
|
|
1772
1891
|
*/
|
|
1773
1892
|
modalities?: Array<UpdateAgentModalities> | null | undefined;
|
|
1893
|
+
/**
|
|
1894
|
+
* A list of guardrails to apply to the request.
|
|
1895
|
+
*/
|
|
1896
|
+
guardrails?: Array<UpdateAgentAgentsResponseGuardrails> | undefined;
|
|
1774
1897
|
};
|
|
1775
1898
|
|
|
1776
1899
|
/**
|
|
@@ -2002,6 +2125,45 @@ export type UpdateAgentFallbackModelConfigurationAgentsModalities = ClosedEnum<
|
|
|
2002
2125
|
typeof UpdateAgentFallbackModelConfigurationAgentsModalities
|
|
2003
2126
|
>;
|
|
2004
2127
|
|
|
2128
|
+
/**
|
|
2129
|
+
* The key of the guardrail.
|
|
2130
|
+
*/
|
|
2131
|
+
export const UpdateAgentIdAgentsResponse2001 = {
|
|
2132
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
2133
|
+
} as const;
|
|
2134
|
+
/**
|
|
2135
|
+
* The key of the guardrail.
|
|
2136
|
+
*/
|
|
2137
|
+
export type UpdateAgentIdAgentsResponse2001 = ClosedEnum<
|
|
2138
|
+
typeof UpdateAgentIdAgentsResponse2001
|
|
2139
|
+
>;
|
|
2140
|
+
|
|
2141
|
+
export type UpdateAgentFallbackModelConfigurationAgentsId =
|
|
2142
|
+
| UpdateAgentIdAgentsResponse2001
|
|
2143
|
+
| string;
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2147
|
+
*/
|
|
2148
|
+
export const UpdateAgentFallbackModelConfigurationAgentsExecuteOn = {
|
|
2149
|
+
Input: "input",
|
|
2150
|
+
Output: "output",
|
|
2151
|
+
} as const;
|
|
2152
|
+
/**
|
|
2153
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2154
|
+
*/
|
|
2155
|
+
export type UpdateAgentFallbackModelConfigurationAgentsExecuteOn = ClosedEnum<
|
|
2156
|
+
typeof UpdateAgentFallbackModelConfigurationAgentsExecuteOn
|
|
2157
|
+
>;
|
|
2158
|
+
|
|
2159
|
+
export type UpdateAgentFallbackModelConfigurationAgentsGuardrails = {
|
|
2160
|
+
id: UpdateAgentIdAgentsResponse2001 | string;
|
|
2161
|
+
/**
|
|
2162
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
2163
|
+
*/
|
|
2164
|
+
executeOn: UpdateAgentFallbackModelConfigurationAgentsExecuteOn;
|
|
2165
|
+
};
|
|
2166
|
+
|
|
2005
2167
|
/**
|
|
2006
2168
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
2007
2169
|
*/
|
|
@@ -2118,6 +2280,12 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
|
|
|
2118
2280
|
| Array<UpdateAgentFallbackModelConfigurationAgentsModalities>
|
|
2119
2281
|
| null
|
|
2120
2282
|
| undefined;
|
|
2283
|
+
/**
|
|
2284
|
+
* A list of guardrails to apply to the request.
|
|
2285
|
+
*/
|
|
2286
|
+
guardrails?:
|
|
2287
|
+
| Array<UpdateAgentFallbackModelConfigurationAgentsGuardrails>
|
|
2288
|
+
| undefined;
|
|
2121
2289
|
};
|
|
2122
2290
|
|
|
2123
2291
|
/**
|
|
@@ -2839,6 +3007,109 @@ export const ModelConfigurationModalities$outboundSchema: z.ZodNativeEnum<
|
|
|
2839
3007
|
typeof ModelConfigurationModalities
|
|
2840
3008
|
> = ModelConfigurationModalities$inboundSchema;
|
|
2841
3009
|
|
|
3010
|
+
/** @internal */
|
|
3011
|
+
export const UpdateAgentId1$inboundSchema: z.ZodNativeEnum<
|
|
3012
|
+
typeof UpdateAgentId1
|
|
3013
|
+
> = z.nativeEnum(UpdateAgentId1);
|
|
3014
|
+
/** @internal */
|
|
3015
|
+
export const UpdateAgentId1$outboundSchema: z.ZodNativeEnum<
|
|
3016
|
+
typeof UpdateAgentId1
|
|
3017
|
+
> = UpdateAgentId1$inboundSchema;
|
|
3018
|
+
|
|
3019
|
+
/** @internal */
|
|
3020
|
+
export const ModelConfigurationId$inboundSchema: z.ZodType<
|
|
3021
|
+
ModelConfigurationId,
|
|
3022
|
+
z.ZodTypeDef,
|
|
3023
|
+
unknown
|
|
3024
|
+
> = z.union([UpdateAgentId1$inboundSchema, z.string()]);
|
|
3025
|
+
/** @internal */
|
|
3026
|
+
export type ModelConfigurationId$Outbound = string | string;
|
|
3027
|
+
|
|
3028
|
+
/** @internal */
|
|
3029
|
+
export const ModelConfigurationId$outboundSchema: z.ZodType<
|
|
3030
|
+
ModelConfigurationId$Outbound,
|
|
3031
|
+
z.ZodTypeDef,
|
|
3032
|
+
ModelConfigurationId
|
|
3033
|
+
> = z.union([UpdateAgentId1$outboundSchema, z.string()]);
|
|
3034
|
+
|
|
3035
|
+
export function modelConfigurationIdToJSON(
|
|
3036
|
+
modelConfigurationId: ModelConfigurationId,
|
|
3037
|
+
): string {
|
|
3038
|
+
return JSON.stringify(
|
|
3039
|
+
ModelConfigurationId$outboundSchema.parse(modelConfigurationId),
|
|
3040
|
+
);
|
|
3041
|
+
}
|
|
3042
|
+
export function modelConfigurationIdFromJSON(
|
|
3043
|
+
jsonString: string,
|
|
3044
|
+
): SafeParseResult<ModelConfigurationId, SDKValidationError> {
|
|
3045
|
+
return safeParse(
|
|
3046
|
+
jsonString,
|
|
3047
|
+
(x) => ModelConfigurationId$inboundSchema.parse(JSON.parse(x)),
|
|
3048
|
+
`Failed to parse 'ModelConfigurationId' from JSON`,
|
|
3049
|
+
);
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
/** @internal */
|
|
3053
|
+
export const ModelConfigurationExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
3054
|
+
typeof ModelConfigurationExecuteOn
|
|
3055
|
+
> = z.nativeEnum(ModelConfigurationExecuteOn);
|
|
3056
|
+
/** @internal */
|
|
3057
|
+
export const ModelConfigurationExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
3058
|
+
typeof ModelConfigurationExecuteOn
|
|
3059
|
+
> = ModelConfigurationExecuteOn$inboundSchema;
|
|
3060
|
+
|
|
3061
|
+
/** @internal */
|
|
3062
|
+
export const ModelConfigurationGuardrails$inboundSchema: z.ZodType<
|
|
3063
|
+
ModelConfigurationGuardrails,
|
|
3064
|
+
z.ZodTypeDef,
|
|
3065
|
+
unknown
|
|
3066
|
+
> = z.object({
|
|
3067
|
+
id: z.union([UpdateAgentId1$inboundSchema, z.string()]),
|
|
3068
|
+
execute_on: ModelConfigurationExecuteOn$inboundSchema,
|
|
3069
|
+
}).transform((v) => {
|
|
3070
|
+
return remap$(v, {
|
|
3071
|
+
"execute_on": "executeOn",
|
|
3072
|
+
});
|
|
3073
|
+
});
|
|
3074
|
+
/** @internal */
|
|
3075
|
+
export type ModelConfigurationGuardrails$Outbound = {
|
|
3076
|
+
id: string | string;
|
|
3077
|
+
execute_on: string;
|
|
3078
|
+
};
|
|
3079
|
+
|
|
3080
|
+
/** @internal */
|
|
3081
|
+
export const ModelConfigurationGuardrails$outboundSchema: z.ZodType<
|
|
3082
|
+
ModelConfigurationGuardrails$Outbound,
|
|
3083
|
+
z.ZodTypeDef,
|
|
3084
|
+
ModelConfigurationGuardrails
|
|
3085
|
+
> = z.object({
|
|
3086
|
+
id: z.union([UpdateAgentId1$outboundSchema, z.string()]),
|
|
3087
|
+
executeOn: ModelConfigurationExecuteOn$outboundSchema,
|
|
3088
|
+
}).transform((v) => {
|
|
3089
|
+
return remap$(v, {
|
|
3090
|
+
executeOn: "execute_on",
|
|
3091
|
+
});
|
|
3092
|
+
});
|
|
3093
|
+
|
|
3094
|
+
export function modelConfigurationGuardrailsToJSON(
|
|
3095
|
+
modelConfigurationGuardrails: ModelConfigurationGuardrails,
|
|
3096
|
+
): string {
|
|
3097
|
+
return JSON.stringify(
|
|
3098
|
+
ModelConfigurationGuardrails$outboundSchema.parse(
|
|
3099
|
+
modelConfigurationGuardrails,
|
|
3100
|
+
),
|
|
3101
|
+
);
|
|
3102
|
+
}
|
|
3103
|
+
export function modelConfigurationGuardrailsFromJSON(
|
|
3104
|
+
jsonString: string,
|
|
3105
|
+
): SafeParseResult<ModelConfigurationGuardrails, SDKValidationError> {
|
|
3106
|
+
return safeParse(
|
|
3107
|
+
jsonString,
|
|
3108
|
+
(x) => ModelConfigurationGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
3109
|
+
`Failed to parse 'ModelConfigurationGuardrails' from JSON`,
|
|
3110
|
+
);
|
|
3111
|
+
}
|
|
3112
|
+
|
|
2842
3113
|
/** @internal */
|
|
2843
3114
|
export const ModelConfigurationParameters$inboundSchema: z.ZodType<
|
|
2844
3115
|
ModelConfigurationParameters,
|
|
@@ -2881,6 +3152,8 @@ export const ModelConfigurationParameters$inboundSchema: z.ZodType<
|
|
|
2881
3152
|
parallel_tool_calls: z.boolean().optional(),
|
|
2882
3153
|
modalities: z.nullable(z.array(ModelConfigurationModalities$inboundSchema))
|
|
2883
3154
|
.optional(),
|
|
3155
|
+
guardrails: z.array(z.lazy(() => ModelConfigurationGuardrails$inboundSchema))
|
|
3156
|
+
.optional(),
|
|
2884
3157
|
}).transform((v) => {
|
|
2885
3158
|
return remap$(v, {
|
|
2886
3159
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -2927,6 +3200,7 @@ export type ModelConfigurationParameters$Outbound = {
|
|
|
2927
3200
|
tool_choice?: UpdateAgentToolChoice2$Outbound | string | undefined;
|
|
2928
3201
|
parallel_tool_calls?: boolean | undefined;
|
|
2929
3202
|
modalities?: Array<string> | null | undefined;
|
|
3203
|
+
guardrails?: Array<ModelConfigurationGuardrails$Outbound> | undefined;
|
|
2930
3204
|
};
|
|
2931
3205
|
|
|
2932
3206
|
/** @internal */
|
|
@@ -2971,6 +3245,8 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2971
3245
|
parallelToolCalls: z.boolean().optional(),
|
|
2972
3246
|
modalities: z.nullable(z.array(ModelConfigurationModalities$outboundSchema))
|
|
2973
3247
|
.optional(),
|
|
3248
|
+
guardrails: z.array(z.lazy(() => ModelConfigurationGuardrails$outboundSchema))
|
|
3249
|
+
.optional(),
|
|
2974
3250
|
}).transform((v) => {
|
|
2975
3251
|
return remap$(v, {
|
|
2976
3252
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -3820,6 +4096,127 @@ export const UpdateAgentFallbackModelConfigurationModalities$outboundSchema:
|
|
|
3820
4096
|
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationModalities> =
|
|
3821
4097
|
UpdateAgentFallbackModelConfigurationModalities$inboundSchema;
|
|
3822
4098
|
|
|
4099
|
+
/** @internal */
|
|
4100
|
+
export const UpdateAgentIdAgents1$inboundSchema: z.ZodNativeEnum<
|
|
4101
|
+
typeof UpdateAgentIdAgents1
|
|
4102
|
+
> = z.nativeEnum(UpdateAgentIdAgents1);
|
|
4103
|
+
/** @internal */
|
|
4104
|
+
export const UpdateAgentIdAgents1$outboundSchema: z.ZodNativeEnum<
|
|
4105
|
+
typeof UpdateAgentIdAgents1
|
|
4106
|
+
> = UpdateAgentIdAgents1$inboundSchema;
|
|
4107
|
+
|
|
4108
|
+
/** @internal */
|
|
4109
|
+
export const UpdateAgentFallbackModelConfigurationId$inboundSchema: z.ZodType<
|
|
4110
|
+
UpdateAgentFallbackModelConfigurationId,
|
|
4111
|
+
z.ZodTypeDef,
|
|
4112
|
+
unknown
|
|
4113
|
+
> = z.union([UpdateAgentIdAgents1$inboundSchema, z.string()]);
|
|
4114
|
+
/** @internal */
|
|
4115
|
+
export type UpdateAgentFallbackModelConfigurationId$Outbound = string | string;
|
|
4116
|
+
|
|
4117
|
+
/** @internal */
|
|
4118
|
+
export const UpdateAgentFallbackModelConfigurationId$outboundSchema: z.ZodType<
|
|
4119
|
+
UpdateAgentFallbackModelConfigurationId$Outbound,
|
|
4120
|
+
z.ZodTypeDef,
|
|
4121
|
+
UpdateAgentFallbackModelConfigurationId
|
|
4122
|
+
> = z.union([UpdateAgentIdAgents1$outboundSchema, z.string()]);
|
|
4123
|
+
|
|
4124
|
+
export function updateAgentFallbackModelConfigurationIdToJSON(
|
|
4125
|
+
updateAgentFallbackModelConfigurationId:
|
|
4126
|
+
UpdateAgentFallbackModelConfigurationId,
|
|
4127
|
+
): string {
|
|
4128
|
+
return JSON.stringify(
|
|
4129
|
+
UpdateAgentFallbackModelConfigurationId$outboundSchema.parse(
|
|
4130
|
+
updateAgentFallbackModelConfigurationId,
|
|
4131
|
+
),
|
|
4132
|
+
);
|
|
4133
|
+
}
|
|
4134
|
+
export function updateAgentFallbackModelConfigurationIdFromJSON(
|
|
4135
|
+
jsonString: string,
|
|
4136
|
+
): SafeParseResult<
|
|
4137
|
+
UpdateAgentFallbackModelConfigurationId,
|
|
4138
|
+
SDKValidationError
|
|
4139
|
+
> {
|
|
4140
|
+
return safeParse(
|
|
4141
|
+
jsonString,
|
|
4142
|
+
(x) =>
|
|
4143
|
+
UpdateAgentFallbackModelConfigurationId$inboundSchema.parse(
|
|
4144
|
+
JSON.parse(x),
|
|
4145
|
+
),
|
|
4146
|
+
`Failed to parse 'UpdateAgentFallbackModelConfigurationId' from JSON`,
|
|
4147
|
+
);
|
|
4148
|
+
}
|
|
4149
|
+
|
|
4150
|
+
/** @internal */
|
|
4151
|
+
export const UpdateAgentFallbackModelConfigurationExecuteOn$inboundSchema:
|
|
4152
|
+
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationExecuteOn> = z
|
|
4153
|
+
.nativeEnum(UpdateAgentFallbackModelConfigurationExecuteOn);
|
|
4154
|
+
/** @internal */
|
|
4155
|
+
export const UpdateAgentFallbackModelConfigurationExecuteOn$outboundSchema:
|
|
4156
|
+
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationExecuteOn> =
|
|
4157
|
+
UpdateAgentFallbackModelConfigurationExecuteOn$inboundSchema;
|
|
4158
|
+
|
|
4159
|
+
/** @internal */
|
|
4160
|
+
export const UpdateAgentFallbackModelConfigurationGuardrails$inboundSchema:
|
|
4161
|
+
z.ZodType<
|
|
4162
|
+
UpdateAgentFallbackModelConfigurationGuardrails,
|
|
4163
|
+
z.ZodTypeDef,
|
|
4164
|
+
unknown
|
|
4165
|
+
> = z.object({
|
|
4166
|
+
id: z.union([UpdateAgentIdAgents1$inboundSchema, z.string()]),
|
|
4167
|
+
execute_on: UpdateAgentFallbackModelConfigurationExecuteOn$inboundSchema,
|
|
4168
|
+
}).transform((v) => {
|
|
4169
|
+
return remap$(v, {
|
|
4170
|
+
"execute_on": "executeOn",
|
|
4171
|
+
});
|
|
4172
|
+
});
|
|
4173
|
+
/** @internal */
|
|
4174
|
+
export type UpdateAgentFallbackModelConfigurationGuardrails$Outbound = {
|
|
4175
|
+
id: string | string;
|
|
4176
|
+
execute_on: string;
|
|
4177
|
+
};
|
|
4178
|
+
|
|
4179
|
+
/** @internal */
|
|
4180
|
+
export const UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema:
|
|
4181
|
+
z.ZodType<
|
|
4182
|
+
UpdateAgentFallbackModelConfigurationGuardrails$Outbound,
|
|
4183
|
+
z.ZodTypeDef,
|
|
4184
|
+
UpdateAgentFallbackModelConfigurationGuardrails
|
|
4185
|
+
> = z.object({
|
|
4186
|
+
id: z.union([UpdateAgentIdAgents1$outboundSchema, z.string()]),
|
|
4187
|
+
executeOn: UpdateAgentFallbackModelConfigurationExecuteOn$outboundSchema,
|
|
4188
|
+
}).transform((v) => {
|
|
4189
|
+
return remap$(v, {
|
|
4190
|
+
executeOn: "execute_on",
|
|
4191
|
+
});
|
|
4192
|
+
});
|
|
4193
|
+
|
|
4194
|
+
export function updateAgentFallbackModelConfigurationGuardrailsToJSON(
|
|
4195
|
+
updateAgentFallbackModelConfigurationGuardrails:
|
|
4196
|
+
UpdateAgentFallbackModelConfigurationGuardrails,
|
|
4197
|
+
): string {
|
|
4198
|
+
return JSON.stringify(
|
|
4199
|
+
UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema.parse(
|
|
4200
|
+
updateAgentFallbackModelConfigurationGuardrails,
|
|
4201
|
+
),
|
|
4202
|
+
);
|
|
4203
|
+
}
|
|
4204
|
+
export function updateAgentFallbackModelConfigurationGuardrailsFromJSON(
|
|
4205
|
+
jsonString: string,
|
|
4206
|
+
): SafeParseResult<
|
|
4207
|
+
UpdateAgentFallbackModelConfigurationGuardrails,
|
|
4208
|
+
SDKValidationError
|
|
4209
|
+
> {
|
|
4210
|
+
return safeParse(
|
|
4211
|
+
jsonString,
|
|
4212
|
+
(x) =>
|
|
4213
|
+
UpdateAgentFallbackModelConfigurationGuardrails$inboundSchema.parse(
|
|
4214
|
+
JSON.parse(x),
|
|
4215
|
+
),
|
|
4216
|
+
`Failed to parse 'UpdateAgentFallbackModelConfigurationGuardrails' from JSON`,
|
|
4217
|
+
);
|
|
4218
|
+
}
|
|
4219
|
+
|
|
3823
4220
|
/** @internal */
|
|
3824
4221
|
export const UpdateAgentFallbackModelConfigurationParameters$inboundSchema:
|
|
3825
4222
|
z.ZodType<
|
|
@@ -3870,6 +4267,11 @@ export const UpdateAgentFallbackModelConfigurationParameters$inboundSchema:
|
|
|
3870
4267
|
modalities: z.nullable(
|
|
3871
4268
|
z.array(UpdateAgentFallbackModelConfigurationModalities$inboundSchema),
|
|
3872
4269
|
).optional(),
|
|
4270
|
+
guardrails: z.array(
|
|
4271
|
+
z.lazy(() =>
|
|
4272
|
+
UpdateAgentFallbackModelConfigurationGuardrails$inboundSchema
|
|
4273
|
+
),
|
|
4274
|
+
).optional(),
|
|
3873
4275
|
}).transform((v) => {
|
|
3874
4276
|
return remap$(v, {
|
|
3875
4277
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -3922,6 +4324,9 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3922
4324
|
tool_choice?: UpdateAgentToolChoiceAgents2$Outbound | string | undefined;
|
|
3923
4325
|
parallel_tool_calls?: boolean | undefined;
|
|
3924
4326
|
modalities?: Array<string> | null | undefined;
|
|
4327
|
+
guardrails?:
|
|
4328
|
+
| Array<UpdateAgentFallbackModelConfigurationGuardrails$Outbound>
|
|
4329
|
+
| undefined;
|
|
3925
4330
|
};
|
|
3926
4331
|
|
|
3927
4332
|
/** @internal */
|
|
@@ -3974,6 +4379,11 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3974
4379
|
modalities: z.nullable(
|
|
3975
4380
|
z.array(UpdateAgentFallbackModelConfigurationModalities$outboundSchema),
|
|
3976
4381
|
).optional(),
|
|
4382
|
+
guardrails: z.array(
|
|
4383
|
+
z.lazy(() =>
|
|
4384
|
+
UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema
|
|
4385
|
+
),
|
|
4386
|
+
).optional(),
|
|
3977
4387
|
}).transform((v) => {
|
|
3978
4388
|
return remap$(v, {
|
|
3979
4389
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -6770,6 +7180,108 @@ export const UpdateAgentModalities$outboundSchema: z.ZodNativeEnum<
|
|
|
6770
7180
|
typeof UpdateAgentModalities
|
|
6771
7181
|
> = UpdateAgentModalities$inboundSchema;
|
|
6772
7182
|
|
|
7183
|
+
/** @internal */
|
|
7184
|
+
export const UpdateAgentIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
|
|
7185
|
+
typeof UpdateAgentIdAgentsResponse1
|
|
7186
|
+
> = z.nativeEnum(UpdateAgentIdAgentsResponse1);
|
|
7187
|
+
/** @internal */
|
|
7188
|
+
export const UpdateAgentIdAgentsResponse1$outboundSchema: z.ZodNativeEnum<
|
|
7189
|
+
typeof UpdateAgentIdAgentsResponse1
|
|
7190
|
+
> = UpdateAgentIdAgentsResponse1$inboundSchema;
|
|
7191
|
+
|
|
7192
|
+
/** @internal */
|
|
7193
|
+
export const UpdateAgentId$inboundSchema: z.ZodType<
|
|
7194
|
+
UpdateAgentId,
|
|
7195
|
+
z.ZodTypeDef,
|
|
7196
|
+
unknown
|
|
7197
|
+
> = z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]);
|
|
7198
|
+
/** @internal */
|
|
7199
|
+
export type UpdateAgentId$Outbound = string | string;
|
|
7200
|
+
|
|
7201
|
+
/** @internal */
|
|
7202
|
+
export const UpdateAgentId$outboundSchema: z.ZodType<
|
|
7203
|
+
UpdateAgentId$Outbound,
|
|
7204
|
+
z.ZodTypeDef,
|
|
7205
|
+
UpdateAgentId
|
|
7206
|
+
> = z.union([UpdateAgentIdAgentsResponse1$outboundSchema, z.string()]);
|
|
7207
|
+
|
|
7208
|
+
export function updateAgentIdToJSON(updateAgentId: UpdateAgentId): string {
|
|
7209
|
+
return JSON.stringify(UpdateAgentId$outboundSchema.parse(updateAgentId));
|
|
7210
|
+
}
|
|
7211
|
+
export function updateAgentIdFromJSON(
|
|
7212
|
+
jsonString: string,
|
|
7213
|
+
): SafeParseResult<UpdateAgentId, SDKValidationError> {
|
|
7214
|
+
return safeParse(
|
|
7215
|
+
jsonString,
|
|
7216
|
+
(x) => UpdateAgentId$inboundSchema.parse(JSON.parse(x)),
|
|
7217
|
+
`Failed to parse 'UpdateAgentId' from JSON`,
|
|
7218
|
+
);
|
|
7219
|
+
}
|
|
7220
|
+
|
|
7221
|
+
/** @internal */
|
|
7222
|
+
export const UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema:
|
|
7223
|
+
z.ZodNativeEnum<typeof UpdateAgentAgentsResponse200ApplicationJSONExecuteOn> =
|
|
7224
|
+
z.nativeEnum(UpdateAgentAgentsResponse200ApplicationJSONExecuteOn);
|
|
7225
|
+
/** @internal */
|
|
7226
|
+
export const UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$outboundSchema:
|
|
7227
|
+
z.ZodNativeEnum<typeof UpdateAgentAgentsResponse200ApplicationJSONExecuteOn> =
|
|
7228
|
+
UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema;
|
|
7229
|
+
|
|
7230
|
+
/** @internal */
|
|
7231
|
+
export const UpdateAgentAgentsResponseGuardrails$inboundSchema: z.ZodType<
|
|
7232
|
+
UpdateAgentAgentsResponseGuardrails,
|
|
7233
|
+
z.ZodTypeDef,
|
|
7234
|
+
unknown
|
|
7235
|
+
> = z.object({
|
|
7236
|
+
id: z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]),
|
|
7237
|
+
execute_on:
|
|
7238
|
+
UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema,
|
|
7239
|
+
}).transform((v) => {
|
|
7240
|
+
return remap$(v, {
|
|
7241
|
+
"execute_on": "executeOn",
|
|
7242
|
+
});
|
|
7243
|
+
});
|
|
7244
|
+
/** @internal */
|
|
7245
|
+
export type UpdateAgentAgentsResponseGuardrails$Outbound = {
|
|
7246
|
+
id: string | string;
|
|
7247
|
+
execute_on: string;
|
|
7248
|
+
};
|
|
7249
|
+
|
|
7250
|
+
/** @internal */
|
|
7251
|
+
export const UpdateAgentAgentsResponseGuardrails$outboundSchema: z.ZodType<
|
|
7252
|
+
UpdateAgentAgentsResponseGuardrails$Outbound,
|
|
7253
|
+
z.ZodTypeDef,
|
|
7254
|
+
UpdateAgentAgentsResponseGuardrails
|
|
7255
|
+
> = z.object({
|
|
7256
|
+
id: z.union([UpdateAgentIdAgentsResponse1$outboundSchema, z.string()]),
|
|
7257
|
+
executeOn:
|
|
7258
|
+
UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$outboundSchema,
|
|
7259
|
+
}).transform((v) => {
|
|
7260
|
+
return remap$(v, {
|
|
7261
|
+
executeOn: "execute_on",
|
|
7262
|
+
});
|
|
7263
|
+
});
|
|
7264
|
+
|
|
7265
|
+
export function updateAgentAgentsResponseGuardrailsToJSON(
|
|
7266
|
+
updateAgentAgentsResponseGuardrails: UpdateAgentAgentsResponseGuardrails,
|
|
7267
|
+
): string {
|
|
7268
|
+
return JSON.stringify(
|
|
7269
|
+
UpdateAgentAgentsResponseGuardrails$outboundSchema.parse(
|
|
7270
|
+
updateAgentAgentsResponseGuardrails,
|
|
7271
|
+
),
|
|
7272
|
+
);
|
|
7273
|
+
}
|
|
7274
|
+
export function updateAgentAgentsResponseGuardrailsFromJSON(
|
|
7275
|
+
jsonString: string,
|
|
7276
|
+
): SafeParseResult<UpdateAgentAgentsResponseGuardrails, SDKValidationError> {
|
|
7277
|
+
return safeParse(
|
|
7278
|
+
jsonString,
|
|
7279
|
+
(x) =>
|
|
7280
|
+
UpdateAgentAgentsResponseGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
7281
|
+
`Failed to parse 'UpdateAgentAgentsResponseGuardrails' from JSON`,
|
|
7282
|
+
);
|
|
7283
|
+
}
|
|
7284
|
+
|
|
6773
7285
|
/** @internal */
|
|
6774
7286
|
export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
6775
7287
|
UpdateAgentParameters,
|
|
@@ -6814,6 +7326,9 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
|
|
|
6814
7326
|
parallel_tool_calls: z.boolean().optional(),
|
|
6815
7327
|
modalities: z.nullable(z.array(UpdateAgentModalities$inboundSchema))
|
|
6816
7328
|
.optional(),
|
|
7329
|
+
guardrails: z.array(
|
|
7330
|
+
z.lazy(() => UpdateAgentAgentsResponseGuardrails$inboundSchema),
|
|
7331
|
+
).optional(),
|
|
6817
7332
|
}).transform((v) => {
|
|
6818
7333
|
return remap$(v, {
|
|
6819
7334
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -6863,6 +7378,7 @@ export type UpdateAgentParameters$Outbound = {
|
|
|
6863
7378
|
| undefined;
|
|
6864
7379
|
parallel_tool_calls?: boolean | undefined;
|
|
6865
7380
|
modalities?: Array<string> | null | undefined;
|
|
7381
|
+
guardrails?: Array<UpdateAgentAgentsResponseGuardrails$Outbound> | undefined;
|
|
6866
7382
|
};
|
|
6867
7383
|
|
|
6868
7384
|
/** @internal */
|
|
@@ -6909,6 +7425,9 @@ export const UpdateAgentParameters$outboundSchema: z.ZodType<
|
|
|
6909
7425
|
parallelToolCalls: z.boolean().optional(),
|
|
6910
7426
|
modalities: z.nullable(z.array(UpdateAgentModalities$outboundSchema))
|
|
6911
7427
|
.optional(),
|
|
7428
|
+
guardrails: z.array(
|
|
7429
|
+
z.lazy(() => UpdateAgentAgentsResponseGuardrails$outboundSchema),
|
|
7430
|
+
).optional(),
|
|
6912
7431
|
}).transform((v) => {
|
|
6913
7432
|
return remap$(v, {
|
|
6914
7433
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -7704,6 +8223,133 @@ export const UpdateAgentFallbackModelConfigurationAgentsModalities$outboundSchem
|
|
|
7704
8223
|
typeof UpdateAgentFallbackModelConfigurationAgentsModalities
|
|
7705
8224
|
> = UpdateAgentFallbackModelConfigurationAgentsModalities$inboundSchema;
|
|
7706
8225
|
|
|
8226
|
+
/** @internal */
|
|
8227
|
+
export const UpdateAgentIdAgentsResponse2001$inboundSchema: z.ZodNativeEnum<
|
|
8228
|
+
typeof UpdateAgentIdAgentsResponse2001
|
|
8229
|
+
> = z.nativeEnum(UpdateAgentIdAgentsResponse2001);
|
|
8230
|
+
/** @internal */
|
|
8231
|
+
export const UpdateAgentIdAgentsResponse2001$outboundSchema: z.ZodNativeEnum<
|
|
8232
|
+
typeof UpdateAgentIdAgentsResponse2001
|
|
8233
|
+
> = UpdateAgentIdAgentsResponse2001$inboundSchema;
|
|
8234
|
+
|
|
8235
|
+
/** @internal */
|
|
8236
|
+
export const UpdateAgentFallbackModelConfigurationAgentsId$inboundSchema:
|
|
8237
|
+
z.ZodType<
|
|
8238
|
+
UpdateAgentFallbackModelConfigurationAgentsId,
|
|
8239
|
+
z.ZodTypeDef,
|
|
8240
|
+
unknown
|
|
8241
|
+
> = z.union([UpdateAgentIdAgentsResponse2001$inboundSchema, z.string()]);
|
|
8242
|
+
/** @internal */
|
|
8243
|
+
export type UpdateAgentFallbackModelConfigurationAgentsId$Outbound =
|
|
8244
|
+
| string
|
|
8245
|
+
| string;
|
|
8246
|
+
|
|
8247
|
+
/** @internal */
|
|
8248
|
+
export const UpdateAgentFallbackModelConfigurationAgentsId$outboundSchema:
|
|
8249
|
+
z.ZodType<
|
|
8250
|
+
UpdateAgentFallbackModelConfigurationAgentsId$Outbound,
|
|
8251
|
+
z.ZodTypeDef,
|
|
8252
|
+
UpdateAgentFallbackModelConfigurationAgentsId
|
|
8253
|
+
> = z.union([UpdateAgentIdAgentsResponse2001$outboundSchema, z.string()]);
|
|
8254
|
+
|
|
8255
|
+
export function updateAgentFallbackModelConfigurationAgentsIdToJSON(
|
|
8256
|
+
updateAgentFallbackModelConfigurationAgentsId:
|
|
8257
|
+
UpdateAgentFallbackModelConfigurationAgentsId,
|
|
8258
|
+
): string {
|
|
8259
|
+
return JSON.stringify(
|
|
8260
|
+
UpdateAgentFallbackModelConfigurationAgentsId$outboundSchema.parse(
|
|
8261
|
+
updateAgentFallbackModelConfigurationAgentsId,
|
|
8262
|
+
),
|
|
8263
|
+
);
|
|
8264
|
+
}
|
|
8265
|
+
export function updateAgentFallbackModelConfigurationAgentsIdFromJSON(
|
|
8266
|
+
jsonString: string,
|
|
8267
|
+
): SafeParseResult<
|
|
8268
|
+
UpdateAgentFallbackModelConfigurationAgentsId,
|
|
8269
|
+
SDKValidationError
|
|
8270
|
+
> {
|
|
8271
|
+
return safeParse(
|
|
8272
|
+
jsonString,
|
|
8273
|
+
(x) =>
|
|
8274
|
+
UpdateAgentFallbackModelConfigurationAgentsId$inboundSchema.parse(
|
|
8275
|
+
JSON.parse(x),
|
|
8276
|
+
),
|
|
8277
|
+
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsId' from JSON`,
|
|
8278
|
+
);
|
|
8279
|
+
}
|
|
8280
|
+
|
|
8281
|
+
/** @internal */
|
|
8282
|
+
export const UpdateAgentFallbackModelConfigurationAgentsExecuteOn$inboundSchema:
|
|
8283
|
+
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsExecuteOn> =
|
|
8284
|
+
z.nativeEnum(UpdateAgentFallbackModelConfigurationAgentsExecuteOn);
|
|
8285
|
+
/** @internal */
|
|
8286
|
+
export const UpdateAgentFallbackModelConfigurationAgentsExecuteOn$outboundSchema:
|
|
8287
|
+
z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsExecuteOn> =
|
|
8288
|
+
UpdateAgentFallbackModelConfigurationAgentsExecuteOn$inboundSchema;
|
|
8289
|
+
|
|
8290
|
+
/** @internal */
|
|
8291
|
+
export const UpdateAgentFallbackModelConfigurationAgentsGuardrails$inboundSchema:
|
|
8292
|
+
z.ZodType<
|
|
8293
|
+
UpdateAgentFallbackModelConfigurationAgentsGuardrails,
|
|
8294
|
+
z.ZodTypeDef,
|
|
8295
|
+
unknown
|
|
8296
|
+
> = z.object({
|
|
8297
|
+
id: z.union([UpdateAgentIdAgentsResponse2001$inboundSchema, z.string()]),
|
|
8298
|
+
execute_on:
|
|
8299
|
+
UpdateAgentFallbackModelConfigurationAgentsExecuteOn$inboundSchema,
|
|
8300
|
+
}).transform((v) => {
|
|
8301
|
+
return remap$(v, {
|
|
8302
|
+
"execute_on": "executeOn",
|
|
8303
|
+
});
|
|
8304
|
+
});
|
|
8305
|
+
/** @internal */
|
|
8306
|
+
export type UpdateAgentFallbackModelConfigurationAgentsGuardrails$Outbound = {
|
|
8307
|
+
id: string | string;
|
|
8308
|
+
execute_on: string;
|
|
8309
|
+
};
|
|
8310
|
+
|
|
8311
|
+
/** @internal */
|
|
8312
|
+
export const UpdateAgentFallbackModelConfigurationAgentsGuardrails$outboundSchema:
|
|
8313
|
+
z.ZodType<
|
|
8314
|
+
UpdateAgentFallbackModelConfigurationAgentsGuardrails$Outbound,
|
|
8315
|
+
z.ZodTypeDef,
|
|
8316
|
+
UpdateAgentFallbackModelConfigurationAgentsGuardrails
|
|
8317
|
+
> = z.object({
|
|
8318
|
+
id: z.union([UpdateAgentIdAgentsResponse2001$outboundSchema, z.string()]),
|
|
8319
|
+
executeOn:
|
|
8320
|
+
UpdateAgentFallbackModelConfigurationAgentsExecuteOn$outboundSchema,
|
|
8321
|
+
}).transform((v) => {
|
|
8322
|
+
return remap$(v, {
|
|
8323
|
+
executeOn: "execute_on",
|
|
8324
|
+
});
|
|
8325
|
+
});
|
|
8326
|
+
|
|
8327
|
+
export function updateAgentFallbackModelConfigurationAgentsGuardrailsToJSON(
|
|
8328
|
+
updateAgentFallbackModelConfigurationAgentsGuardrails:
|
|
8329
|
+
UpdateAgentFallbackModelConfigurationAgentsGuardrails,
|
|
8330
|
+
): string {
|
|
8331
|
+
return JSON.stringify(
|
|
8332
|
+
UpdateAgentFallbackModelConfigurationAgentsGuardrails$outboundSchema.parse(
|
|
8333
|
+
updateAgentFallbackModelConfigurationAgentsGuardrails,
|
|
8334
|
+
),
|
|
8335
|
+
);
|
|
8336
|
+
}
|
|
8337
|
+
export function updateAgentFallbackModelConfigurationAgentsGuardrailsFromJSON(
|
|
8338
|
+
jsonString: string,
|
|
8339
|
+
): SafeParseResult<
|
|
8340
|
+
UpdateAgentFallbackModelConfigurationAgentsGuardrails,
|
|
8341
|
+
SDKValidationError
|
|
8342
|
+
> {
|
|
8343
|
+
return safeParse(
|
|
8344
|
+
jsonString,
|
|
8345
|
+
(x) =>
|
|
8346
|
+
UpdateAgentFallbackModelConfigurationAgentsGuardrails$inboundSchema.parse(
|
|
8347
|
+
JSON.parse(x),
|
|
8348
|
+
),
|
|
8349
|
+
`Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsGuardrails' from JSON`,
|
|
8350
|
+
);
|
|
8351
|
+
}
|
|
8352
|
+
|
|
7707
8353
|
/** @internal */
|
|
7708
8354
|
export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema:
|
|
7709
8355
|
z.ZodType<
|
|
@@ -7762,6 +8408,11 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
|
|
|
7762
8408
|
UpdateAgentFallbackModelConfigurationAgentsModalities$inboundSchema,
|
|
7763
8409
|
),
|
|
7764
8410
|
).optional(),
|
|
8411
|
+
guardrails: z.array(
|
|
8412
|
+
z.lazy(() =>
|
|
8413
|
+
UpdateAgentFallbackModelConfigurationAgentsGuardrails$inboundSchema
|
|
8414
|
+
),
|
|
8415
|
+
).optional(),
|
|
7765
8416
|
}).transform((v) => {
|
|
7766
8417
|
return remap$(v, {
|
|
7767
8418
|
"frequency_penalty": "frequencyPenalty",
|
|
@@ -7817,6 +8468,9 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters$Outbound = {
|
|
|
7817
8468
|
| undefined;
|
|
7818
8469
|
parallel_tool_calls?: boolean | undefined;
|
|
7819
8470
|
modalities?: Array<string> | null | undefined;
|
|
8471
|
+
guardrails?:
|
|
8472
|
+
| Array<UpdateAgentFallbackModelConfigurationAgentsGuardrails$Outbound>
|
|
8473
|
+
| undefined;
|
|
7820
8474
|
};
|
|
7821
8475
|
|
|
7822
8476
|
/** @internal */
|
|
@@ -7877,6 +8531,11 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$outboundSchem
|
|
|
7877
8531
|
UpdateAgentFallbackModelConfigurationAgentsModalities$outboundSchema,
|
|
7878
8532
|
),
|
|
7879
8533
|
).optional(),
|
|
8534
|
+
guardrails: z.array(
|
|
8535
|
+
z.lazy(() =>
|
|
8536
|
+
UpdateAgentFallbackModelConfigurationAgentsGuardrails$outboundSchema
|
|
8537
|
+
),
|
|
8538
|
+
).optional(),
|
|
7880
8539
|
}).transform((v) => {
|
|
7881
8540
|
return remap$(v, {
|
|
7882
8541
|
frequencyPenalty: "frequency_penalty",
|