@orq-ai/node 4.16.14 → 4.16.16
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +8 -8
- package/packages/orq-rc/src/funcs/mcpGatewaysList.ts +0 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +6 -0
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +6 -0
- package/packages/orq-rc/src/models/components/cachewritetokensdetails.ts +39 -0
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +1 -1
- package/packages/orq-rc/src/models/components/index.ts +2 -1
- package/packages/orq-rc/src/models/components/inputtokensdetails.ts +7 -0
- package/packages/orq-rc/src/models/components/litellmmodel.ts +4 -0
- package/packages/orq-rc/src/models/components/mcpgateway.ts +0 -6
- package/packages/orq-rc/src/models/components/mcptoolinput.ts +7 -7
- package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +12 -0
- package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +1 -0
- package/packages/orq-rc/src/models/components/orqadvisortool.ts +1 -0
- package/packages/orq-rc/src/models/components/orqsidekicktool.ts +1 -0
- package/packages/orq-rc/src/models/components/pricing.ts +6 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +6 -0
- package/packages/orq-rc/src/models/components/privatemodelconfiguration.ts +39 -0
- package/packages/orq-rc/src/models/components/publicresponseresource.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoning.ts +1 -0
- package/packages/orq-rc/src/models/components/reasoningparam.ts +1 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/redactresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +0 -7
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +34 -24
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +7 -6
- package/packages/orq-rc/src/models/operations/createprompt.ts +16 -13
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +225 -20
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1 -1
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +2 -1
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +9 -7
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +9 -7
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +9 -7
- 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/listagents.ts +20 -12
- package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +4 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +9 -7
- package/packages/orq-rc/src/models/operations/mcpgatewaylist.ts +0 -7
- package/packages/orq-rc/src/models/operations/modelcreate.ts +3 -0
- package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +6 -0
- package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +6 -0
- package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +7 -0
- package/packages/orq-rc/src/models/operations/modelupdate.ts +7 -0
- package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +3 -0
- package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +3 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +20 -12
- package/packages/orq-rc/src/models/operations/retrieveresponse.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +15 -13
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +15 -13
- package/packages/orq-rc/src/models/operations/updateagent.ts +34 -24
- package/packages/orq-rc/src/models/operations/updateprompt.ts +16 -13
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/components/mcpgatewaystatus.ts +0 -21
|
@@ -493,7 +493,7 @@ export type CreateChatCompletionResponseFormat =
|
|
|
493
493
|
| CreateChatCompletionResponseFormatJSONSchema;
|
|
494
494
|
|
|
495
495
|
/**
|
|
496
|
-
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
496
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `instant`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
497
497
|
*
|
|
498
498
|
* @remarks
|
|
499
499
|
*
|
|
@@ -502,10 +502,11 @@ export type CreateChatCompletionResponseFormat =
|
|
|
502
502
|
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
503
503
|
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
504
504
|
*
|
|
505
|
-
* Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
505
|
+
* Any of "none", "instant", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
506
506
|
*/
|
|
507
507
|
export const CreateChatCompletionReasoningEffort = {
|
|
508
508
|
None: "none",
|
|
509
|
+
Instant: "instant",
|
|
509
510
|
Minimal: "minimal",
|
|
510
511
|
Low: "low",
|
|
511
512
|
Medium: "medium",
|
|
@@ -514,7 +515,7 @@ export const CreateChatCompletionReasoningEffort = {
|
|
|
514
515
|
Max: "max",
|
|
515
516
|
} as const;
|
|
516
517
|
/**
|
|
517
|
-
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
518
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `instant`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
518
519
|
*
|
|
519
520
|
* @remarks
|
|
520
521
|
*
|
|
@@ -523,7 +524,7 @@ export const CreateChatCompletionReasoningEffort = {
|
|
|
523
524
|
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
524
525
|
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
525
526
|
*
|
|
526
|
-
* Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
527
|
+
* Any of "none", "instant", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
527
528
|
*/
|
|
528
529
|
export type CreateChatCompletionReasoningEffort = ClosedEnum<
|
|
529
530
|
typeof CreateChatCompletionReasoningEffort
|
|
@@ -1527,7 +1528,7 @@ export type CreateChatCompletionRequestBody = {
|
|
|
1527
1528
|
| CreateChatCompletionResponseFormatJSONSchema
|
|
1528
1529
|
| undefined;
|
|
1529
1530
|
/**
|
|
1530
|
-
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1531
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `instant`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1531
1532
|
*
|
|
1532
1533
|
* @remarks
|
|
1533
1534
|
*
|
|
@@ -1536,7 +1537,7 @@ export type CreateChatCompletionRequestBody = {
|
|
|
1536
1537
|
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1537
1538
|
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
1538
1539
|
*
|
|
1539
|
-
* Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
1540
|
+
* Any of "none", "instant", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
1540
1541
|
*/
|
|
1541
1542
|
reasoningEffort?: CreateChatCompletionReasoningEffort | undefined;
|
|
1542
1543
|
/**
|
|
@@ -514,7 +514,7 @@ export type CreatePromptResponseFormat =
|
|
|
514
514
|
| CreatePromptResponseFormatJSONSchema;
|
|
515
515
|
|
|
516
516
|
/**
|
|
517
|
-
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
517
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `instant`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
518
518
|
*
|
|
519
519
|
* @remarks
|
|
520
520
|
*
|
|
@@ -523,10 +523,11 @@ export type CreatePromptResponseFormat =
|
|
|
523
523
|
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
524
524
|
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
525
525
|
*
|
|
526
|
-
* Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
526
|
+
* Any of "none", "instant", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
527
527
|
*/
|
|
528
528
|
export const CreatePromptReasoningEffort = {
|
|
529
529
|
None: "none",
|
|
530
|
+
Instant: "instant",
|
|
530
531
|
Minimal: "minimal",
|
|
531
532
|
Low: "low",
|
|
532
533
|
Medium: "medium",
|
|
@@ -535,7 +536,7 @@ export const CreatePromptReasoningEffort = {
|
|
|
535
536
|
Max: "max",
|
|
536
537
|
} as const;
|
|
537
538
|
/**
|
|
538
|
-
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
539
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `instant`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
539
540
|
*
|
|
540
541
|
* @remarks
|
|
541
542
|
*
|
|
@@ -544,7 +545,7 @@ export const CreatePromptReasoningEffort = {
|
|
|
544
545
|
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
545
546
|
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
546
547
|
*
|
|
547
|
-
* Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
548
|
+
* Any of "none", "instant", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
548
549
|
*/
|
|
549
550
|
export type CreatePromptReasoningEffort = ClosedEnum<
|
|
550
551
|
typeof CreatePromptReasoningEffort
|
|
@@ -862,7 +863,7 @@ export type PromptInput = {
|
|
|
862
863
|
| CreatePromptResponseFormatJSONSchema
|
|
863
864
|
| undefined;
|
|
864
865
|
/**
|
|
865
|
-
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
866
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `instant`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
866
867
|
*
|
|
867
868
|
* @remarks
|
|
868
869
|
*
|
|
@@ -871,7 +872,7 @@ export type PromptInput = {
|
|
|
871
872
|
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
872
873
|
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
873
874
|
*
|
|
874
|
-
* Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
875
|
+
* Any of "none", "instant", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
875
876
|
*/
|
|
876
877
|
reasoningEffort?: CreatePromptReasoningEffort | undefined;
|
|
877
878
|
/**
|
|
@@ -1410,6 +1411,7 @@ export const CreatePromptProvider = {
|
|
|
1410
1411
|
Tensorix: "tensorix",
|
|
1411
1412
|
Scaleway: "scaleway",
|
|
1412
1413
|
Hcompany: "hcompany",
|
|
1414
|
+
Inception: "inception",
|
|
1413
1415
|
Inceptron: "inceptron",
|
|
1414
1416
|
Wafer: "wafer",
|
|
1415
1417
|
Poolside: "poolside",
|
|
@@ -1450,7 +1452,7 @@ export type CreatePromptRole = ClosedEnum<typeof CreatePromptRole>;
|
|
|
1450
1452
|
|
|
1451
1453
|
export type CreatePrompt2File = {
|
|
1452
1454
|
/**
|
|
1453
|
-
* The file data as a data URI string in the format
|
|
1455
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
1454
1456
|
*/
|
|
1455
1457
|
fileData?: string | undefined;
|
|
1456
1458
|
/**
|
|
@@ -1688,7 +1690,7 @@ export type CreatePromptPromptsResponseFormat =
|
|
|
1688
1690
|
| CreatePromptResponseFormatPromptsResponse200JSONSchema;
|
|
1689
1691
|
|
|
1690
1692
|
/**
|
|
1691
|
-
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1693
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `instant`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1692
1694
|
*
|
|
1693
1695
|
* @remarks
|
|
1694
1696
|
*
|
|
@@ -1697,10 +1699,11 @@ export type CreatePromptPromptsResponseFormat =
|
|
|
1697
1699
|
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1698
1700
|
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
1699
1701
|
*
|
|
1700
|
-
* Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
1702
|
+
* Any of "none", "instant", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
1701
1703
|
*/
|
|
1702
1704
|
export const CreatePromptPromptsReasoningEffort = {
|
|
1703
1705
|
None: "none",
|
|
1706
|
+
Instant: "instant",
|
|
1704
1707
|
Minimal: "minimal",
|
|
1705
1708
|
Low: "low",
|
|
1706
1709
|
Medium: "medium",
|
|
@@ -1709,7 +1712,7 @@ export const CreatePromptPromptsReasoningEffort = {
|
|
|
1709
1712
|
Max: "max",
|
|
1710
1713
|
} as const;
|
|
1711
1714
|
/**
|
|
1712
|
-
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1715
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `instant`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1713
1716
|
*
|
|
1714
1717
|
* @remarks
|
|
1715
1718
|
*
|
|
@@ -1718,7 +1721,7 @@ export const CreatePromptPromptsReasoningEffort = {
|
|
|
1718
1721
|
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1719
1722
|
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
1720
1723
|
*
|
|
1721
|
-
* Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
1724
|
+
* Any of "none", "instant", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
1722
1725
|
*/
|
|
1723
1726
|
export type CreatePromptPromptsReasoningEffort = ClosedEnum<
|
|
1724
1727
|
typeof CreatePromptPromptsReasoningEffort
|
|
@@ -2384,7 +2387,7 @@ export type PromptField = {
|
|
|
2384
2387
|
| CreatePromptResponseFormatPromptsResponse200JSONSchema
|
|
2385
2388
|
| undefined;
|
|
2386
2389
|
/**
|
|
2387
|
-
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
2390
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `instant`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
2388
2391
|
*
|
|
2389
2392
|
* @remarks
|
|
2390
2393
|
*
|
|
@@ -2393,7 +2396,7 @@ export type PromptField = {
|
|
|
2393
2396
|
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
2394
2397
|
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
2395
2398
|
*
|
|
2396
|
-
* Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
2399
|
+
* Any of "none", "instant", "minimal", "low", "medium", "high", "xhigh", "max".
|
|
2397
2400
|
*/
|
|
2398
2401
|
reasoningEffort?: CreatePromptPromptsReasoningEffort | undefined;
|
|
2399
2402
|
/**
|
|
@@ -83,7 +83,7 @@ export type CreateRouterResponseCacheControl = {
|
|
|
83
83
|
*
|
|
84
84
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
85
85
|
*/
|
|
86
|
-
export const
|
|
86
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyInputTtl = {
|
|
87
87
|
Fivem: "5m",
|
|
88
88
|
Oneh: "1h",
|
|
89
89
|
} as const;
|
|
@@ -97,9 +97,8 @@ export const CreateRouterResponse2ResponsesRequestTtl = {
|
|
|
97
97
|
*
|
|
98
98
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
99
99
|
*/
|
|
100
|
-
export type
|
|
101
|
-
typeof
|
|
102
|
-
>;
|
|
100
|
+
export type CreateRouterResponse2ResponsesRequestRequestBodyInputTtl =
|
|
101
|
+
ClosedEnum<typeof CreateRouterResponse2ResponsesRequestRequestBodyInputTtl>;
|
|
103
102
|
|
|
104
103
|
/**
|
|
105
104
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
@@ -124,13 +123,35 @@ export type CreateRouterResponse2ResponsesRequestCacheControl = {
|
|
|
124
123
|
*
|
|
125
124
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
126
125
|
*/
|
|
127
|
-
ttl?:
|
|
126
|
+
ttl?: CreateRouterResponse2ResponsesRequestRequestBodyInputTtl | undefined;
|
|
128
127
|
/**
|
|
129
128
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
130
129
|
*/
|
|
131
130
|
type: CreateRouterResponse2ResponsesRequestRequestBodyInputType;
|
|
132
131
|
};
|
|
133
132
|
|
|
133
|
+
export const CreateRouterResponse2ResponsesMode = {
|
|
134
|
+
Explicit: "explicit",
|
|
135
|
+
} as const;
|
|
136
|
+
export type CreateRouterResponse2ResponsesMode = ClosedEnum<
|
|
137
|
+
typeof CreateRouterResponse2ResponsesMode
|
|
138
|
+
>;
|
|
139
|
+
|
|
140
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl = {
|
|
141
|
+
Thirtym: "30m",
|
|
142
|
+
Twelveh: "12h",
|
|
143
|
+
} as const;
|
|
144
|
+
export type CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl =
|
|
145
|
+
ClosedEnum<typeof CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl>;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
149
|
+
*/
|
|
150
|
+
export type CreateRouterResponse2PromptCacheBreakpoint = {
|
|
151
|
+
mode: CreateRouterResponse2ResponsesMode;
|
|
152
|
+
ttl?: CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl | undefined;
|
|
153
|
+
};
|
|
154
|
+
|
|
134
155
|
/**
|
|
135
156
|
* A file content part. Provide file_id, file_data (base64), or file_url.
|
|
136
157
|
*/
|
|
@@ -156,6 +177,12 @@ export type TwoFile = {
|
|
|
156
177
|
* The MIME type of the file (e.g., application/pdf).
|
|
157
178
|
*/
|
|
158
179
|
mimeType?: string | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
182
|
+
*/
|
|
183
|
+
promptCacheBreakpoint?:
|
|
184
|
+
| CreateRouterResponse2PromptCacheBreakpoint
|
|
185
|
+
| undefined;
|
|
159
186
|
type: "input_file";
|
|
160
187
|
};
|
|
161
188
|
|
|
@@ -169,7 +196,7 @@ export type TwoFile = {
|
|
|
169
196
|
*
|
|
170
197
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
171
198
|
*/
|
|
172
|
-
export const
|
|
199
|
+
export const CreateRouterResponse2ResponsesRequestTtl = {
|
|
173
200
|
Fivem: "5m",
|
|
174
201
|
Oneh: "1h",
|
|
175
202
|
} as const;
|
|
@@ -183,8 +210,8 @@ export const CreateRouterResponse2ResponsesTtl = {
|
|
|
183
210
|
*
|
|
184
211
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
185
212
|
*/
|
|
186
|
-
export type
|
|
187
|
-
typeof
|
|
213
|
+
export type CreateRouterResponse2ResponsesRequestTtl = ClosedEnum<
|
|
214
|
+
typeof CreateRouterResponse2ResponsesRequestTtl
|
|
188
215
|
>;
|
|
189
216
|
|
|
190
217
|
/**
|
|
@@ -211,7 +238,7 @@ export type CreateRouterResponse2ResponsesCacheControl = {
|
|
|
211
238
|
*
|
|
212
239
|
* Defaults to `5m`. Only supported by Anthropic Claude models.
|
|
213
240
|
*/
|
|
214
|
-
ttl?:
|
|
241
|
+
ttl?: CreateRouterResponse2ResponsesRequestTtl | undefined;
|
|
215
242
|
/**
|
|
216
243
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
217
244
|
*/
|
|
@@ -231,6 +258,29 @@ export const Detail = {
|
|
|
231
258
|
*/
|
|
232
259
|
export type Detail = ClosedEnum<typeof Detail>;
|
|
233
260
|
|
|
261
|
+
export const CreateRouterResponse2Mode = {
|
|
262
|
+
Explicit: "explicit",
|
|
263
|
+
} as const;
|
|
264
|
+
export type CreateRouterResponse2Mode = ClosedEnum<
|
|
265
|
+
typeof CreateRouterResponse2Mode
|
|
266
|
+
>;
|
|
267
|
+
|
|
268
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyTtl = {
|
|
269
|
+
Thirtym: "30m",
|
|
270
|
+
Twelveh: "12h",
|
|
271
|
+
} as const;
|
|
272
|
+
export type CreateRouterResponse2ResponsesRequestRequestBodyTtl = ClosedEnum<
|
|
273
|
+
typeof CreateRouterResponse2ResponsesRequestRequestBodyTtl
|
|
274
|
+
>;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
278
|
+
*/
|
|
279
|
+
export type TwoPromptCacheBreakpoint = {
|
|
280
|
+
mode: CreateRouterResponse2Mode;
|
|
281
|
+
ttl?: CreateRouterResponse2ResponsesRequestRequestBodyTtl | undefined;
|
|
282
|
+
};
|
|
283
|
+
|
|
234
284
|
/**
|
|
235
285
|
* An image content part.
|
|
236
286
|
*/
|
|
@@ -248,6 +298,10 @@ export type TwoImage = {
|
|
|
248
298
|
* The URL of the image.
|
|
249
299
|
*/
|
|
250
300
|
imageUrl?: string | undefined;
|
|
301
|
+
/**
|
|
302
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
303
|
+
*/
|
|
304
|
+
promptCacheBreakpoint?: TwoPromptCacheBreakpoint | undefined;
|
|
251
305
|
type: "input_image";
|
|
252
306
|
};
|
|
253
307
|
|
|
@@ -310,11 +364,36 @@ export type CreateRouterResponse2CacheControl = {
|
|
|
310
364
|
type: CreateRouterResponse2Type;
|
|
311
365
|
};
|
|
312
366
|
|
|
367
|
+
export const TwoMode = {
|
|
368
|
+
Explicit: "explicit",
|
|
369
|
+
} as const;
|
|
370
|
+
export type TwoMode = ClosedEnum<typeof TwoMode>;
|
|
371
|
+
|
|
372
|
+
export const CreateRouterResponse2ResponsesTtl = {
|
|
373
|
+
Thirtym: "30m",
|
|
374
|
+
Twelveh: "12h",
|
|
375
|
+
} as const;
|
|
376
|
+
export type CreateRouterResponse2ResponsesTtl = ClosedEnum<
|
|
377
|
+
typeof CreateRouterResponse2ResponsesTtl
|
|
378
|
+
>;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
382
|
+
*/
|
|
383
|
+
export type PromptCacheBreakpoint = {
|
|
384
|
+
mode: TwoMode;
|
|
385
|
+
ttl?: CreateRouterResponse2ResponsesTtl | undefined;
|
|
386
|
+
};
|
|
387
|
+
|
|
313
388
|
/**
|
|
314
389
|
* A text content part.
|
|
315
390
|
*/
|
|
316
391
|
export type TwoText = {
|
|
317
392
|
cacheControl?: CreateRouterResponse2CacheControl | undefined;
|
|
393
|
+
/**
|
|
394
|
+
* An explicit OpenAI cache boundary for GPT-5.6 and later. Omitted ttl inherits prompt_cache_options.ttl.
|
|
395
|
+
*/
|
|
396
|
+
promptCacheBreakpoint?: PromptCacheBreakpoint | undefined;
|
|
318
397
|
/**
|
|
319
398
|
* The text content.
|
|
320
399
|
*/
|
|
@@ -947,11 +1026,11 @@ export type CreateRouterResponseRequestBody = {
|
|
|
947
1026
|
maxToolCalls?: number | undefined;
|
|
948
1027
|
memory?: components.MemoryParam | undefined;
|
|
949
1028
|
/**
|
|
950
|
-
* Developer-defined key-value pairs attached to the response (OpenAI spec: Map<string, string
|
|
1029
|
+
* Developer-defined key-value pairs attached to the response (OpenAI spec: `Map<string, string>`). Non-string values are rejected with a 400.
|
|
951
1030
|
*/
|
|
952
1031
|
metadata?: { [k: string]: string } | undefined;
|
|
953
1032
|
/**
|
|
954
|
-
* The model to use in provider/model format (e.g. openai/gpt-4o). Use agent/<key
|
|
1033
|
+
* The model to use in provider/model format (e.g. openai/gpt-4o). Use `agent/<key>` to invoke a pre-configured agent from the orq.ai platform.
|
|
955
1034
|
*/
|
|
956
1035
|
model?: string | undefined;
|
|
957
1036
|
/**
|
|
@@ -1132,7 +1211,7 @@ export type CreateRouterResponseResponseBody = {
|
|
|
1132
1211
|
maxToolCalls: number | null;
|
|
1133
1212
|
memory?: components.MemoryParam | undefined;
|
|
1134
1213
|
/**
|
|
1135
|
-
* Developer-defined key-value pairs attached to the response (OpenAI spec: Map<string, string
|
|
1214
|
+
* Developer-defined key-value pairs attached to the response (OpenAI spec: `Map<string, string>`).
|
|
1136
1215
|
*/
|
|
1137
1216
|
metadata: { [k: string]: string };
|
|
1138
1217
|
model: string;
|
|
@@ -1222,9 +1301,10 @@ export function createRouterResponseCacheControlToJSON(
|
|
|
1222
1301
|
}
|
|
1223
1302
|
|
|
1224
1303
|
/** @internal */
|
|
1225
|
-
export const
|
|
1226
|
-
z.ZodNativeEnum<
|
|
1227
|
-
|
|
1304
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyInputTtl$outboundSchema:
|
|
1305
|
+
z.ZodNativeEnum<
|
|
1306
|
+
typeof CreateRouterResponse2ResponsesRequestRequestBodyInputTtl
|
|
1307
|
+
> = z.nativeEnum(CreateRouterResponse2ResponsesRequestRequestBodyInputTtl);
|
|
1228
1308
|
|
|
1229
1309
|
/** @internal */
|
|
1230
1310
|
export const CreateRouterResponse2ResponsesRequestRequestBodyInputType$outboundSchema:
|
|
@@ -1245,7 +1325,8 @@ export const CreateRouterResponse2ResponsesRequestCacheControl$outboundSchema:
|
|
|
1245
1325
|
z.ZodTypeDef,
|
|
1246
1326
|
CreateRouterResponse2ResponsesRequestCacheControl
|
|
1247
1327
|
> = z.object({
|
|
1248
|
-
ttl:
|
|
1328
|
+
ttl: CreateRouterResponse2ResponsesRequestRequestBodyInputTtl$outboundSchema
|
|
1329
|
+
.default("5m"),
|
|
1249
1330
|
type:
|
|
1250
1331
|
CreateRouterResponse2ResponsesRequestRequestBodyInputType$outboundSchema,
|
|
1251
1332
|
});
|
|
@@ -1261,6 +1342,47 @@ export function createRouterResponse2ResponsesRequestCacheControlToJSON(
|
|
|
1261
1342
|
);
|
|
1262
1343
|
}
|
|
1263
1344
|
|
|
1345
|
+
/** @internal */
|
|
1346
|
+
export const CreateRouterResponse2ResponsesMode$outboundSchema: z.ZodNativeEnum<
|
|
1347
|
+
typeof CreateRouterResponse2ResponsesMode
|
|
1348
|
+
> = z.nativeEnum(CreateRouterResponse2ResponsesMode);
|
|
1349
|
+
|
|
1350
|
+
/** @internal */
|
|
1351
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl$outboundSchema:
|
|
1352
|
+
z.ZodNativeEnum<
|
|
1353
|
+
typeof CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl
|
|
1354
|
+
> = z.nativeEnum(CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl);
|
|
1355
|
+
|
|
1356
|
+
/** @internal */
|
|
1357
|
+
export type CreateRouterResponse2PromptCacheBreakpoint$Outbound = {
|
|
1358
|
+
mode: string;
|
|
1359
|
+
ttl?: string | undefined;
|
|
1360
|
+
};
|
|
1361
|
+
|
|
1362
|
+
/** @internal */
|
|
1363
|
+
export const CreateRouterResponse2PromptCacheBreakpoint$outboundSchema:
|
|
1364
|
+
z.ZodType<
|
|
1365
|
+
CreateRouterResponse2PromptCacheBreakpoint$Outbound,
|
|
1366
|
+
z.ZodTypeDef,
|
|
1367
|
+
CreateRouterResponse2PromptCacheBreakpoint
|
|
1368
|
+
> = z.object({
|
|
1369
|
+
mode: CreateRouterResponse2ResponsesMode$outboundSchema,
|
|
1370
|
+
ttl:
|
|
1371
|
+
CreateRouterResponse2ResponsesRequestRequestBodyInput2Ttl$outboundSchema
|
|
1372
|
+
.optional(),
|
|
1373
|
+
});
|
|
1374
|
+
|
|
1375
|
+
export function createRouterResponse2PromptCacheBreakpointToJSON(
|
|
1376
|
+
createRouterResponse2PromptCacheBreakpoint:
|
|
1377
|
+
CreateRouterResponse2PromptCacheBreakpoint,
|
|
1378
|
+
): string {
|
|
1379
|
+
return JSON.stringify(
|
|
1380
|
+
CreateRouterResponse2PromptCacheBreakpoint$outboundSchema.parse(
|
|
1381
|
+
createRouterResponse2PromptCacheBreakpoint,
|
|
1382
|
+
),
|
|
1383
|
+
);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1264
1386
|
/** @internal */
|
|
1265
1387
|
export type TwoFile$Outbound = {
|
|
1266
1388
|
cache_control?:
|
|
@@ -1271,6 +1393,9 @@ export type TwoFile$Outbound = {
|
|
|
1271
1393
|
file_url?: string | undefined;
|
|
1272
1394
|
filename?: string | undefined;
|
|
1273
1395
|
mime_type?: string | undefined;
|
|
1396
|
+
prompt_cache_breakpoint?:
|
|
1397
|
+
| CreateRouterResponse2PromptCacheBreakpoint$Outbound
|
|
1398
|
+
| undefined;
|
|
1274
1399
|
type: "input_file";
|
|
1275
1400
|
};
|
|
1276
1401
|
|
|
@@ -1288,6 +1413,9 @@ export const TwoFile$outboundSchema: z.ZodType<
|
|
|
1288
1413
|
fileUrl: z.string().optional(),
|
|
1289
1414
|
filename: z.string().optional(),
|
|
1290
1415
|
mimeType: z.string().optional(),
|
|
1416
|
+
promptCacheBreakpoint: z.lazy(() =>
|
|
1417
|
+
CreateRouterResponse2PromptCacheBreakpoint$outboundSchema
|
|
1418
|
+
).optional(),
|
|
1291
1419
|
type: z.literal("input_file"),
|
|
1292
1420
|
}).transform((v) => {
|
|
1293
1421
|
return remap$(v, {
|
|
@@ -1296,6 +1424,7 @@ export const TwoFile$outboundSchema: z.ZodType<
|
|
|
1296
1424
|
fileId: "file_id",
|
|
1297
1425
|
fileUrl: "file_url",
|
|
1298
1426
|
mimeType: "mime_type",
|
|
1427
|
+
promptCacheBreakpoint: "prompt_cache_breakpoint",
|
|
1299
1428
|
});
|
|
1300
1429
|
});
|
|
1301
1430
|
|
|
@@ -1304,9 +1433,9 @@ export function twoFileToJSON(twoFile: TwoFile): string {
|
|
|
1304
1433
|
}
|
|
1305
1434
|
|
|
1306
1435
|
/** @internal */
|
|
1307
|
-
export const
|
|
1308
|
-
typeof
|
|
1309
|
-
|
|
1436
|
+
export const CreateRouterResponse2ResponsesRequestTtl$outboundSchema:
|
|
1437
|
+
z.ZodNativeEnum<typeof CreateRouterResponse2ResponsesRequestTtl> = z
|
|
1438
|
+
.nativeEnum(CreateRouterResponse2ResponsesRequestTtl);
|
|
1310
1439
|
|
|
1311
1440
|
/** @internal */
|
|
1312
1441
|
export const CreateRouterResponse2ResponsesRequestType$outboundSchema:
|
|
@@ -1326,7 +1455,7 @@ export const CreateRouterResponse2ResponsesCacheControl$outboundSchema:
|
|
|
1326
1455
|
z.ZodTypeDef,
|
|
1327
1456
|
CreateRouterResponse2ResponsesCacheControl
|
|
1328
1457
|
> = z.object({
|
|
1329
|
-
ttl:
|
|
1458
|
+
ttl: CreateRouterResponse2ResponsesRequestTtl$outboundSchema.default("5m"),
|
|
1330
1459
|
type: CreateRouterResponse2ResponsesRequestType$outboundSchema,
|
|
1331
1460
|
});
|
|
1332
1461
|
|
|
@@ -1345,6 +1474,41 @@ export function createRouterResponse2ResponsesCacheControlToJSON(
|
|
|
1345
1474
|
export const Detail$outboundSchema: z.ZodNativeEnum<typeof Detail> = z
|
|
1346
1475
|
.nativeEnum(Detail);
|
|
1347
1476
|
|
|
1477
|
+
/** @internal */
|
|
1478
|
+
export const CreateRouterResponse2Mode$outboundSchema: z.ZodNativeEnum<
|
|
1479
|
+
typeof CreateRouterResponse2Mode
|
|
1480
|
+
> = z.nativeEnum(CreateRouterResponse2Mode);
|
|
1481
|
+
|
|
1482
|
+
/** @internal */
|
|
1483
|
+
export const CreateRouterResponse2ResponsesRequestRequestBodyTtl$outboundSchema:
|
|
1484
|
+
z.ZodNativeEnum<typeof CreateRouterResponse2ResponsesRequestRequestBodyTtl> =
|
|
1485
|
+
z.nativeEnum(CreateRouterResponse2ResponsesRequestRequestBodyTtl);
|
|
1486
|
+
|
|
1487
|
+
/** @internal */
|
|
1488
|
+
export type TwoPromptCacheBreakpoint$Outbound = {
|
|
1489
|
+
mode: string;
|
|
1490
|
+
ttl?: string | undefined;
|
|
1491
|
+
};
|
|
1492
|
+
|
|
1493
|
+
/** @internal */
|
|
1494
|
+
export const TwoPromptCacheBreakpoint$outboundSchema: z.ZodType<
|
|
1495
|
+
TwoPromptCacheBreakpoint$Outbound,
|
|
1496
|
+
z.ZodTypeDef,
|
|
1497
|
+
TwoPromptCacheBreakpoint
|
|
1498
|
+
> = z.object({
|
|
1499
|
+
mode: CreateRouterResponse2Mode$outboundSchema,
|
|
1500
|
+
ttl: CreateRouterResponse2ResponsesRequestRequestBodyTtl$outboundSchema
|
|
1501
|
+
.optional(),
|
|
1502
|
+
});
|
|
1503
|
+
|
|
1504
|
+
export function twoPromptCacheBreakpointToJSON(
|
|
1505
|
+
twoPromptCacheBreakpoint: TwoPromptCacheBreakpoint,
|
|
1506
|
+
): string {
|
|
1507
|
+
return JSON.stringify(
|
|
1508
|
+
TwoPromptCacheBreakpoint$outboundSchema.parse(twoPromptCacheBreakpoint),
|
|
1509
|
+
);
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1348
1512
|
/** @internal */
|
|
1349
1513
|
export type TwoImage$Outbound = {
|
|
1350
1514
|
cache_control?:
|
|
@@ -1353,6 +1517,7 @@ export type TwoImage$Outbound = {
|
|
|
1353
1517
|
detail?: string | undefined;
|
|
1354
1518
|
file_id?: string | undefined;
|
|
1355
1519
|
image_url?: string | undefined;
|
|
1520
|
+
prompt_cache_breakpoint?: TwoPromptCacheBreakpoint$Outbound | undefined;
|
|
1356
1521
|
type: "input_image";
|
|
1357
1522
|
};
|
|
1358
1523
|
|
|
@@ -1368,12 +1533,15 @@ export const TwoImage$outboundSchema: z.ZodType<
|
|
|
1368
1533
|
detail: Detail$outboundSchema.optional(),
|
|
1369
1534
|
fileId: z.string().optional(),
|
|
1370
1535
|
imageUrl: z.string().optional(),
|
|
1536
|
+
promptCacheBreakpoint: z.lazy(() => TwoPromptCacheBreakpoint$outboundSchema)
|
|
1537
|
+
.optional(),
|
|
1371
1538
|
type: z.literal("input_image"),
|
|
1372
1539
|
}).transform((v) => {
|
|
1373
1540
|
return remap$(v, {
|
|
1374
1541
|
cacheControl: "cache_control",
|
|
1375
1542
|
fileId: "file_id",
|
|
1376
1543
|
imageUrl: "image_url",
|
|
1544
|
+
promptCacheBreakpoint: "prompt_cache_breakpoint",
|
|
1377
1545
|
});
|
|
1378
1546
|
});
|
|
1379
1547
|
|
|
@@ -1417,9 +1585,43 @@ export function createRouterResponse2CacheControlToJSON(
|
|
|
1417
1585
|
);
|
|
1418
1586
|
}
|
|
1419
1587
|
|
|
1588
|
+
/** @internal */
|
|
1589
|
+
export const TwoMode$outboundSchema: z.ZodNativeEnum<typeof TwoMode> = z
|
|
1590
|
+
.nativeEnum(TwoMode);
|
|
1591
|
+
|
|
1592
|
+
/** @internal */
|
|
1593
|
+
export const CreateRouterResponse2ResponsesTtl$outboundSchema: z.ZodNativeEnum<
|
|
1594
|
+
typeof CreateRouterResponse2ResponsesTtl
|
|
1595
|
+
> = z.nativeEnum(CreateRouterResponse2ResponsesTtl);
|
|
1596
|
+
|
|
1597
|
+
/** @internal */
|
|
1598
|
+
export type PromptCacheBreakpoint$Outbound = {
|
|
1599
|
+
mode: string;
|
|
1600
|
+
ttl?: string | undefined;
|
|
1601
|
+
};
|
|
1602
|
+
|
|
1603
|
+
/** @internal */
|
|
1604
|
+
export const PromptCacheBreakpoint$outboundSchema: z.ZodType<
|
|
1605
|
+
PromptCacheBreakpoint$Outbound,
|
|
1606
|
+
z.ZodTypeDef,
|
|
1607
|
+
PromptCacheBreakpoint
|
|
1608
|
+
> = z.object({
|
|
1609
|
+
mode: TwoMode$outboundSchema,
|
|
1610
|
+
ttl: CreateRouterResponse2ResponsesTtl$outboundSchema.optional(),
|
|
1611
|
+
});
|
|
1612
|
+
|
|
1613
|
+
export function promptCacheBreakpointToJSON(
|
|
1614
|
+
promptCacheBreakpoint: PromptCacheBreakpoint,
|
|
1615
|
+
): string {
|
|
1616
|
+
return JSON.stringify(
|
|
1617
|
+
PromptCacheBreakpoint$outboundSchema.parse(promptCacheBreakpoint),
|
|
1618
|
+
);
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1420
1621
|
/** @internal */
|
|
1421
1622
|
export type TwoText$Outbound = {
|
|
1422
1623
|
cache_control?: CreateRouterResponse2CacheControl$Outbound | undefined;
|
|
1624
|
+
prompt_cache_breakpoint?: PromptCacheBreakpoint$Outbound | undefined;
|
|
1423
1625
|
text: string;
|
|
1424
1626
|
type: "input_text";
|
|
1425
1627
|
};
|
|
@@ -1432,11 +1634,14 @@ export const TwoText$outboundSchema: z.ZodType<
|
|
|
1432
1634
|
> = z.object({
|
|
1433
1635
|
cacheControl: z.lazy(() => CreateRouterResponse2CacheControl$outboundSchema)
|
|
1434
1636
|
.optional(),
|
|
1637
|
+
promptCacheBreakpoint: z.lazy(() => PromptCacheBreakpoint$outboundSchema)
|
|
1638
|
+
.optional(),
|
|
1435
1639
|
text: z.string(),
|
|
1436
1640
|
type: z.literal("input_text"),
|
|
1437
1641
|
}).transform((v) => {
|
|
1438
1642
|
return remap$(v, {
|
|
1439
1643
|
cacheControl: "cache_control",
|
|
1644
|
+
promptCacheBreakpoint: "prompt_cache_breakpoint",
|
|
1440
1645
|
});
|
|
1441
1646
|
});
|
|
1442
1647
|
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M5HJM4TTTEX8SRJPY07NSCVC"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M5HJM4TTRD1VRMYKKDJPXDB0"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M5HJM4TSNC5TW596J4B06WKZ"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M5HJM4TSG9V1KVHA1831JQWH"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -1220,7 +1220,7 @@ export type DeploymentGetConfigRole = ClosedEnum<
|
|
|
1220
1220
|
|
|
1221
1221
|
export type DeploymentGetConfig2File = {
|
|
1222
1222
|
/**
|
|
1223
|
-
* The file data as a data URI string in the format
|
|
1223
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
1224
1224
|
*/
|
|
1225
1225
|
fileData?: string | undefined;
|
|
1226
1226
|
/**
|