@orq-ai/node 3.14.39 → 3.14.41
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 +1 -1
- package/bin/mcp-server.js +698 -1503
- package/bin/mcp-server.js.map +56 -56
- package/docs/sdks/agents/README.md +71 -71
- package/examples/package-lock.json +1 -1
- package/funcs/agentsCreate.js +1 -1
- package/funcs/agentsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +2 -2
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createagent.d.ts +80 -0
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +70 -7
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.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.d.ts +106 -106
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +242 -234
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/creatememorystore.d.ts +10 -391
- package/models/operations/creatememorystore.d.ts.map +1 -1
- package/models/operations/creatememorystore.js +5 -563
- package/models/operations/creatememorystore.js.map +1 -1
- package/models/operations/createprompt.d.ts +40 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +33 -7
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +10 -10
- package/models/operations/deploymentgetconfig.d.ts +20 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +22 -8
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +20 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +16 -3
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +40 -0
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +33 -3
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getallmemorystores.d.ts +5 -195
- package/models/operations/getallmemorystores.d.ts.map +1 -1
- package/models/operations/getallmemorystores.js +3 -273
- package/models/operations/getallmemorystores.js.map +1 -1
- package/models/operations/getallprompts.d.ts +20 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +16 -3
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +20 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +16 -3
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +20 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +16 -2
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listagents.d.ts +40 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +36 -3
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +40 -0
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +36 -3
- package/models/operations/listagenttasks.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.d.ts +5 -5
- package/models/operations/listdatasources.d.ts.map +1 -1
- package/models/operations/listdatasources.js +4 -4
- package/models/operations/listdatasources.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +20 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +16 -3
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.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/retrievememorystore.d.ts +5 -196
- package/models/operations/retrievememorystore.d.ts.map +1 -1
- package/models/operations/retrievememorystore.js +3 -273
- package/models/operations/retrievememorystore.js.map +1 -1
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +40 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +36 -6
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +40 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +39 -6
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +80 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +73 -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/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/updatememorystore.d.ts +5 -195
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +3 -290
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +40 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +33 -7
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +10 -10
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/agents/README.md +2 -0
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -2
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/models/operations/createagent.ts +38 -23
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createknowledge.ts +1 -7
- package/packages/orq-rc/src/models/operations/createprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/createtool.ts +14 -10
- package/packages/orq-rc/src/models/operations/duplicateagent.ts +21 -15
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +29 -11
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +21 -15
- package/packages/orq-rc/src/models/operations/getalltools.ts +14 -10
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/listagents.ts +21 -15
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +14 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +12 -8
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +12 -8
- package/packages/orq-rc/src/models/operations/syncmcptool.ts +14 -10
- package/packages/orq-rc/src/models/operations/updateagent.ts +35 -23
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatetool.ts +25 -10
- package/sdk/agents.d.ts +7 -7
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +9 -9
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsCreate.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/models/operations/createagent.ts +129 -0
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.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 +423 -524
- package/src/models/operations/creatememorystore.ts +14 -1108
- package/src/models/operations/createprompt.ts +60 -0
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/deploymentgetconfig.ts +30 -0
- package/src/models/operations/deployments.ts +30 -0
- package/src/models/operations/duplicatetool.ts +10 -10
- 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/getagent.ts +62 -0
- package/src/models/operations/getallmemorystores.ts +7 -595
- package/src/models/operations/getallprompts.ts +30 -0
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +30 -0
- package/src/models/operations/getpromptversion.ts +30 -0
- package/src/models/operations/listagents.ts +67 -0
- package/src/models/operations/listagenttasks.ts +66 -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 +9 -9
- package/src/models/operations/listpromptversions.ts +30 -0
- package/src/models/operations/retrievecontact.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/retrievememorystore.ts +7 -596
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +64 -0
- package/src/models/operations/streamrunagent.ts +66 -0
- package/src/models/operations/updateagent.ts +131 -0
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.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/updatememorystore.ts +7 -527
- package/src/models/operations/updateprompt.ts +60 -0
- package/src/models/operations/updatetool.ts +10 -10
- package/src/sdk/agents.ts +17 -17
|
@@ -710,7 +710,7 @@ export const RetrieveToolResponseBody5$inboundSchema: z.ZodType<
|
|
|
710
710
|
z.ZodTypeDef,
|
|
711
711
|
unknown
|
|
712
712
|
> = z.object({
|
|
713
|
-
_id: z.string().default("
|
|
713
|
+
_id: z.string().default("01KACG317HN37H4350KH77CAEN"),
|
|
714
714
|
path: z.string(),
|
|
715
715
|
key: z.string(),
|
|
716
716
|
display_name: z.string().optional(),
|
|
@@ -765,7 +765,7 @@ export const RetrieveToolResponseBody5$outboundSchema: z.ZodType<
|
|
|
765
765
|
z.ZodTypeDef,
|
|
766
766
|
RetrieveToolResponseBody5
|
|
767
767
|
> = z.object({
|
|
768
|
-
id: z.string().default("
|
|
768
|
+
id: z.string().default("01KACG317HN37H4350KH77CAEN"),
|
|
769
769
|
path: z.string(),
|
|
770
770
|
key: z.string(),
|
|
771
771
|
displayName: z.string().optional(),
|
|
@@ -1032,7 +1032,7 @@ export const RetrieveToolResponseBody4$inboundSchema: z.ZodType<
|
|
|
1032
1032
|
z.ZodTypeDef,
|
|
1033
1033
|
unknown
|
|
1034
1034
|
> = z.object({
|
|
1035
|
-
_id: z.string().default("
|
|
1035
|
+
_id: z.string().default("01KACG317G1V66B7DPXQP86CYM"),
|
|
1036
1036
|
path: z.string(),
|
|
1037
1037
|
key: z.string(),
|
|
1038
1038
|
display_name: z.string().optional(),
|
|
@@ -1085,7 +1085,7 @@ export const RetrieveToolResponseBody4$outboundSchema: z.ZodType<
|
|
|
1085
1085
|
z.ZodTypeDef,
|
|
1086
1086
|
RetrieveToolResponseBody4
|
|
1087
1087
|
> = z.object({
|
|
1088
|
-
id: z.string().default("
|
|
1088
|
+
id: z.string().default("01KACG317G1V66B7DPXQP86CYM"),
|
|
1089
1089
|
path: z.string(),
|
|
1090
1090
|
key: z.string(),
|
|
1091
1091
|
displayName: z.string().optional(),
|
|
@@ -1379,7 +1379,7 @@ export const RetrieveToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
1379
1379
|
z.ZodTypeDef,
|
|
1380
1380
|
unknown
|
|
1381
1381
|
> = z.object({
|
|
1382
|
-
_id: z.string().default("
|
|
1382
|
+
_id: z.string().default("01KACG317FXBJ5BP9W9A7PT0NN"),
|
|
1383
1383
|
path: z.string(),
|
|
1384
1384
|
key: z.string(),
|
|
1385
1385
|
display_name: z.string().optional(),
|
|
@@ -1432,7 +1432,7 @@ export const RetrieveToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
1432
1432
|
z.ZodTypeDef,
|
|
1433
1433
|
RetrieveToolResponseBody3
|
|
1434
1434
|
> = z.object({
|
|
1435
|
-
id: z.string().default("
|
|
1435
|
+
id: z.string().default("01KACG317FXBJ5BP9W9A7PT0NN"),
|
|
1436
1436
|
path: z.string(),
|
|
1437
1437
|
key: z.string(),
|
|
1438
1438
|
displayName: z.string().optional(),
|
|
@@ -1553,7 +1553,7 @@ export const RetrieveToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
1553
1553
|
z.ZodTypeDef,
|
|
1554
1554
|
unknown
|
|
1555
1555
|
> = z.object({
|
|
1556
|
-
_id: z.string().default("
|
|
1556
|
+
_id: z.string().default("01KACG317EM4MK1JANE04B0D0S"),
|
|
1557
1557
|
path: z.string(),
|
|
1558
1558
|
key: z.string(),
|
|
1559
1559
|
display_name: z.string().optional(),
|
|
@@ -1605,7 +1605,7 @@ export const RetrieveToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
1605
1605
|
z.ZodTypeDef,
|
|
1606
1606
|
RetrieveToolResponseBody2
|
|
1607
1607
|
> = z.object({
|
|
1608
|
-
id: z.string().default("
|
|
1608
|
+
id: z.string().default("01KACG317EM4MK1JANE04B0D0S"),
|
|
1609
1609
|
path: z.string(),
|
|
1610
1610
|
key: z.string(),
|
|
1611
1611
|
displayName: z.string().optional(),
|
|
@@ -1724,7 +1724,7 @@ export const RetrieveToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
1724
1724
|
z.ZodTypeDef,
|
|
1725
1725
|
unknown
|
|
1726
1726
|
> = z.object({
|
|
1727
|
-
_id: z.string().default("
|
|
1727
|
+
_id: z.string().default("01KACG317C6EE1H5E17CRTWX4C"),
|
|
1728
1728
|
path: z.string(),
|
|
1729
1729
|
key: z.string(),
|
|
1730
1730
|
display_name: z.string().optional(),
|
|
@@ -1775,7 +1775,7 @@ export const RetrieveToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
1775
1775
|
z.ZodTypeDef,
|
|
1776
1776
|
RetrieveToolResponseBody1
|
|
1777
1777
|
> = z.object({
|
|
1778
|
-
id: z.string().default("
|
|
1778
|
+
id: z.string().default("01KACG317C6EE1H5E17CRTWX4C"),
|
|
1779
1779
|
path: z.string(),
|
|
1780
1780
|
key: z.string(),
|
|
1781
1781
|
displayName: z.string().optional(),
|
|
@@ -142,6 +142,20 @@ export const RunAgentModelType = {
|
|
|
142
142
|
*/
|
|
143
143
|
export type RunAgentModelType = ClosedEnum<typeof RunAgentModelType>;
|
|
144
144
|
|
|
145
|
+
/**
|
|
146
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
147
|
+
*/
|
|
148
|
+
export const RunAgentModelThinkingLevel = {
|
|
149
|
+
Low: "low",
|
|
150
|
+
High: "high",
|
|
151
|
+
} as const;
|
|
152
|
+
/**
|
|
153
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
154
|
+
*/
|
|
155
|
+
export type RunAgentModelThinkingLevel = ClosedEnum<
|
|
156
|
+
typeof RunAgentModelThinkingLevel
|
|
157
|
+
>;
|
|
158
|
+
|
|
145
159
|
export type RunAgentModelThinking = {
|
|
146
160
|
/**
|
|
147
161
|
* Enables or disables the thinking mode capability
|
|
@@ -151,6 +165,10 @@ export type RunAgentModelThinking = {
|
|
|
151
165
|
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
152
166
|
*/
|
|
153
167
|
budgetTokens: number;
|
|
168
|
+
/**
|
|
169
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
170
|
+
*/
|
|
171
|
+
thinkingLevel?: RunAgentModelThinkingLevel | undefined;
|
|
154
172
|
};
|
|
155
173
|
|
|
156
174
|
/**
|
|
@@ -474,6 +492,20 @@ export type RunAgentFallbackModelsType = ClosedEnum<
|
|
|
474
492
|
typeof RunAgentFallbackModelsType
|
|
475
493
|
>;
|
|
476
494
|
|
|
495
|
+
/**
|
|
496
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
497
|
+
*/
|
|
498
|
+
export const RunAgentFallbackModelsThinkingLevel = {
|
|
499
|
+
Low: "low",
|
|
500
|
+
High: "high",
|
|
501
|
+
} as const;
|
|
502
|
+
/**
|
|
503
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
504
|
+
*/
|
|
505
|
+
export type RunAgentFallbackModelsThinkingLevel = ClosedEnum<
|
|
506
|
+
typeof RunAgentFallbackModelsThinkingLevel
|
|
507
|
+
>;
|
|
508
|
+
|
|
477
509
|
export type RunAgentFallbackModelsThinking = {
|
|
478
510
|
/**
|
|
479
511
|
* Enables or disables the thinking mode capability
|
|
@@ -483,6 +515,10 @@ export type RunAgentFallbackModelsThinking = {
|
|
|
483
515
|
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
484
516
|
*/
|
|
485
517
|
budgetTokens: number;
|
|
518
|
+
/**
|
|
519
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
520
|
+
*/
|
|
521
|
+
thinkingLevel?: RunAgentFallbackModelsThinkingLevel | undefined;
|
|
486
522
|
};
|
|
487
523
|
|
|
488
524
|
/**
|
|
@@ -1949,6 +1985,15 @@ export const RunAgentModelType$outboundSchema: z.ZodNativeEnum<
|
|
|
1949
1985
|
typeof RunAgentModelType
|
|
1950
1986
|
> = RunAgentModelType$inboundSchema;
|
|
1951
1987
|
|
|
1988
|
+
/** @internal */
|
|
1989
|
+
export const RunAgentModelThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
1990
|
+
typeof RunAgentModelThinkingLevel
|
|
1991
|
+
> = z.nativeEnum(RunAgentModelThinkingLevel);
|
|
1992
|
+
/** @internal */
|
|
1993
|
+
export const RunAgentModelThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
1994
|
+
typeof RunAgentModelThinkingLevel
|
|
1995
|
+
> = RunAgentModelThinkingLevel$inboundSchema;
|
|
1996
|
+
|
|
1952
1997
|
/** @internal */
|
|
1953
1998
|
export const RunAgentModelThinking$inboundSchema: z.ZodType<
|
|
1954
1999
|
RunAgentModelThinking,
|
|
@@ -1957,15 +2002,18 @@ export const RunAgentModelThinking$inboundSchema: z.ZodType<
|
|
|
1957
2002
|
> = z.object({
|
|
1958
2003
|
type: RunAgentModelType$inboundSchema,
|
|
1959
2004
|
budget_tokens: z.number(),
|
|
2005
|
+
thinking_level: RunAgentModelThinkingLevel$inboundSchema.optional(),
|
|
1960
2006
|
}).transform((v) => {
|
|
1961
2007
|
return remap$(v, {
|
|
1962
2008
|
"budget_tokens": "budgetTokens",
|
|
2009
|
+
"thinking_level": "thinkingLevel",
|
|
1963
2010
|
});
|
|
1964
2011
|
});
|
|
1965
2012
|
/** @internal */
|
|
1966
2013
|
export type RunAgentModelThinking$Outbound = {
|
|
1967
2014
|
type: string;
|
|
1968
2015
|
budget_tokens: number;
|
|
2016
|
+
thinking_level?: string | undefined;
|
|
1969
2017
|
};
|
|
1970
2018
|
|
|
1971
2019
|
/** @internal */
|
|
@@ -1976,9 +2024,11 @@ export const RunAgentModelThinking$outboundSchema: z.ZodType<
|
|
|
1976
2024
|
> = z.object({
|
|
1977
2025
|
type: RunAgentModelType$outboundSchema,
|
|
1978
2026
|
budgetTokens: z.number(),
|
|
2027
|
+
thinkingLevel: RunAgentModelThinkingLevel$outboundSchema.optional(),
|
|
1979
2028
|
}).transform((v) => {
|
|
1980
2029
|
return remap$(v, {
|
|
1981
2030
|
budgetTokens: "budget_tokens",
|
|
2031
|
+
thinkingLevel: "thinking_level",
|
|
1982
2032
|
});
|
|
1983
2033
|
});
|
|
1984
2034
|
|
|
@@ -2859,6 +2909,15 @@ export const RunAgentFallbackModelsType$outboundSchema: z.ZodNativeEnum<
|
|
|
2859
2909
|
typeof RunAgentFallbackModelsType
|
|
2860
2910
|
> = RunAgentFallbackModelsType$inboundSchema;
|
|
2861
2911
|
|
|
2912
|
+
/** @internal */
|
|
2913
|
+
export const RunAgentFallbackModelsThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
2914
|
+
typeof RunAgentFallbackModelsThinkingLevel
|
|
2915
|
+
> = z.nativeEnum(RunAgentFallbackModelsThinkingLevel);
|
|
2916
|
+
/** @internal */
|
|
2917
|
+
export const RunAgentFallbackModelsThinkingLevel$outboundSchema:
|
|
2918
|
+
z.ZodNativeEnum<typeof RunAgentFallbackModelsThinkingLevel> =
|
|
2919
|
+
RunAgentFallbackModelsThinkingLevel$inboundSchema;
|
|
2920
|
+
|
|
2862
2921
|
/** @internal */
|
|
2863
2922
|
export const RunAgentFallbackModelsThinking$inboundSchema: z.ZodType<
|
|
2864
2923
|
RunAgentFallbackModelsThinking,
|
|
@@ -2867,15 +2926,18 @@ export const RunAgentFallbackModelsThinking$inboundSchema: z.ZodType<
|
|
|
2867
2926
|
> = z.object({
|
|
2868
2927
|
type: RunAgentFallbackModelsType$inboundSchema,
|
|
2869
2928
|
budget_tokens: z.number(),
|
|
2929
|
+
thinking_level: RunAgentFallbackModelsThinkingLevel$inboundSchema.optional(),
|
|
2870
2930
|
}).transform((v) => {
|
|
2871
2931
|
return remap$(v, {
|
|
2872
2932
|
"budget_tokens": "budgetTokens",
|
|
2933
|
+
"thinking_level": "thinkingLevel",
|
|
2873
2934
|
});
|
|
2874
2935
|
});
|
|
2875
2936
|
/** @internal */
|
|
2876
2937
|
export type RunAgentFallbackModelsThinking$Outbound = {
|
|
2877
2938
|
type: string;
|
|
2878
2939
|
budget_tokens: number;
|
|
2940
|
+
thinking_level?: string | undefined;
|
|
2879
2941
|
};
|
|
2880
2942
|
|
|
2881
2943
|
/** @internal */
|
|
@@ -2886,9 +2948,11 @@ export const RunAgentFallbackModelsThinking$outboundSchema: z.ZodType<
|
|
|
2886
2948
|
> = z.object({
|
|
2887
2949
|
type: RunAgentFallbackModelsType$outboundSchema,
|
|
2888
2950
|
budgetTokens: z.number(),
|
|
2951
|
+
thinkingLevel: RunAgentFallbackModelsThinkingLevel$outboundSchema.optional(),
|
|
2889
2952
|
}).transform((v) => {
|
|
2890
2953
|
return remap$(v, {
|
|
2891
2954
|
budgetTokens: "budget_tokens",
|
|
2955
|
+
thinkingLevel: "thinking_level",
|
|
2892
2956
|
});
|
|
2893
2957
|
});
|
|
2894
2958
|
|
|
@@ -148,6 +148,20 @@ export type StreamRunAgentModelType = ClosedEnum<
|
|
|
148
148
|
typeof StreamRunAgentModelType
|
|
149
149
|
>;
|
|
150
150
|
|
|
151
|
+
/**
|
|
152
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
153
|
+
*/
|
|
154
|
+
export const StreamRunAgentModelThinkingLevel = {
|
|
155
|
+
Low: "low",
|
|
156
|
+
High: "high",
|
|
157
|
+
} as const;
|
|
158
|
+
/**
|
|
159
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
160
|
+
*/
|
|
161
|
+
export type StreamRunAgentModelThinkingLevel = ClosedEnum<
|
|
162
|
+
typeof StreamRunAgentModelThinkingLevel
|
|
163
|
+
>;
|
|
164
|
+
|
|
151
165
|
export type StreamRunAgentModelThinking = {
|
|
152
166
|
/**
|
|
153
167
|
* Enables or disables the thinking mode capability
|
|
@@ -157,6 +171,10 @@ export type StreamRunAgentModelThinking = {
|
|
|
157
171
|
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
158
172
|
*/
|
|
159
173
|
budgetTokens: number;
|
|
174
|
+
/**
|
|
175
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
176
|
+
*/
|
|
177
|
+
thinkingLevel?: StreamRunAgentModelThinkingLevel | undefined;
|
|
160
178
|
};
|
|
161
179
|
|
|
162
180
|
/**
|
|
@@ -488,6 +506,20 @@ export type StreamRunAgentFallbackModelsType = ClosedEnum<
|
|
|
488
506
|
typeof StreamRunAgentFallbackModelsType
|
|
489
507
|
>;
|
|
490
508
|
|
|
509
|
+
/**
|
|
510
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
511
|
+
*/
|
|
512
|
+
export const StreamRunAgentFallbackModelsThinkingLevel = {
|
|
513
|
+
Low: "low",
|
|
514
|
+
High: "high",
|
|
515
|
+
} as const;
|
|
516
|
+
/**
|
|
517
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
518
|
+
*/
|
|
519
|
+
export type StreamRunAgentFallbackModelsThinkingLevel = ClosedEnum<
|
|
520
|
+
typeof StreamRunAgentFallbackModelsThinkingLevel
|
|
521
|
+
>;
|
|
522
|
+
|
|
491
523
|
export type StreamRunAgentFallbackModelsThinking = {
|
|
492
524
|
/**
|
|
493
525
|
* Enables or disables the thinking mode capability
|
|
@@ -497,6 +529,10 @@ export type StreamRunAgentFallbackModelsThinking = {
|
|
|
497
529
|
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
498
530
|
*/
|
|
499
531
|
budgetTokens: number;
|
|
532
|
+
/**
|
|
533
|
+
* The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
|
|
534
|
+
*/
|
|
535
|
+
thinkingLevel?: StreamRunAgentFallbackModelsThinkingLevel | undefined;
|
|
500
536
|
};
|
|
501
537
|
|
|
502
538
|
/**
|
|
@@ -1909,6 +1945,15 @@ export const StreamRunAgentModelType$outboundSchema: z.ZodNativeEnum<
|
|
|
1909
1945
|
typeof StreamRunAgentModelType
|
|
1910
1946
|
> = StreamRunAgentModelType$inboundSchema;
|
|
1911
1947
|
|
|
1948
|
+
/** @internal */
|
|
1949
|
+
export const StreamRunAgentModelThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
1950
|
+
typeof StreamRunAgentModelThinkingLevel
|
|
1951
|
+
> = z.nativeEnum(StreamRunAgentModelThinkingLevel);
|
|
1952
|
+
/** @internal */
|
|
1953
|
+
export const StreamRunAgentModelThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
1954
|
+
typeof StreamRunAgentModelThinkingLevel
|
|
1955
|
+
> = StreamRunAgentModelThinkingLevel$inboundSchema;
|
|
1956
|
+
|
|
1912
1957
|
/** @internal */
|
|
1913
1958
|
export const StreamRunAgentModelThinking$inboundSchema: z.ZodType<
|
|
1914
1959
|
StreamRunAgentModelThinking,
|
|
@@ -1917,15 +1962,18 @@ export const StreamRunAgentModelThinking$inboundSchema: z.ZodType<
|
|
|
1917
1962
|
> = z.object({
|
|
1918
1963
|
type: StreamRunAgentModelType$inboundSchema,
|
|
1919
1964
|
budget_tokens: z.number(),
|
|
1965
|
+
thinking_level: StreamRunAgentModelThinkingLevel$inboundSchema.optional(),
|
|
1920
1966
|
}).transform((v) => {
|
|
1921
1967
|
return remap$(v, {
|
|
1922
1968
|
"budget_tokens": "budgetTokens",
|
|
1969
|
+
"thinking_level": "thinkingLevel",
|
|
1923
1970
|
});
|
|
1924
1971
|
});
|
|
1925
1972
|
/** @internal */
|
|
1926
1973
|
export type StreamRunAgentModelThinking$Outbound = {
|
|
1927
1974
|
type: string;
|
|
1928
1975
|
budget_tokens: number;
|
|
1976
|
+
thinking_level?: string | undefined;
|
|
1929
1977
|
};
|
|
1930
1978
|
|
|
1931
1979
|
/** @internal */
|
|
@@ -1936,9 +1984,11 @@ export const StreamRunAgentModelThinking$outboundSchema: z.ZodType<
|
|
|
1936
1984
|
> = z.object({
|
|
1937
1985
|
type: StreamRunAgentModelType$outboundSchema,
|
|
1938
1986
|
budgetTokens: z.number(),
|
|
1987
|
+
thinkingLevel: StreamRunAgentModelThinkingLevel$outboundSchema.optional(),
|
|
1939
1988
|
}).transform((v) => {
|
|
1940
1989
|
return remap$(v, {
|
|
1941
1990
|
budgetTokens: "budget_tokens",
|
|
1991
|
+
thinkingLevel: "thinking_level",
|
|
1942
1992
|
});
|
|
1943
1993
|
});
|
|
1944
1994
|
|
|
@@ -2870,6 +2920,15 @@ export const StreamRunAgentFallbackModelsType$outboundSchema: z.ZodNativeEnum<
|
|
|
2870
2920
|
typeof StreamRunAgentFallbackModelsType
|
|
2871
2921
|
> = StreamRunAgentFallbackModelsType$inboundSchema;
|
|
2872
2922
|
|
|
2923
|
+
/** @internal */
|
|
2924
|
+
export const StreamRunAgentFallbackModelsThinkingLevel$inboundSchema:
|
|
2925
|
+
z.ZodNativeEnum<typeof StreamRunAgentFallbackModelsThinkingLevel> = z
|
|
2926
|
+
.nativeEnum(StreamRunAgentFallbackModelsThinkingLevel);
|
|
2927
|
+
/** @internal */
|
|
2928
|
+
export const StreamRunAgentFallbackModelsThinkingLevel$outboundSchema:
|
|
2929
|
+
z.ZodNativeEnum<typeof StreamRunAgentFallbackModelsThinkingLevel> =
|
|
2930
|
+
StreamRunAgentFallbackModelsThinkingLevel$inboundSchema;
|
|
2931
|
+
|
|
2873
2932
|
/** @internal */
|
|
2874
2933
|
export const StreamRunAgentFallbackModelsThinking$inboundSchema: z.ZodType<
|
|
2875
2934
|
StreamRunAgentFallbackModelsThinking,
|
|
@@ -2878,15 +2937,19 @@ export const StreamRunAgentFallbackModelsThinking$inboundSchema: z.ZodType<
|
|
|
2878
2937
|
> = z.object({
|
|
2879
2938
|
type: StreamRunAgentFallbackModelsType$inboundSchema,
|
|
2880
2939
|
budget_tokens: z.number(),
|
|
2940
|
+
thinking_level: StreamRunAgentFallbackModelsThinkingLevel$inboundSchema
|
|
2941
|
+
.optional(),
|
|
2881
2942
|
}).transform((v) => {
|
|
2882
2943
|
return remap$(v, {
|
|
2883
2944
|
"budget_tokens": "budgetTokens",
|
|
2945
|
+
"thinking_level": "thinkingLevel",
|
|
2884
2946
|
});
|
|
2885
2947
|
});
|
|
2886
2948
|
/** @internal */
|
|
2887
2949
|
export type StreamRunAgentFallbackModelsThinking$Outbound = {
|
|
2888
2950
|
type: string;
|
|
2889
2951
|
budget_tokens: number;
|
|
2952
|
+
thinking_level?: string | undefined;
|
|
2890
2953
|
};
|
|
2891
2954
|
|
|
2892
2955
|
/** @internal */
|
|
@@ -2897,9 +2960,12 @@ export const StreamRunAgentFallbackModelsThinking$outboundSchema: z.ZodType<
|
|
|
2897
2960
|
> = z.object({
|
|
2898
2961
|
type: StreamRunAgentFallbackModelsType$outboundSchema,
|
|
2899
2962
|
budgetTokens: z.number(),
|
|
2963
|
+
thinkingLevel: StreamRunAgentFallbackModelsThinkingLevel$outboundSchema
|
|
2964
|
+
.optional(),
|
|
2900
2965
|
}).transform((v) => {
|
|
2901
2966
|
return remap$(v, {
|
|
2902
2967
|
budgetTokens: "budget_tokens",
|
|
2968
|
+
thinkingLevel: "thinking_level",
|
|
2903
2969
|
});
|
|
2904
2970
|
});
|
|
2905
2971
|
|