@orq-ai/node 4.10.17 → 4.10.20
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/funcs/datasetsList.js +0 -2
- package/funcs/datasetsList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +3 -3
- package/lib/env.js.map +1 -1
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js +28 -13
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.js +3 -3
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/models/components/modelmetadata.d.ts +0 -2
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +0 -4
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/reasoning.d.ts +2 -40
- package/models/components/reasoning.d.ts.map +1 -1
- package/models/components/reasoning.js +3 -26
- package/models/components/reasoning.js.map +1 -1
- package/models/components/reasoningparam.d.ts +2 -40
- package/models/components/reasoningparam.d.ts.map +1 -1
- package/models/components/reasoningparam.js +3 -28
- package/models/components/reasoningparam.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +4 -298
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +9 -163
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +4 -81
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +7 -45
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/creatememorystore.d.ts +3 -3
- package/models/operations/creatememorystore.d.ts.map +1 -1
- package/models/operations/creatememorystore.js +2 -2
- package/models/operations/creatememorystore.js.map +1 -1
- package/models/operations/createprompt.d.ts +12 -225
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +13 -124
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +4 -349
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +4 -195
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentgetconfig.d.ts +4 -70
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +8 -43
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +8 -74
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +8 -43
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/getallmemorystores.d.ts +1 -1
- package/models/operations/getallmemorystores.d.ts.map +1 -1
- package/models/operations/getallmemorystores.js +1 -1
- package/models/operations/getallmemorystores.js.map +1 -1
- package/models/operations/getallprompts.d.ts +4 -140
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +6 -79
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getoneprompt.d.ts +4 -140
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +6 -79
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +4 -140
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +6 -78
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listagents.d.ts +0 -140
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +3 -79
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.d.ts +0 -10
- package/models/operations/listdatasets.d.ts.map +1 -1
- package/models/operations/listdatasets.js +1 -4
- package/models/operations/listdatasets.js.map +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listknowledgebases.d.ts +1 -1
- package/models/operations/listpromptversions.d.ts +4 -140
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +6 -79
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +0 -140
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +2 -81
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievememorystore.d.ts +1 -1
- package/models/operations/retrievememorystore.d.ts.map +1 -1
- package/models/operations/retrievememorystore.js +1 -1
- package/models/operations/retrievememorystore.js.map +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +0 -154
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +5 -80
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +0 -154
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +4 -82
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +4 -298
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +9 -162
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updatememorystore.d.ts +3 -3
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +2 -2
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +12 -225
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +14 -125
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +7 -7
- package/packages/orq-rc/src/funcs/budgetsCheck.ts +162 -0
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/budgetsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/budgetsGetConsumption.ts +169 -0
- package/packages/orq-rc/src/funcs/budgetsList.ts +175 -0
- package/packages/orq-rc/src/funcs/budgetsResetConsumption.ts +174 -0
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/encodings.ts +1 -1
- package/packages/orq-rc/src/lib/env.ts +7 -3
- package/packages/orq-rc/src/lib/event-streams.ts +31 -13
- package/packages/orq-rc/src/lib/matchers.ts +1 -1
- package/packages/orq-rc/src/lib/primitives.ts +16 -0
- package/packages/orq-rc/src/models/components/apikeybudgetscope.ts +66 -0
- package/packages/orq-rc/src/models/components/budget.ts +102 -0
- package/packages/orq-rc/src/models/components/budgetlimits.ts +76 -0
- package/packages/orq-rc/src/models/components/budgetmatch.ts +56 -0
- package/packages/orq-rc/src/models/components/budgetperiod.ts +23 -0
- package/packages/orq-rc/src/models/components/budgetrejection.ts +48 -0
- package/packages/orq-rc/src/models/components/budgetscope.ts +150 -0
- package/packages/orq-rc/src/models/components/budgetscopekind.ts +22 -0
- package/packages/orq-rc/src/models/components/checkbudgetsrequest.ts +111 -0
- package/packages/orq-rc/src/models/components/checkbudgetsresponse.ts +62 -0
- package/packages/orq-rc/src/models/components/createbudgetrequest.ts +109 -0
- package/packages/orq-rc/src/models/components/createbudgetresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/deletebudgetresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/dimensioninfo.ts +43 -0
- package/packages/orq-rc/src/models/components/getbudgetconsumptionresponse.ts +67 -0
- package/packages/orq-rc/src/models/components/getbudgetresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/identity.ts +9 -9
- package/packages/orq-rc/src/models/components/identitybudgetscope.ts +66 -0
- package/packages/orq-rc/src/models/components/index.ts +27 -0
- package/packages/orq-rc/src/models/components/listbudgetsresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/modelbudgetscope.ts +67 -0
- package/packages/orq-rc/src/models/components/projectbudgetscope.ts +63 -0
- package/packages/orq-rc/src/models/components/providerbudgetscope.ts +57 -0
- package/packages/orq-rc/src/models/components/ratelimit.ts +62 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/resetbudgetconsumptionrequest.ts +27 -0
- package/packages/orq-rc/src/models/components/resetbudgetconsumptionresponse.ts +38 -0
- package/packages/orq-rc/src/models/components/updatebudgetrequest.ts +94 -0
- package/packages/orq-rc/src/models/components/updatebudgetresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/workspacebudgetscope.ts +46 -0
- package/packages/orq-rc/src/models/operations/budgetdelete.ts +39 -0
- package/packages/orq-rc/src/models/operations/budgetget.ts +39 -0
- package/packages/orq-rc/src/models/operations/budgetgetconsumption.ts +41 -0
- package/packages/orq-rc/src/models/operations/budgetlist.ts +102 -0
- package/packages/orq-rc/src/models/operations/budgetresetconsumption.ts +48 -0
- package/packages/orq-rc/src/models/operations/budgetupdate.ts +44 -0
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +6 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/budgets.ts +154 -0
- package/packages/orq-rc/src/sdk/feedback.ts +1 -4
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/funcs/datasetsList.ts +0 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/env.ts +7 -3
- package/src/lib/event-streams.ts +31 -13
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/models/components/modelmetadata.ts +0 -6
- package/src/models/components/reasoning.ts +4 -50
- package/src/models/components/reasoningparam.ts +4 -48
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +8 -460
- package/src/models/operations/createchatcompletion.ts +10 -129
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/creatememorystore.ts +5 -5
- package/src/models/operations/createprompt.ts +27 -356
- package/src/models/operations/createrouterresponse.ts +8 -532
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentgetconfig.ts +8 -105
- package/src/models/operations/deployments.ts +16 -113
- package/src/models/operations/getallmemorystores.ts +2 -2
- package/src/models/operations/getallprompts.ts +8 -210
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getoneprompt.ts +8 -208
- package/src/models/operations/getpromptversion.ts +8 -212
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +0 -215
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -14
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listknowledgebases.ts +1 -1
- package/src/models/operations/listpromptversions.ts +8 -212
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +0 -222
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievememorystore.ts +2 -2
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -236
- package/src/models/operations/streamrunagent.ts +1 -242
- package/src/models/operations/updateagent.ts +9 -464
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updatememorystore.ts +5 -5
- package/src/models/operations/updateprompt.ts +27 -356
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +2 -2
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
|
@@ -259,68 +259,6 @@ export type RunAgentModelConfigurationTimeout = {
|
|
|
259
259
|
callTimeout: number;
|
|
260
260
|
};
|
|
261
261
|
|
|
262
|
-
/**
|
|
263
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
264
|
-
*/
|
|
265
|
-
export const RunAgentModelConfigurationAgentsType = {
|
|
266
|
-
Ephemeral: "ephemeral",
|
|
267
|
-
} as const;
|
|
268
|
-
/**
|
|
269
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
270
|
-
*/
|
|
271
|
-
export type RunAgentModelConfigurationAgentsType = ClosedEnum<
|
|
272
|
-
typeof RunAgentModelConfigurationAgentsType
|
|
273
|
-
>;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
277
|
-
*
|
|
278
|
-
* @remarks
|
|
279
|
-
*
|
|
280
|
-
* - `5m`: 5 minutes
|
|
281
|
-
* - `1h`: 1 hour
|
|
282
|
-
*
|
|
283
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
284
|
-
*/
|
|
285
|
-
export const RunAgentModelConfigurationTtl = {
|
|
286
|
-
Fivem: "5m",
|
|
287
|
-
Oneh: "1h",
|
|
288
|
-
} as const;
|
|
289
|
-
/**
|
|
290
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
291
|
-
*
|
|
292
|
-
* @remarks
|
|
293
|
-
*
|
|
294
|
-
* - `5m`: 5 minutes
|
|
295
|
-
* - `1h`: 1 hour
|
|
296
|
-
*
|
|
297
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
298
|
-
*/
|
|
299
|
-
export type RunAgentModelConfigurationTtl = ClosedEnum<
|
|
300
|
-
typeof RunAgentModelConfigurationTtl
|
|
301
|
-
>;
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
305
|
-
*/
|
|
306
|
-
export type RunAgentModelConfigurationCacheControl = {
|
|
307
|
-
/**
|
|
308
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
309
|
-
*/
|
|
310
|
-
type: RunAgentModelConfigurationAgentsType;
|
|
311
|
-
/**
|
|
312
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
313
|
-
*
|
|
314
|
-
* @remarks
|
|
315
|
-
*
|
|
316
|
-
* - `5m`: 5 minutes
|
|
317
|
-
* - `1h`: 1 hour
|
|
318
|
-
*
|
|
319
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
320
|
-
*/
|
|
321
|
-
ttl?: RunAgentModelConfigurationTtl | undefined;
|
|
322
|
-
};
|
|
323
|
-
|
|
324
262
|
/**
|
|
325
263
|
* 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.
|
|
326
264
|
*/
|
|
@@ -431,14 +369,6 @@ export type RunAgentModelConfigurationParameters = {
|
|
|
431
369
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
432
370
|
*/
|
|
433
371
|
timeout?: RunAgentModelConfigurationTimeout | undefined;
|
|
434
|
-
/**
|
|
435
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
436
|
-
*/
|
|
437
|
-
cacheControl?: RunAgentModelConfigurationCacheControl | undefined;
|
|
438
|
-
/**
|
|
439
|
-
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
440
|
-
*/
|
|
441
|
-
promptCacheKey?: string | undefined;
|
|
442
372
|
};
|
|
443
373
|
|
|
444
374
|
/**
|
|
@@ -734,68 +664,6 @@ export type RunAgentFallbackModelConfigurationTimeout = {
|
|
|
734
664
|
callTimeout: number;
|
|
735
665
|
};
|
|
736
666
|
|
|
737
|
-
/**
|
|
738
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
739
|
-
*/
|
|
740
|
-
export const RunAgentFallbackModelConfigurationAgentsType = {
|
|
741
|
-
Ephemeral: "ephemeral",
|
|
742
|
-
} as const;
|
|
743
|
-
/**
|
|
744
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
745
|
-
*/
|
|
746
|
-
export type RunAgentFallbackModelConfigurationAgentsType = ClosedEnum<
|
|
747
|
-
typeof RunAgentFallbackModelConfigurationAgentsType
|
|
748
|
-
>;
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
752
|
-
*
|
|
753
|
-
* @remarks
|
|
754
|
-
*
|
|
755
|
-
* - `5m`: 5 minutes
|
|
756
|
-
* - `1h`: 1 hour
|
|
757
|
-
*
|
|
758
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
759
|
-
*/
|
|
760
|
-
export const RunAgentFallbackModelConfigurationTtl = {
|
|
761
|
-
Fivem: "5m",
|
|
762
|
-
Oneh: "1h",
|
|
763
|
-
} as const;
|
|
764
|
-
/**
|
|
765
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
766
|
-
*
|
|
767
|
-
* @remarks
|
|
768
|
-
*
|
|
769
|
-
* - `5m`: 5 minutes
|
|
770
|
-
* - `1h`: 1 hour
|
|
771
|
-
*
|
|
772
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
773
|
-
*/
|
|
774
|
-
export type RunAgentFallbackModelConfigurationTtl = ClosedEnum<
|
|
775
|
-
typeof RunAgentFallbackModelConfigurationTtl
|
|
776
|
-
>;
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
780
|
-
*/
|
|
781
|
-
export type RunAgentFallbackModelConfigurationCacheControl = {
|
|
782
|
-
/**
|
|
783
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
784
|
-
*/
|
|
785
|
-
type: RunAgentFallbackModelConfigurationAgentsType;
|
|
786
|
-
/**
|
|
787
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
788
|
-
*
|
|
789
|
-
* @remarks
|
|
790
|
-
*
|
|
791
|
-
* - `5m`: 5 minutes
|
|
792
|
-
* - `1h`: 1 hour
|
|
793
|
-
*
|
|
794
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
795
|
-
*/
|
|
796
|
-
ttl?: RunAgentFallbackModelConfigurationTtl | undefined;
|
|
797
|
-
};
|
|
798
|
-
|
|
799
667
|
/**
|
|
800
668
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
801
669
|
*/
|
|
@@ -914,14 +782,6 @@ export type RunAgentFallbackModelConfigurationParameters = {
|
|
|
914
782
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
915
783
|
*/
|
|
916
784
|
timeout?: RunAgentFallbackModelConfigurationTimeout | undefined;
|
|
917
|
-
/**
|
|
918
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
919
|
-
*/
|
|
920
|
-
cacheControl?: RunAgentFallbackModelConfigurationCacheControl | undefined;
|
|
921
|
-
/**
|
|
922
|
-
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
923
|
-
*/
|
|
924
|
-
promptCacheKey?: string | undefined;
|
|
925
785
|
};
|
|
926
786
|
|
|
927
787
|
/**
|
|
@@ -2510,44 +2370,6 @@ export function runAgentModelConfigurationTimeoutToJSON(
|
|
|
2510
2370
|
);
|
|
2511
2371
|
}
|
|
2512
2372
|
|
|
2513
|
-
/** @internal */
|
|
2514
|
-
export const RunAgentModelConfigurationAgentsType$outboundSchema:
|
|
2515
|
-
z.ZodNativeEnum<typeof RunAgentModelConfigurationAgentsType> = z.nativeEnum(
|
|
2516
|
-
RunAgentModelConfigurationAgentsType,
|
|
2517
|
-
);
|
|
2518
|
-
|
|
2519
|
-
/** @internal */
|
|
2520
|
-
export const RunAgentModelConfigurationTtl$outboundSchema: z.ZodNativeEnum<
|
|
2521
|
-
typeof RunAgentModelConfigurationTtl
|
|
2522
|
-
> = z.nativeEnum(RunAgentModelConfigurationTtl);
|
|
2523
|
-
|
|
2524
|
-
/** @internal */
|
|
2525
|
-
export type RunAgentModelConfigurationCacheControl$Outbound = {
|
|
2526
|
-
type: string;
|
|
2527
|
-
ttl: string;
|
|
2528
|
-
};
|
|
2529
|
-
|
|
2530
|
-
/** @internal */
|
|
2531
|
-
export const RunAgentModelConfigurationCacheControl$outboundSchema: z.ZodType<
|
|
2532
|
-
RunAgentModelConfigurationCacheControl$Outbound,
|
|
2533
|
-
z.ZodTypeDef,
|
|
2534
|
-
RunAgentModelConfigurationCacheControl
|
|
2535
|
-
> = z.object({
|
|
2536
|
-
type: RunAgentModelConfigurationAgentsType$outboundSchema,
|
|
2537
|
-
ttl: RunAgentModelConfigurationTtl$outboundSchema.default("5m"),
|
|
2538
|
-
});
|
|
2539
|
-
|
|
2540
|
-
export function runAgentModelConfigurationCacheControlToJSON(
|
|
2541
|
-
runAgentModelConfigurationCacheControl:
|
|
2542
|
-
RunAgentModelConfigurationCacheControl,
|
|
2543
|
-
): string {
|
|
2544
|
-
return JSON.stringify(
|
|
2545
|
-
RunAgentModelConfigurationCacheControl$outboundSchema.parse(
|
|
2546
|
-
runAgentModelConfigurationCacheControl,
|
|
2547
|
-
),
|
|
2548
|
-
);
|
|
2549
|
-
}
|
|
2550
|
-
|
|
2551
2373
|
/** @internal */
|
|
2552
2374
|
export type RunAgentModelConfigurationParameters$Outbound = {
|
|
2553
2375
|
name?: string | undefined;
|
|
@@ -2580,8 +2402,6 @@ export type RunAgentModelConfigurationParameters$Outbound = {
|
|
|
2580
2402
|
cache?: RunAgentModelConfigurationCache$Outbound | undefined;
|
|
2581
2403
|
load_balancer?: RunAgentLoadBalancer1$Outbound | undefined;
|
|
2582
2404
|
timeout?: RunAgentModelConfigurationTimeout$Outbound | undefined;
|
|
2583
|
-
cache_control?: RunAgentModelConfigurationCacheControl$Outbound | undefined;
|
|
2584
|
-
prompt_cache_key?: string | undefined;
|
|
2585
2405
|
};
|
|
2586
2406
|
|
|
2587
2407
|
/** @internal */
|
|
@@ -2632,10 +2452,6 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2632
2452
|
loadBalancer: z.lazy(() => RunAgentLoadBalancer1$outboundSchema).optional(),
|
|
2633
2453
|
timeout: z.lazy(() => RunAgentModelConfigurationTimeout$outboundSchema)
|
|
2634
2454
|
.optional(),
|
|
2635
|
-
cacheControl: z.lazy(() =>
|
|
2636
|
-
RunAgentModelConfigurationCacheControl$outboundSchema
|
|
2637
|
-
).optional(),
|
|
2638
|
-
promptCacheKey: z.string().optional(),
|
|
2639
2455
|
}).transform((v) => {
|
|
2640
2456
|
return remap$(v, {
|
|
2641
2457
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -2649,8 +2465,6 @@ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
|
|
|
2649
2465
|
toolChoice: "tool_choice",
|
|
2650
2466
|
parallelToolCalls: "parallel_tool_calls",
|
|
2651
2467
|
loadBalancer: "load_balancer",
|
|
2652
|
-
cacheControl: "cache_control",
|
|
2653
|
-
promptCacheKey: "prompt_cache_key",
|
|
2654
2468
|
});
|
|
2655
2469
|
});
|
|
2656
2470
|
|
|
@@ -3272,45 +3086,6 @@ export function runAgentFallbackModelConfigurationTimeoutToJSON(
|
|
|
3272
3086
|
);
|
|
3273
3087
|
}
|
|
3274
3088
|
|
|
3275
|
-
/** @internal */
|
|
3276
|
-
export const RunAgentFallbackModelConfigurationAgentsType$outboundSchema:
|
|
3277
|
-
z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationAgentsType> = z
|
|
3278
|
-
.nativeEnum(RunAgentFallbackModelConfigurationAgentsType);
|
|
3279
|
-
|
|
3280
|
-
/** @internal */
|
|
3281
|
-
export const RunAgentFallbackModelConfigurationTtl$outboundSchema:
|
|
3282
|
-
z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationTtl> = z.nativeEnum(
|
|
3283
|
-
RunAgentFallbackModelConfigurationTtl,
|
|
3284
|
-
);
|
|
3285
|
-
|
|
3286
|
-
/** @internal */
|
|
3287
|
-
export type RunAgentFallbackModelConfigurationCacheControl$Outbound = {
|
|
3288
|
-
type: string;
|
|
3289
|
-
ttl: string;
|
|
3290
|
-
};
|
|
3291
|
-
|
|
3292
|
-
/** @internal */
|
|
3293
|
-
export const RunAgentFallbackModelConfigurationCacheControl$outboundSchema:
|
|
3294
|
-
z.ZodType<
|
|
3295
|
-
RunAgentFallbackModelConfigurationCacheControl$Outbound,
|
|
3296
|
-
z.ZodTypeDef,
|
|
3297
|
-
RunAgentFallbackModelConfigurationCacheControl
|
|
3298
|
-
> = z.object({
|
|
3299
|
-
type: RunAgentFallbackModelConfigurationAgentsType$outboundSchema,
|
|
3300
|
-
ttl: RunAgentFallbackModelConfigurationTtl$outboundSchema.default("5m"),
|
|
3301
|
-
});
|
|
3302
|
-
|
|
3303
|
-
export function runAgentFallbackModelConfigurationCacheControlToJSON(
|
|
3304
|
-
runAgentFallbackModelConfigurationCacheControl:
|
|
3305
|
-
RunAgentFallbackModelConfigurationCacheControl,
|
|
3306
|
-
): string {
|
|
3307
|
-
return JSON.stringify(
|
|
3308
|
-
RunAgentFallbackModelConfigurationCacheControl$outboundSchema.parse(
|
|
3309
|
-
runAgentFallbackModelConfigurationCacheControl,
|
|
3310
|
-
),
|
|
3311
|
-
);
|
|
3312
|
-
}
|
|
3313
|
-
|
|
3314
3089
|
/** @internal */
|
|
3315
3090
|
export type RunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
3316
3091
|
name?: string | undefined;
|
|
@@ -3347,10 +3122,6 @@ export type RunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3347
3122
|
cache?: RunAgentFallbackModelConfigurationCache$Outbound | undefined;
|
|
3348
3123
|
load_balancer?: RunAgentLoadBalancerAgents1$Outbound | undefined;
|
|
3349
3124
|
timeout?: RunAgentFallbackModelConfigurationTimeout$Outbound | undefined;
|
|
3350
|
-
cache_control?:
|
|
3351
|
-
| RunAgentFallbackModelConfigurationCacheControl$Outbound
|
|
3352
|
-
| undefined;
|
|
3353
|
-
prompt_cache_key?: string | undefined;
|
|
3354
3125
|
};
|
|
3355
3126
|
|
|
3356
3127
|
/** @internal */
|
|
@@ -3407,10 +3178,6 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3407
3178
|
timeout: z.lazy(() =>
|
|
3408
3179
|
RunAgentFallbackModelConfigurationTimeout$outboundSchema
|
|
3409
3180
|
).optional(),
|
|
3410
|
-
cacheControl: z.lazy(() =>
|
|
3411
|
-
RunAgentFallbackModelConfigurationCacheControl$outboundSchema
|
|
3412
|
-
).optional(),
|
|
3413
|
-
promptCacheKey: z.string().optional(),
|
|
3414
3181
|
}).transform((v) => {
|
|
3415
3182
|
return remap$(v, {
|
|
3416
3183
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -3424,8 +3191,6 @@ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3424
3191
|
toolChoice: "tool_choice",
|
|
3425
3192
|
parallelToolCalls: "parallel_tool_calls",
|
|
3426
3193
|
loadBalancer: "load_balancer",
|
|
3427
|
-
cacheControl: "cache_control",
|
|
3428
|
-
promptCacheKey: "prompt_cache_key",
|
|
3429
3194
|
});
|
|
3430
3195
|
});
|
|
3431
3196
|
|
|
@@ -3861,7 +3626,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3861
3626
|
z.ZodTypeDef,
|
|
3862
3627
|
Tools
|
|
3863
3628
|
> = z.object({
|
|
3864
|
-
id: z.string().default("
|
|
3629
|
+
id: z.string().default("01KTY2WP335RMJPVYYW2KG8EAD"),
|
|
3865
3630
|
name: z.string(),
|
|
3866
3631
|
description: z.string().optional(),
|
|
3867
3632
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -264,68 +264,6 @@ export type StreamRunAgentModelConfigurationTimeout = {
|
|
|
264
264
|
callTimeout: number;
|
|
265
265
|
};
|
|
266
266
|
|
|
267
|
-
/**
|
|
268
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
269
|
-
*/
|
|
270
|
-
export const StreamRunAgentModelConfigurationAgentsType = {
|
|
271
|
-
Ephemeral: "ephemeral",
|
|
272
|
-
} as const;
|
|
273
|
-
/**
|
|
274
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
275
|
-
*/
|
|
276
|
-
export type StreamRunAgentModelConfigurationAgentsType = ClosedEnum<
|
|
277
|
-
typeof StreamRunAgentModelConfigurationAgentsType
|
|
278
|
-
>;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
282
|
-
*
|
|
283
|
-
* @remarks
|
|
284
|
-
*
|
|
285
|
-
* - `5m`: 5 minutes
|
|
286
|
-
* - `1h`: 1 hour
|
|
287
|
-
*
|
|
288
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
289
|
-
*/
|
|
290
|
-
export const StreamRunAgentModelConfigurationTtl = {
|
|
291
|
-
Fivem: "5m",
|
|
292
|
-
Oneh: "1h",
|
|
293
|
-
} as const;
|
|
294
|
-
/**
|
|
295
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
296
|
-
*
|
|
297
|
-
* @remarks
|
|
298
|
-
*
|
|
299
|
-
* - `5m`: 5 minutes
|
|
300
|
-
* - `1h`: 1 hour
|
|
301
|
-
*
|
|
302
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
303
|
-
*/
|
|
304
|
-
export type StreamRunAgentModelConfigurationTtl = ClosedEnum<
|
|
305
|
-
typeof StreamRunAgentModelConfigurationTtl
|
|
306
|
-
>;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
310
|
-
*/
|
|
311
|
-
export type StreamRunAgentModelConfigurationCacheControl = {
|
|
312
|
-
/**
|
|
313
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
314
|
-
*/
|
|
315
|
-
type: StreamRunAgentModelConfigurationAgentsType;
|
|
316
|
-
/**
|
|
317
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
318
|
-
*
|
|
319
|
-
* @remarks
|
|
320
|
-
*
|
|
321
|
-
* - `5m`: 5 minutes
|
|
322
|
-
* - `1h`: 1 hour
|
|
323
|
-
*
|
|
324
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
325
|
-
*/
|
|
326
|
-
ttl?: StreamRunAgentModelConfigurationTtl | undefined;
|
|
327
|
-
};
|
|
328
|
-
|
|
329
267
|
/**
|
|
330
268
|
* 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.
|
|
331
269
|
*/
|
|
@@ -442,14 +380,6 @@ export type StreamRunAgentModelConfigurationParameters = {
|
|
|
442
380
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
443
381
|
*/
|
|
444
382
|
timeout?: StreamRunAgentModelConfigurationTimeout | undefined;
|
|
445
|
-
/**
|
|
446
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
447
|
-
*/
|
|
448
|
-
cacheControl?: StreamRunAgentModelConfigurationCacheControl | undefined;
|
|
449
|
-
/**
|
|
450
|
-
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
451
|
-
*/
|
|
452
|
-
promptCacheKey?: string | undefined;
|
|
453
383
|
};
|
|
454
384
|
|
|
455
385
|
/**
|
|
@@ -752,68 +682,6 @@ export type StreamRunAgentFallbackModelConfigurationTimeout = {
|
|
|
752
682
|
callTimeout: number;
|
|
753
683
|
};
|
|
754
684
|
|
|
755
|
-
/**
|
|
756
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
757
|
-
*/
|
|
758
|
-
export const StreamRunAgentFallbackModelConfigurationAgentsType = {
|
|
759
|
-
Ephemeral: "ephemeral",
|
|
760
|
-
} as const;
|
|
761
|
-
/**
|
|
762
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
763
|
-
*/
|
|
764
|
-
export type StreamRunAgentFallbackModelConfigurationAgentsType = ClosedEnum<
|
|
765
|
-
typeof StreamRunAgentFallbackModelConfigurationAgentsType
|
|
766
|
-
>;
|
|
767
|
-
|
|
768
|
-
/**
|
|
769
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
770
|
-
*
|
|
771
|
-
* @remarks
|
|
772
|
-
*
|
|
773
|
-
* - `5m`: 5 minutes
|
|
774
|
-
* - `1h`: 1 hour
|
|
775
|
-
*
|
|
776
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
777
|
-
*/
|
|
778
|
-
export const StreamRunAgentFallbackModelConfigurationTtl = {
|
|
779
|
-
Fivem: "5m",
|
|
780
|
-
Oneh: "1h",
|
|
781
|
-
} as const;
|
|
782
|
-
/**
|
|
783
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
784
|
-
*
|
|
785
|
-
* @remarks
|
|
786
|
-
*
|
|
787
|
-
* - `5m`: 5 minutes
|
|
788
|
-
* - `1h`: 1 hour
|
|
789
|
-
*
|
|
790
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
791
|
-
*/
|
|
792
|
-
export type StreamRunAgentFallbackModelConfigurationTtl = ClosedEnum<
|
|
793
|
-
typeof StreamRunAgentFallbackModelConfigurationTtl
|
|
794
|
-
>;
|
|
795
|
-
|
|
796
|
-
/**
|
|
797
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
798
|
-
*/
|
|
799
|
-
export type StreamRunAgentFallbackModelConfigurationCacheControl = {
|
|
800
|
-
/**
|
|
801
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
802
|
-
*/
|
|
803
|
-
type: StreamRunAgentFallbackModelConfigurationAgentsType;
|
|
804
|
-
/**
|
|
805
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
806
|
-
*
|
|
807
|
-
* @remarks
|
|
808
|
-
*
|
|
809
|
-
* - `5m`: 5 minutes
|
|
810
|
-
* - `1h`: 1 hour
|
|
811
|
-
*
|
|
812
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
813
|
-
*/
|
|
814
|
-
ttl?: StreamRunAgentFallbackModelConfigurationTtl | undefined;
|
|
815
|
-
};
|
|
816
|
-
|
|
817
685
|
/**
|
|
818
686
|
* Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
|
|
819
687
|
*/
|
|
@@ -936,16 +804,6 @@ export type StreamRunAgentFallbackModelConfigurationParameters = {
|
|
|
936
804
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
937
805
|
*/
|
|
938
806
|
timeout?: StreamRunAgentFallbackModelConfigurationTimeout | undefined;
|
|
939
|
-
/**
|
|
940
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
941
|
-
*/
|
|
942
|
-
cacheControl?:
|
|
943
|
-
| StreamRunAgentFallbackModelConfigurationCacheControl
|
|
944
|
-
| undefined;
|
|
945
|
-
/**
|
|
946
|
-
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
947
|
-
*/
|
|
948
|
-
promptCacheKey?: string | undefined;
|
|
949
807
|
};
|
|
950
808
|
|
|
951
809
|
/**
|
|
@@ -2495,45 +2353,6 @@ export function streamRunAgentModelConfigurationTimeoutToJSON(
|
|
|
2495
2353
|
);
|
|
2496
2354
|
}
|
|
2497
2355
|
|
|
2498
|
-
/** @internal */
|
|
2499
|
-
export const StreamRunAgentModelConfigurationAgentsType$outboundSchema:
|
|
2500
|
-
z.ZodNativeEnum<typeof StreamRunAgentModelConfigurationAgentsType> = z
|
|
2501
|
-
.nativeEnum(StreamRunAgentModelConfigurationAgentsType);
|
|
2502
|
-
|
|
2503
|
-
/** @internal */
|
|
2504
|
-
export const StreamRunAgentModelConfigurationTtl$outboundSchema:
|
|
2505
|
-
z.ZodNativeEnum<typeof StreamRunAgentModelConfigurationTtl> = z.nativeEnum(
|
|
2506
|
-
StreamRunAgentModelConfigurationTtl,
|
|
2507
|
-
);
|
|
2508
|
-
|
|
2509
|
-
/** @internal */
|
|
2510
|
-
export type StreamRunAgentModelConfigurationCacheControl$Outbound = {
|
|
2511
|
-
type: string;
|
|
2512
|
-
ttl: string;
|
|
2513
|
-
};
|
|
2514
|
-
|
|
2515
|
-
/** @internal */
|
|
2516
|
-
export const StreamRunAgentModelConfigurationCacheControl$outboundSchema:
|
|
2517
|
-
z.ZodType<
|
|
2518
|
-
StreamRunAgentModelConfigurationCacheControl$Outbound,
|
|
2519
|
-
z.ZodTypeDef,
|
|
2520
|
-
StreamRunAgentModelConfigurationCacheControl
|
|
2521
|
-
> = z.object({
|
|
2522
|
-
type: StreamRunAgentModelConfigurationAgentsType$outboundSchema,
|
|
2523
|
-
ttl: StreamRunAgentModelConfigurationTtl$outboundSchema.default("5m"),
|
|
2524
|
-
});
|
|
2525
|
-
|
|
2526
|
-
export function streamRunAgentModelConfigurationCacheControlToJSON(
|
|
2527
|
-
streamRunAgentModelConfigurationCacheControl:
|
|
2528
|
-
StreamRunAgentModelConfigurationCacheControl,
|
|
2529
|
-
): string {
|
|
2530
|
-
return JSON.stringify(
|
|
2531
|
-
StreamRunAgentModelConfigurationCacheControl$outboundSchema.parse(
|
|
2532
|
-
streamRunAgentModelConfigurationCacheControl,
|
|
2533
|
-
),
|
|
2534
|
-
);
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
2356
|
/** @internal */
|
|
2538
2357
|
export type StreamRunAgentModelConfigurationParameters$Outbound = {
|
|
2539
2358
|
name?: string | undefined;
|
|
@@ -2570,10 +2389,6 @@ export type StreamRunAgentModelConfigurationParameters$Outbound = {
|
|
|
2570
2389
|
cache?: StreamRunAgentModelConfigurationCache$Outbound | undefined;
|
|
2571
2390
|
load_balancer?: StreamRunAgentLoadBalancer1$Outbound | undefined;
|
|
2572
2391
|
timeout?: StreamRunAgentModelConfigurationTimeout$Outbound | undefined;
|
|
2573
|
-
cache_control?:
|
|
2574
|
-
| StreamRunAgentModelConfigurationCacheControl$Outbound
|
|
2575
|
-
| undefined;
|
|
2576
|
-
prompt_cache_key?: string | undefined;
|
|
2577
2392
|
};
|
|
2578
2393
|
|
|
2579
2394
|
/** @internal */
|
|
@@ -2627,10 +2442,6 @@ export const StreamRunAgentModelConfigurationParameters$outboundSchema:
|
|
|
2627
2442
|
timeout: z.lazy(() =>
|
|
2628
2443
|
StreamRunAgentModelConfigurationTimeout$outboundSchema
|
|
2629
2444
|
).optional(),
|
|
2630
|
-
cacheControl: z.lazy(() =>
|
|
2631
|
-
StreamRunAgentModelConfigurationCacheControl$outboundSchema
|
|
2632
|
-
).optional(),
|
|
2633
|
-
promptCacheKey: z.string().optional(),
|
|
2634
2445
|
}).transform((v) => {
|
|
2635
2446
|
return remap$(v, {
|
|
2636
2447
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -2644,8 +2455,6 @@ export const StreamRunAgentModelConfigurationParameters$outboundSchema:
|
|
|
2644
2455
|
toolChoice: "tool_choice",
|
|
2645
2456
|
parallelToolCalls: "parallel_tool_calls",
|
|
2646
2457
|
loadBalancer: "load_balancer",
|
|
2647
|
-
cacheControl: "cache_control",
|
|
2648
|
-
promptCacheKey: "prompt_cache_key",
|
|
2649
2458
|
});
|
|
2650
2459
|
});
|
|
2651
2460
|
|
|
@@ -3286,46 +3095,6 @@ export function streamRunAgentFallbackModelConfigurationTimeoutToJSON(
|
|
|
3286
3095
|
);
|
|
3287
3096
|
}
|
|
3288
3097
|
|
|
3289
|
-
/** @internal */
|
|
3290
|
-
export const StreamRunAgentFallbackModelConfigurationAgentsType$outboundSchema:
|
|
3291
|
-
z.ZodNativeEnum<typeof StreamRunAgentFallbackModelConfigurationAgentsType> = z
|
|
3292
|
-
.nativeEnum(StreamRunAgentFallbackModelConfigurationAgentsType);
|
|
3293
|
-
|
|
3294
|
-
/** @internal */
|
|
3295
|
-
export const StreamRunAgentFallbackModelConfigurationTtl$outboundSchema:
|
|
3296
|
-
z.ZodNativeEnum<typeof StreamRunAgentFallbackModelConfigurationTtl> = z
|
|
3297
|
-
.nativeEnum(StreamRunAgentFallbackModelConfigurationTtl);
|
|
3298
|
-
|
|
3299
|
-
/** @internal */
|
|
3300
|
-
export type StreamRunAgentFallbackModelConfigurationCacheControl$Outbound = {
|
|
3301
|
-
type: string;
|
|
3302
|
-
ttl: string;
|
|
3303
|
-
};
|
|
3304
|
-
|
|
3305
|
-
/** @internal */
|
|
3306
|
-
export const StreamRunAgentFallbackModelConfigurationCacheControl$outboundSchema:
|
|
3307
|
-
z.ZodType<
|
|
3308
|
-
StreamRunAgentFallbackModelConfigurationCacheControl$Outbound,
|
|
3309
|
-
z.ZodTypeDef,
|
|
3310
|
-
StreamRunAgentFallbackModelConfigurationCacheControl
|
|
3311
|
-
> = z.object({
|
|
3312
|
-
type: StreamRunAgentFallbackModelConfigurationAgentsType$outboundSchema,
|
|
3313
|
-
ttl: StreamRunAgentFallbackModelConfigurationTtl$outboundSchema.default(
|
|
3314
|
-
"5m",
|
|
3315
|
-
),
|
|
3316
|
-
});
|
|
3317
|
-
|
|
3318
|
-
export function streamRunAgentFallbackModelConfigurationCacheControlToJSON(
|
|
3319
|
-
streamRunAgentFallbackModelConfigurationCacheControl:
|
|
3320
|
-
StreamRunAgentFallbackModelConfigurationCacheControl,
|
|
3321
|
-
): string {
|
|
3322
|
-
return JSON.stringify(
|
|
3323
|
-
StreamRunAgentFallbackModelConfigurationCacheControl$outboundSchema.parse(
|
|
3324
|
-
streamRunAgentFallbackModelConfigurationCacheControl,
|
|
3325
|
-
),
|
|
3326
|
-
);
|
|
3327
|
-
}
|
|
3328
|
-
|
|
3329
3098
|
/** @internal */
|
|
3330
3099
|
export type StreamRunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
3331
3100
|
name?: string | undefined;
|
|
@@ -3364,10 +3133,6 @@ export type StreamRunAgentFallbackModelConfigurationParameters$Outbound = {
|
|
|
3364
3133
|
timeout?:
|
|
3365
3134
|
| StreamRunAgentFallbackModelConfigurationTimeout$Outbound
|
|
3366
3135
|
| undefined;
|
|
3367
|
-
cache_control?:
|
|
3368
|
-
| StreamRunAgentFallbackModelConfigurationCacheControl$Outbound
|
|
3369
|
-
| undefined;
|
|
3370
|
-
prompt_cache_key?: string | undefined;
|
|
3371
3136
|
};
|
|
3372
3137
|
|
|
3373
3138
|
/** @internal */
|
|
@@ -3431,10 +3196,6 @@ export const StreamRunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3431
3196
|
timeout: z.lazy(() =>
|
|
3432
3197
|
StreamRunAgentFallbackModelConfigurationTimeout$outboundSchema
|
|
3433
3198
|
).optional(),
|
|
3434
|
-
cacheControl: z.lazy(() =>
|
|
3435
|
-
StreamRunAgentFallbackModelConfigurationCacheControl$outboundSchema
|
|
3436
|
-
).optional(),
|
|
3437
|
-
promptCacheKey: z.string().optional(),
|
|
3438
3199
|
}).transform((v) => {
|
|
3439
3200
|
return remap$(v, {
|
|
3440
3201
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -3448,8 +3209,6 @@ export const StreamRunAgentFallbackModelConfigurationParameters$outboundSchema:
|
|
|
3448
3209
|
toolChoice: "tool_choice",
|
|
3449
3210
|
parallelToolCalls: "parallel_tool_calls",
|
|
3450
3211
|
loadBalancer: "load_balancer",
|
|
3451
|
-
cacheControl: "cache_control",
|
|
3452
|
-
promptCacheKey: "prompt_cache_key",
|
|
3453
3212
|
});
|
|
3454
3213
|
});
|
|
3455
3214
|
|
|
@@ -3916,7 +3675,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3916
3675
|
z.ZodTypeDef,
|
|
3917
3676
|
AgentToolInputRunTools
|
|
3918
3677
|
> = z.object({
|
|
3919
|
-
id: z.string().default("
|
|
3678
|
+
id: z.string().default("01KTY2WP4M8YZPNJY5ZFYZGAJ4"),
|
|
3920
3679
|
name: z.string(),
|
|
3921
3680
|
description: z.string().optional(),
|
|
3922
3681
|
schema: z.lazy(() =>
|