@orq-ai/node 3.14.40 → 3.14.42
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/bin/mcp-server.js +696 -1501
- package/bin/mcp-server.js.map +55 -55
- package/examples/package-lock.json +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 +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 +204 -62
- 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 +423 -524
- package/packages/orq-rc/src/models/operations/createknowledge.ts +1 -7
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +14 -1094
- package/packages/orq-rc/src/models/operations/createprompt.ts +64 -4
- package/packages/orq-rc/src/models/operations/createtool.ts +14 -10
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +30 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +30 -0
- package/packages/orq-rc/src/models/operations/duplicateagent.ts +93 -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 +86 -15
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +7 -595
- package/packages/orq-rc/src/models/operations/getallprompts.ts +30 -0
- 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/getoneprompt.ts +30 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +30 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +89 -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 +9 -9
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +30 -0
- 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/retrievememorystore.ts +7 -596
- package/packages/orq-rc/src/models/operations/retrievetool.ts +14 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +81 -8
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +86 -8
- package/packages/orq-rc/src/models/operations/syncmcptool.ts +14 -10
- package/packages/orq-rc/src/models/operations/updateagent.ts +176 -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/updatememorystore.ts +7 -527
- package/packages/orq-rc/src/models/operations/updateprompt.ts +64 -4
- package/packages/orq-rc/src/models/operations/updatetool.ts +25 -10
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- 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
|
@@ -79,7 +79,7 @@ export type ResponseFormatJsonSchema = {
|
|
|
79
79
|
/**
|
|
80
80
|
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
81
81
|
*/
|
|
82
|
-
strict?: boolean | undefined;
|
|
82
|
+
strict?: boolean | null | undefined;
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
/**
|
|
@@ -154,6 +154,18 @@ export const ModelConfigurationType = {
|
|
|
154
154
|
*/
|
|
155
155
|
export type ModelConfigurationType = ClosedEnum<typeof ModelConfigurationType>;
|
|
156
156
|
|
|
157
|
+
/**
|
|
158
|
+
* 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.
|
|
159
|
+
*/
|
|
160
|
+
export const ThinkingLevel = {
|
|
161
|
+
Low: "low",
|
|
162
|
+
High: "high",
|
|
163
|
+
} as const;
|
|
164
|
+
/**
|
|
165
|
+
* 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.
|
|
166
|
+
*/
|
|
167
|
+
export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
|
|
168
|
+
|
|
157
169
|
export type Thinking = {
|
|
158
170
|
/**
|
|
159
171
|
* Enables or disables the thinking mode capability
|
|
@@ -163,6 +175,10 @@ export type Thinking = {
|
|
|
163
175
|
* 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`.
|
|
164
176
|
*/
|
|
165
177
|
budgetTokens: number;
|
|
178
|
+
/**
|
|
179
|
+
* 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.
|
|
180
|
+
*/
|
|
181
|
+
thinkingLevel?: ThinkingLevel | undefined;
|
|
166
182
|
};
|
|
167
183
|
|
|
168
184
|
/**
|
|
@@ -413,7 +429,7 @@ export type CreateAgentResponseFormatAgentsJsonSchema = {
|
|
|
413
429
|
/**
|
|
414
430
|
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
415
431
|
*/
|
|
416
|
-
strict?: boolean | undefined;
|
|
432
|
+
strict?: boolean | null | undefined;
|
|
417
433
|
};
|
|
418
434
|
|
|
419
435
|
/**
|
|
@@ -495,6 +511,20 @@ export type FallbackModelConfigurationType = ClosedEnum<
|
|
|
495
511
|
typeof FallbackModelConfigurationType
|
|
496
512
|
>;
|
|
497
513
|
|
|
514
|
+
/**
|
|
515
|
+
* 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.
|
|
516
|
+
*/
|
|
517
|
+
export const FallbackModelConfigurationThinkingLevel = {
|
|
518
|
+
Low: "low",
|
|
519
|
+
High: "high",
|
|
520
|
+
} as const;
|
|
521
|
+
/**
|
|
522
|
+
* 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.
|
|
523
|
+
*/
|
|
524
|
+
export type FallbackModelConfigurationThinkingLevel = ClosedEnum<
|
|
525
|
+
typeof FallbackModelConfigurationThinkingLevel
|
|
526
|
+
>;
|
|
527
|
+
|
|
498
528
|
export type FallbackModelConfigurationThinking = {
|
|
499
529
|
/**
|
|
500
530
|
* Enables or disables the thinking mode capability
|
|
@@ -504,6 +534,10 @@ export type FallbackModelConfigurationThinking = {
|
|
|
504
534
|
* 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`.
|
|
505
535
|
*/
|
|
506
536
|
budgetTokens: number;
|
|
537
|
+
/**
|
|
538
|
+
* 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.
|
|
539
|
+
*/
|
|
540
|
+
thinkingLevel?: FallbackModelConfigurationThinkingLevel | undefined;
|
|
507
541
|
};
|
|
508
542
|
|
|
509
543
|
/**
|
|
@@ -1189,6 +1223,10 @@ export type CreateAgentRequestBody = {
|
|
|
1189
1223
|
* Unique identifier for the agent within the workspace
|
|
1190
1224
|
*/
|
|
1191
1225
|
key: string;
|
|
1226
|
+
/**
|
|
1227
|
+
* agent display name within the workspace
|
|
1228
|
+
*/
|
|
1229
|
+
displayName: string;
|
|
1192
1230
|
/**
|
|
1193
1231
|
* The role or function of the agent
|
|
1194
1232
|
*/
|
|
@@ -1295,12 +1333,12 @@ export type CreateAgentTools = {
|
|
|
1295
1333
|
key?: string | undefined;
|
|
1296
1334
|
actionType: string;
|
|
1297
1335
|
displayName?: string | undefined;
|
|
1298
|
-
requiresApproval?: boolean | undefined;
|
|
1299
|
-
conditions?: Array<Conditions> | undefined;
|
|
1300
1336
|
/**
|
|
1301
|
-
* Optional
|
|
1337
|
+
* Optional tool description
|
|
1302
1338
|
*/
|
|
1303
|
-
|
|
1339
|
+
description?: string | undefined;
|
|
1340
|
+
requiresApproval?: boolean | undefined;
|
|
1341
|
+
conditions?: Array<Conditions> | undefined;
|
|
1304
1342
|
/**
|
|
1305
1343
|
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
1306
1344
|
*/
|
|
@@ -1458,7 +1496,7 @@ export type CreateAgentResponseFormatAgentsResponseJsonSchema = {
|
|
|
1458
1496
|
/**
|
|
1459
1497
|
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
1460
1498
|
*/
|
|
1461
|
-
strict?: boolean | undefined;
|
|
1499
|
+
strict?: boolean | null | undefined;
|
|
1462
1500
|
};
|
|
1463
1501
|
|
|
1464
1502
|
/**
|
|
@@ -1538,6 +1576,20 @@ export const CreateAgentType = {
|
|
|
1538
1576
|
*/
|
|
1539
1577
|
export type CreateAgentType = ClosedEnum<typeof CreateAgentType>;
|
|
1540
1578
|
|
|
1579
|
+
/**
|
|
1580
|
+
* 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.
|
|
1581
|
+
*/
|
|
1582
|
+
export const CreateAgentThinkingLevel = {
|
|
1583
|
+
Low: "low",
|
|
1584
|
+
High: "high",
|
|
1585
|
+
} as const;
|
|
1586
|
+
/**
|
|
1587
|
+
* 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.
|
|
1588
|
+
*/
|
|
1589
|
+
export type CreateAgentThinkingLevel = ClosedEnum<
|
|
1590
|
+
typeof CreateAgentThinkingLevel
|
|
1591
|
+
>;
|
|
1592
|
+
|
|
1541
1593
|
export type CreateAgentThinking = {
|
|
1542
1594
|
/**
|
|
1543
1595
|
* Enables or disables the thinking mode capability
|
|
@@ -1547,6 +1599,10 @@ export type CreateAgentThinking = {
|
|
|
1547
1599
|
* 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`.
|
|
1548
1600
|
*/
|
|
1549
1601
|
budgetTokens: number;
|
|
1602
|
+
/**
|
|
1603
|
+
* 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.
|
|
1604
|
+
*/
|
|
1605
|
+
thinkingLevel?: CreateAgentThinkingLevel | undefined;
|
|
1550
1606
|
};
|
|
1551
1607
|
|
|
1552
1608
|
/**
|
|
@@ -1786,7 +1842,7 @@ export type CreateAgentResponseFormatAgentsResponse201ApplicationJSONJSONSchema
|
|
|
1786
1842
|
/**
|
|
1787
1843
|
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
1788
1844
|
*/
|
|
1789
|
-
strict?: boolean | undefined;
|
|
1845
|
+
strict?: boolean | null | undefined;
|
|
1790
1846
|
};
|
|
1791
1847
|
|
|
1792
1848
|
/**
|
|
@@ -1877,6 +1933,20 @@ export type CreateAgentFallbackModelConfigurationType = ClosedEnum<
|
|
|
1877
1933
|
typeof CreateAgentFallbackModelConfigurationType
|
|
1878
1934
|
>;
|
|
1879
1935
|
|
|
1936
|
+
/**
|
|
1937
|
+
* 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.
|
|
1938
|
+
*/
|
|
1939
|
+
export const CreateAgentFallbackModelConfigurationThinkingLevel = {
|
|
1940
|
+
Low: "low",
|
|
1941
|
+
High: "high",
|
|
1942
|
+
} as const;
|
|
1943
|
+
/**
|
|
1944
|
+
* 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.
|
|
1945
|
+
*/
|
|
1946
|
+
export type CreateAgentFallbackModelConfigurationThinkingLevel = ClosedEnum<
|
|
1947
|
+
typeof CreateAgentFallbackModelConfigurationThinkingLevel
|
|
1948
|
+
>;
|
|
1949
|
+
|
|
1880
1950
|
export type CreateAgentFallbackModelConfigurationThinking = {
|
|
1881
1951
|
/**
|
|
1882
1952
|
* Enables or disables the thinking mode capability
|
|
@@ -1886,6 +1956,12 @@ export type CreateAgentFallbackModelConfigurationThinking = {
|
|
|
1886
1956
|
* 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`.
|
|
1887
1957
|
*/
|
|
1888
1958
|
budgetTokens: number;
|
|
1959
|
+
/**
|
|
1960
|
+
* 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.
|
|
1961
|
+
*/
|
|
1962
|
+
thinkingLevel?:
|
|
1963
|
+
| CreateAgentFallbackModelConfigurationThinkingLevel
|
|
1964
|
+
| undefined;
|
|
1889
1965
|
};
|
|
1890
1966
|
|
|
1891
1967
|
/**
|
|
@@ -2065,7 +2141,7 @@ export type CreateAgentFallbackModelConfiguration =
|
|
|
2065
2141
|
| CreateAgentFallbackModelConfiguration2
|
|
2066
2142
|
| string;
|
|
2067
2143
|
|
|
2068
|
-
export type
|
|
2144
|
+
export type Model = {
|
|
2069
2145
|
/**
|
|
2070
2146
|
* The database ID of the primary model
|
|
2071
2147
|
*/
|
|
@@ -2119,6 +2195,7 @@ export type CreateAgentKnowledgeBases = {
|
|
|
2119
2195
|
export type CreateAgentResponseBody = {
|
|
2120
2196
|
id: string;
|
|
2121
2197
|
key: string;
|
|
2198
|
+
displayName: string;
|
|
2122
2199
|
projectId: string;
|
|
2123
2200
|
createdById?: string | null | undefined;
|
|
2124
2201
|
updatedById?: string | null | undefined;
|
|
@@ -2133,7 +2210,7 @@ export type CreateAgentResponseBody = {
|
|
|
2133
2210
|
*/
|
|
2134
2211
|
status: CreateAgentStatus;
|
|
2135
2212
|
settings?: CreateAgentSettings | undefined;
|
|
2136
|
-
model:
|
|
2213
|
+
model: Model;
|
|
2137
2214
|
versionHash?: string | undefined;
|
|
2138
2215
|
/**
|
|
2139
2216
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
@@ -2241,14 +2318,14 @@ export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
2241
2318
|
description: z.string().optional(),
|
|
2242
2319
|
name: z.string(),
|
|
2243
2320
|
schema: z.any().optional(),
|
|
2244
|
-
strict: z.boolean().optional(),
|
|
2321
|
+
strict: z.nullable(z.boolean()).optional(),
|
|
2245
2322
|
});
|
|
2246
2323
|
/** @internal */
|
|
2247
2324
|
export type ResponseFormatJsonSchema$Outbound = {
|
|
2248
2325
|
description?: string | undefined;
|
|
2249
2326
|
name: string;
|
|
2250
2327
|
schema?: any | undefined;
|
|
2251
|
-
strict?: boolean | undefined;
|
|
2328
|
+
strict?: boolean | null | undefined;
|
|
2252
2329
|
};
|
|
2253
2330
|
|
|
2254
2331
|
/** @internal */
|
|
@@ -2260,7 +2337,7 @@ export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
2260
2337
|
description: z.string().optional(),
|
|
2261
2338
|
name: z.string(),
|
|
2262
2339
|
schema: z.any().optional(),
|
|
2263
|
-
strict: z.boolean().optional(),
|
|
2340
|
+
strict: z.nullable(z.boolean()).optional(),
|
|
2264
2341
|
});
|
|
2265
2342
|
|
|
2266
2343
|
export function responseFormatJsonSchemaToJSON(
|
|
@@ -2523,6 +2600,15 @@ export const ModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
|
2523
2600
|
typeof ModelConfigurationType
|
|
2524
2601
|
> = ModelConfigurationType$inboundSchema;
|
|
2525
2602
|
|
|
2603
|
+
/** @internal */
|
|
2604
|
+
export const ThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
2605
|
+
typeof ThinkingLevel
|
|
2606
|
+
> = z.nativeEnum(ThinkingLevel);
|
|
2607
|
+
/** @internal */
|
|
2608
|
+
export const ThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
2609
|
+
typeof ThinkingLevel
|
|
2610
|
+
> = ThinkingLevel$inboundSchema;
|
|
2611
|
+
|
|
2526
2612
|
/** @internal */
|
|
2527
2613
|
export const Thinking$inboundSchema: z.ZodType<
|
|
2528
2614
|
Thinking,
|
|
@@ -2531,15 +2617,18 @@ export const Thinking$inboundSchema: z.ZodType<
|
|
|
2531
2617
|
> = z.object({
|
|
2532
2618
|
type: ModelConfigurationType$inboundSchema,
|
|
2533
2619
|
budget_tokens: z.number(),
|
|
2620
|
+
thinking_level: ThinkingLevel$inboundSchema.optional(),
|
|
2534
2621
|
}).transform((v) => {
|
|
2535
2622
|
return remap$(v, {
|
|
2536
2623
|
"budget_tokens": "budgetTokens",
|
|
2624
|
+
"thinking_level": "thinkingLevel",
|
|
2537
2625
|
});
|
|
2538
2626
|
});
|
|
2539
2627
|
/** @internal */
|
|
2540
2628
|
export type Thinking$Outbound = {
|
|
2541
2629
|
type: string;
|
|
2542
2630
|
budget_tokens: number;
|
|
2631
|
+
thinking_level?: string | undefined;
|
|
2543
2632
|
};
|
|
2544
2633
|
|
|
2545
2634
|
/** @internal */
|
|
@@ -2550,9 +2639,11 @@ export const Thinking$outboundSchema: z.ZodType<
|
|
|
2550
2639
|
> = z.object({
|
|
2551
2640
|
type: ModelConfigurationType$outboundSchema,
|
|
2552
2641
|
budgetTokens: z.number(),
|
|
2642
|
+
thinkingLevel: ThinkingLevel$outboundSchema.optional(),
|
|
2553
2643
|
}).transform((v) => {
|
|
2554
2644
|
return remap$(v, {
|
|
2555
2645
|
budgetTokens: "budget_tokens",
|
|
2646
|
+
thinkingLevel: "thinking_level",
|
|
2556
2647
|
});
|
|
2557
2648
|
});
|
|
2558
2649
|
|
|
@@ -3057,14 +3148,14 @@ export const CreateAgentResponseFormatAgentsJsonSchema$inboundSchema: z.ZodType<
|
|
|
3057
3148
|
description: z.string().optional(),
|
|
3058
3149
|
name: z.string(),
|
|
3059
3150
|
schema: z.any().optional(),
|
|
3060
|
-
strict: z.boolean().optional(),
|
|
3151
|
+
strict: z.nullable(z.boolean()).optional(),
|
|
3061
3152
|
});
|
|
3062
3153
|
/** @internal */
|
|
3063
3154
|
export type CreateAgentResponseFormatAgentsJsonSchema$Outbound = {
|
|
3064
3155
|
description?: string | undefined;
|
|
3065
3156
|
name: string;
|
|
3066
3157
|
schema?: any | undefined;
|
|
3067
|
-
strict?: boolean | undefined;
|
|
3158
|
+
strict?: boolean | null | undefined;
|
|
3068
3159
|
};
|
|
3069
3160
|
|
|
3070
3161
|
/** @internal */
|
|
@@ -3077,7 +3168,7 @@ export const CreateAgentResponseFormatAgentsJsonSchema$outboundSchema:
|
|
|
3077
3168
|
description: z.string().optional(),
|
|
3078
3169
|
name: z.string(),
|
|
3079
3170
|
schema: z.any().optional(),
|
|
3080
|
-
strict: z.boolean().optional(),
|
|
3171
|
+
strict: z.nullable(z.boolean()).optional(),
|
|
3081
3172
|
});
|
|
3082
3173
|
|
|
3083
3174
|
export function createAgentResponseFormatAgentsJsonSchemaToJSON(
|
|
@@ -3416,6 +3507,15 @@ export const FallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<
|
|
|
3416
3507
|
typeof FallbackModelConfigurationType
|
|
3417
3508
|
> = FallbackModelConfigurationType$inboundSchema;
|
|
3418
3509
|
|
|
3510
|
+
/** @internal */
|
|
3511
|
+
export const FallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
3512
|
+
z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel> = z
|
|
3513
|
+
.nativeEnum(FallbackModelConfigurationThinkingLevel);
|
|
3514
|
+
/** @internal */
|
|
3515
|
+
export const FallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
3516
|
+
z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel> =
|
|
3517
|
+
FallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
3518
|
+
|
|
3419
3519
|
/** @internal */
|
|
3420
3520
|
export const FallbackModelConfigurationThinking$inboundSchema: z.ZodType<
|
|
3421
3521
|
FallbackModelConfigurationThinking,
|
|
@@ -3424,15 +3524,19 @@ export const FallbackModelConfigurationThinking$inboundSchema: z.ZodType<
|
|
|
3424
3524
|
> = z.object({
|
|
3425
3525
|
type: FallbackModelConfigurationType$inboundSchema,
|
|
3426
3526
|
budget_tokens: z.number(),
|
|
3527
|
+
thinking_level: FallbackModelConfigurationThinkingLevel$inboundSchema
|
|
3528
|
+
.optional(),
|
|
3427
3529
|
}).transform((v) => {
|
|
3428
3530
|
return remap$(v, {
|
|
3429
3531
|
"budget_tokens": "budgetTokens",
|
|
3532
|
+
"thinking_level": "thinkingLevel",
|
|
3430
3533
|
});
|
|
3431
3534
|
});
|
|
3432
3535
|
/** @internal */
|
|
3433
3536
|
export type FallbackModelConfigurationThinking$Outbound = {
|
|
3434
3537
|
type: string;
|
|
3435
3538
|
budget_tokens: number;
|
|
3539
|
+
thinking_level?: string | undefined;
|
|
3436
3540
|
};
|
|
3437
3541
|
|
|
3438
3542
|
/** @internal */
|
|
@@ -3443,9 +3547,12 @@ export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
|
|
|
3443
3547
|
> = z.object({
|
|
3444
3548
|
type: FallbackModelConfigurationType$outboundSchema,
|
|
3445
3549
|
budgetTokens: z.number(),
|
|
3550
|
+
thinkingLevel: FallbackModelConfigurationThinkingLevel$outboundSchema
|
|
3551
|
+
.optional(),
|
|
3446
3552
|
}).transform((v) => {
|
|
3447
3553
|
return remap$(v, {
|
|
3448
3554
|
budgetTokens: "budget_tokens",
|
|
3555
|
+
thinkingLevel: "thinking_level",
|
|
3449
3556
|
});
|
|
3450
3557
|
});
|
|
3451
3558
|
|
|
@@ -5253,6 +5360,7 @@ export const CreateAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
5253
5360
|
unknown
|
|
5254
5361
|
> = z.object({
|
|
5255
5362
|
key: z.string(),
|
|
5363
|
+
display_name: z.string(),
|
|
5256
5364
|
role: z.string(),
|
|
5257
5365
|
description: z.string(),
|
|
5258
5366
|
instructions: z.string(),
|
|
@@ -5273,6 +5381,7 @@ export const CreateAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
5273
5381
|
variables: z.record(z.any()).optional(),
|
|
5274
5382
|
}).transform((v) => {
|
|
5275
5383
|
return remap$(v, {
|
|
5384
|
+
"display_name": "displayName",
|
|
5276
5385
|
"system_prompt": "systemPrompt",
|
|
5277
5386
|
"fallback_models": "fallbackModels",
|
|
5278
5387
|
"memory_stores": "memoryStores",
|
|
@@ -5283,6 +5392,7 @@ export const CreateAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
5283
5392
|
/** @internal */
|
|
5284
5393
|
export type CreateAgentRequestBody$Outbound = {
|
|
5285
5394
|
key: string;
|
|
5395
|
+
display_name: string;
|
|
5286
5396
|
role: string;
|
|
5287
5397
|
description: string;
|
|
5288
5398
|
instructions: string;
|
|
@@ -5306,6 +5416,7 @@ export const CreateAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
5306
5416
|
CreateAgentRequestBody
|
|
5307
5417
|
> = z.object({
|
|
5308
5418
|
key: z.string(),
|
|
5419
|
+
displayName: z.string(),
|
|
5309
5420
|
role: z.string(),
|
|
5310
5421
|
description: z.string(),
|
|
5311
5422
|
instructions: z.string(),
|
|
@@ -5329,6 +5440,7 @@ export const CreateAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
5329
5440
|
variables: z.record(z.any()).optional(),
|
|
5330
5441
|
}).transform((v) => {
|
|
5331
5442
|
return remap$(v, {
|
|
5443
|
+
displayName: "display_name",
|
|
5332
5444
|
systemPrompt: "system_prompt",
|
|
5333
5445
|
fallbackModels: "fallback_models",
|
|
5334
5446
|
memoryStores: "memory_stores",
|
|
@@ -5423,9 +5535,9 @@ export const CreateAgentTools$inboundSchema: z.ZodType<
|
|
|
5423
5535
|
key: z.string().optional(),
|
|
5424
5536
|
action_type: z.string(),
|
|
5425
5537
|
display_name: z.string().optional(),
|
|
5538
|
+
description: z.string().optional(),
|
|
5426
5539
|
requires_approval: z.boolean().default(false),
|
|
5427
5540
|
conditions: z.array(z.lazy(() => Conditions$inboundSchema)).optional(),
|
|
5428
|
-
mcpServer: z.string().optional(),
|
|
5429
5541
|
timeout: z.number().default(120),
|
|
5430
5542
|
}).transform((v) => {
|
|
5431
5543
|
return remap$(v, {
|
|
@@ -5440,9 +5552,9 @@ export type CreateAgentTools$Outbound = {
|
|
|
5440
5552
|
key?: string | undefined;
|
|
5441
5553
|
action_type: string;
|
|
5442
5554
|
display_name?: string | undefined;
|
|
5555
|
+
description?: string | undefined;
|
|
5443
5556
|
requires_approval: boolean;
|
|
5444
5557
|
conditions?: Array<Conditions$Outbound> | undefined;
|
|
5445
|
-
mcpServer?: string | undefined;
|
|
5446
5558
|
timeout: number;
|
|
5447
5559
|
};
|
|
5448
5560
|
|
|
@@ -5456,9 +5568,9 @@ export const CreateAgentTools$outboundSchema: z.ZodType<
|
|
|
5456
5568
|
key: z.string().optional(),
|
|
5457
5569
|
actionType: z.string(),
|
|
5458
5570
|
displayName: z.string().optional(),
|
|
5571
|
+
description: z.string().optional(),
|
|
5459
5572
|
requiresApproval: z.boolean().default(false),
|
|
5460
5573
|
conditions: z.array(z.lazy(() => Conditions$outboundSchema)).optional(),
|
|
5461
|
-
mcpServer: z.string().optional(),
|
|
5462
5574
|
timeout: z.number().default(120),
|
|
5463
5575
|
}).transform((v) => {
|
|
5464
5576
|
return remap$(v, {
|
|
@@ -5771,14 +5883,14 @@ export const CreateAgentResponseFormatAgentsResponseJsonSchema$inboundSchema:
|
|
|
5771
5883
|
description: z.string().optional(),
|
|
5772
5884
|
name: z.string(),
|
|
5773
5885
|
schema: z.any().optional(),
|
|
5774
|
-
strict: z.boolean().optional(),
|
|
5886
|
+
strict: z.nullable(z.boolean()).optional(),
|
|
5775
5887
|
});
|
|
5776
5888
|
/** @internal */
|
|
5777
5889
|
export type CreateAgentResponseFormatAgentsResponseJsonSchema$Outbound = {
|
|
5778
5890
|
description?: string | undefined;
|
|
5779
5891
|
name: string;
|
|
5780
5892
|
schema?: any | undefined;
|
|
5781
|
-
strict?: boolean | undefined;
|
|
5893
|
+
strict?: boolean | null | undefined;
|
|
5782
5894
|
};
|
|
5783
5895
|
|
|
5784
5896
|
/** @internal */
|
|
@@ -5791,7 +5903,7 @@ export const CreateAgentResponseFormatAgentsResponseJsonSchema$outboundSchema:
|
|
|
5791
5903
|
description: z.string().optional(),
|
|
5792
5904
|
name: z.string(),
|
|
5793
5905
|
schema: z.any().optional(),
|
|
5794
|
-
strict: z.boolean().optional(),
|
|
5906
|
+
strict: z.nullable(z.boolean()).optional(),
|
|
5795
5907
|
});
|
|
5796
5908
|
|
|
5797
5909
|
export function createAgentResponseFormatAgentsResponseJsonSchemaToJSON(
|
|
@@ -6123,6 +6235,15 @@ export const CreateAgentType$outboundSchema: z.ZodNativeEnum<
|
|
|
6123
6235
|
typeof CreateAgentType
|
|
6124
6236
|
> = CreateAgentType$inboundSchema;
|
|
6125
6237
|
|
|
6238
|
+
/** @internal */
|
|
6239
|
+
export const CreateAgentThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
6240
|
+
typeof CreateAgentThinkingLevel
|
|
6241
|
+
> = z.nativeEnum(CreateAgentThinkingLevel);
|
|
6242
|
+
/** @internal */
|
|
6243
|
+
export const CreateAgentThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
6244
|
+
typeof CreateAgentThinkingLevel
|
|
6245
|
+
> = CreateAgentThinkingLevel$inboundSchema;
|
|
6246
|
+
|
|
6126
6247
|
/** @internal */
|
|
6127
6248
|
export const CreateAgentThinking$inboundSchema: z.ZodType<
|
|
6128
6249
|
CreateAgentThinking,
|
|
@@ -6131,15 +6252,18 @@ export const CreateAgentThinking$inboundSchema: z.ZodType<
|
|
|
6131
6252
|
> = z.object({
|
|
6132
6253
|
type: CreateAgentType$inboundSchema,
|
|
6133
6254
|
budget_tokens: z.number(),
|
|
6255
|
+
thinking_level: CreateAgentThinkingLevel$inboundSchema.optional(),
|
|
6134
6256
|
}).transform((v) => {
|
|
6135
6257
|
return remap$(v, {
|
|
6136
6258
|
"budget_tokens": "budgetTokens",
|
|
6259
|
+
"thinking_level": "thinkingLevel",
|
|
6137
6260
|
});
|
|
6138
6261
|
});
|
|
6139
6262
|
/** @internal */
|
|
6140
6263
|
export type CreateAgentThinking$Outbound = {
|
|
6141
6264
|
type: string;
|
|
6142
6265
|
budget_tokens: number;
|
|
6266
|
+
thinking_level?: string | undefined;
|
|
6143
6267
|
};
|
|
6144
6268
|
|
|
6145
6269
|
/** @internal */
|
|
@@ -6150,9 +6274,11 @@ export const CreateAgentThinking$outboundSchema: z.ZodType<
|
|
|
6150
6274
|
> = z.object({
|
|
6151
6275
|
type: CreateAgentType$outboundSchema,
|
|
6152
6276
|
budgetTokens: z.number(),
|
|
6277
|
+
thinkingLevel: CreateAgentThinkingLevel$outboundSchema.optional(),
|
|
6153
6278
|
}).transform((v) => {
|
|
6154
6279
|
return remap$(v, {
|
|
6155
6280
|
budgetTokens: "budget_tokens",
|
|
6281
|
+
thinkingLevel: "thinking_level",
|
|
6156
6282
|
});
|
|
6157
6283
|
});
|
|
6158
6284
|
|
|
@@ -6626,7 +6752,7 @@ export const CreateAgentResponseFormatAgentsResponse201ApplicationJSONJSONSchema
|
|
|
6626
6752
|
description: z.string().optional(),
|
|
6627
6753
|
name: z.string(),
|
|
6628
6754
|
schema: z.any().optional(),
|
|
6629
|
-
strict: z.boolean().optional(),
|
|
6755
|
+
strict: z.nullable(z.boolean()).optional(),
|
|
6630
6756
|
});
|
|
6631
6757
|
/** @internal */
|
|
6632
6758
|
export type CreateAgentResponseFormatAgentsResponse201ApplicationJSONJSONSchema$Outbound =
|
|
@@ -6634,7 +6760,7 @@ export type CreateAgentResponseFormatAgentsResponse201ApplicationJSONJSONSchema$
|
|
|
6634
6760
|
description?: string | undefined;
|
|
6635
6761
|
name: string;
|
|
6636
6762
|
schema?: any | undefined;
|
|
6637
|
-
strict?: boolean | undefined;
|
|
6763
|
+
strict?: boolean | null | undefined;
|
|
6638
6764
|
};
|
|
6639
6765
|
|
|
6640
6766
|
/** @internal */
|
|
@@ -6647,7 +6773,7 @@ export const CreateAgentResponseFormatAgentsResponse201ApplicationJSONJSONSchema
|
|
|
6647
6773
|
description: z.string().optional(),
|
|
6648
6774
|
name: z.string(),
|
|
6649
6775
|
schema: z.any().optional(),
|
|
6650
|
-
strict: z.boolean().optional(),
|
|
6776
|
+
strict: z.nullable(z.boolean()).optional(),
|
|
6651
6777
|
});
|
|
6652
6778
|
|
|
6653
6779
|
export function createAgentResponseFormatAgentsResponse201ApplicationJSONJSONSchemaToJSON(
|
|
@@ -7039,6 +7165,15 @@ export const CreateAgentFallbackModelConfigurationType$outboundSchema:
|
|
|
7039
7165
|
z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationType> =
|
|
7040
7166
|
CreateAgentFallbackModelConfigurationType$inboundSchema;
|
|
7041
7167
|
|
|
7168
|
+
/** @internal */
|
|
7169
|
+
export const CreateAgentFallbackModelConfigurationThinkingLevel$inboundSchema:
|
|
7170
|
+
z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationThinkingLevel> = z
|
|
7171
|
+
.nativeEnum(CreateAgentFallbackModelConfigurationThinkingLevel);
|
|
7172
|
+
/** @internal */
|
|
7173
|
+
export const CreateAgentFallbackModelConfigurationThinkingLevel$outboundSchema:
|
|
7174
|
+
z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationThinkingLevel> =
|
|
7175
|
+
CreateAgentFallbackModelConfigurationThinkingLevel$inboundSchema;
|
|
7176
|
+
|
|
7042
7177
|
/** @internal */
|
|
7043
7178
|
export const CreateAgentFallbackModelConfigurationThinking$inboundSchema:
|
|
7044
7179
|
z.ZodType<
|
|
@@ -7048,15 +7183,20 @@ export const CreateAgentFallbackModelConfigurationThinking$inboundSchema:
|
|
|
7048
7183
|
> = z.object({
|
|
7049
7184
|
type: CreateAgentFallbackModelConfigurationType$inboundSchema,
|
|
7050
7185
|
budget_tokens: z.number(),
|
|
7186
|
+
thinking_level:
|
|
7187
|
+
CreateAgentFallbackModelConfigurationThinkingLevel$inboundSchema
|
|
7188
|
+
.optional(),
|
|
7051
7189
|
}).transform((v) => {
|
|
7052
7190
|
return remap$(v, {
|
|
7053
7191
|
"budget_tokens": "budgetTokens",
|
|
7192
|
+
"thinking_level": "thinkingLevel",
|
|
7054
7193
|
});
|
|
7055
7194
|
});
|
|
7056
7195
|
/** @internal */
|
|
7057
7196
|
export type CreateAgentFallbackModelConfigurationThinking$Outbound = {
|
|
7058
7197
|
type: string;
|
|
7059
7198
|
budget_tokens: number;
|
|
7199
|
+
thinking_level?: string | undefined;
|
|
7060
7200
|
};
|
|
7061
7201
|
|
|
7062
7202
|
/** @internal */
|
|
@@ -7068,9 +7208,13 @@ export const CreateAgentFallbackModelConfigurationThinking$outboundSchema:
|
|
|
7068
7208
|
> = z.object({
|
|
7069
7209
|
type: CreateAgentFallbackModelConfigurationType$outboundSchema,
|
|
7070
7210
|
budgetTokens: z.number(),
|
|
7211
|
+
thinkingLevel:
|
|
7212
|
+
CreateAgentFallbackModelConfigurationThinkingLevel$outboundSchema
|
|
7213
|
+
.optional(),
|
|
7071
7214
|
}).transform((v) => {
|
|
7072
7215
|
return remap$(v, {
|
|
7073
7216
|
budgetTokens: "budget_tokens",
|
|
7217
|
+
thinkingLevel: "thinking_level",
|
|
7074
7218
|
});
|
|
7075
7219
|
});
|
|
7076
7220
|
|
|
@@ -7567,29 +7711,26 @@ export function createAgentFallbackModelConfigurationFromJSON(
|
|
|
7567
7711
|
}
|
|
7568
7712
|
|
|
7569
7713
|
/** @internal */
|
|
7570
|
-
export const
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
"integration_id": "integrationId",
|
|
7588
|
-
"fallback_models": "fallbackModels",
|
|
7714
|
+
export const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown> = z
|
|
7715
|
+
.object({
|
|
7716
|
+
id: z.string(),
|
|
7717
|
+
integration_id: z.nullable(z.string()).optional(),
|
|
7718
|
+
parameters: z.lazy(() => CreateAgentParameters$inboundSchema).optional(),
|
|
7719
|
+
retry: z.lazy(() => CreateAgentRetry$inboundSchema).optional(),
|
|
7720
|
+
fallback_models: z.nullable(
|
|
7721
|
+
z.array(z.union([
|
|
7722
|
+
z.lazy(() => CreateAgentFallbackModelConfiguration2$inboundSchema),
|
|
7723
|
+
z.string(),
|
|
7724
|
+
])),
|
|
7725
|
+
).optional(),
|
|
7726
|
+
}).transform((v) => {
|
|
7727
|
+
return remap$(v, {
|
|
7728
|
+
"integration_id": "integrationId",
|
|
7729
|
+
"fallback_models": "fallbackModels",
|
|
7730
|
+
});
|
|
7589
7731
|
});
|
|
7590
|
-
});
|
|
7591
7732
|
/** @internal */
|
|
7592
|
-
export type
|
|
7733
|
+
export type Model$Outbound = {
|
|
7593
7734
|
id: string;
|
|
7594
7735
|
integration_id?: string | null | undefined;
|
|
7595
7736
|
parameters?: CreateAgentParameters$Outbound | undefined;
|
|
@@ -7601,10 +7742,10 @@ export type CreateAgentModel$Outbound = {
|
|
|
7601
7742
|
};
|
|
7602
7743
|
|
|
7603
7744
|
/** @internal */
|
|
7604
|
-
export const
|
|
7605
|
-
|
|
7745
|
+
export const Model$outboundSchema: z.ZodType<
|
|
7746
|
+
Model$Outbound,
|
|
7606
7747
|
z.ZodTypeDef,
|
|
7607
|
-
|
|
7748
|
+
Model
|
|
7608
7749
|
> = z.object({
|
|
7609
7750
|
id: z.string(),
|
|
7610
7751
|
integrationId: z.nullable(z.string()).optional(),
|
|
@@ -7623,20 +7764,16 @@ export const CreateAgentModel$outboundSchema: z.ZodType<
|
|
|
7623
7764
|
});
|
|
7624
7765
|
});
|
|
7625
7766
|
|
|
7626
|
-
export function
|
|
7627
|
-
|
|
7628
|
-
): string {
|
|
7629
|
-
return JSON.stringify(
|
|
7630
|
-
CreateAgentModel$outboundSchema.parse(createAgentModel),
|
|
7631
|
-
);
|
|
7767
|
+
export function modelToJSON(model: Model): string {
|
|
7768
|
+
return JSON.stringify(Model$outboundSchema.parse(model));
|
|
7632
7769
|
}
|
|
7633
|
-
export function
|
|
7770
|
+
export function modelFromJSON(
|
|
7634
7771
|
jsonString: string,
|
|
7635
|
-
): SafeParseResult<
|
|
7772
|
+
): SafeParseResult<Model, SDKValidationError> {
|
|
7636
7773
|
return safeParse(
|
|
7637
7774
|
jsonString,
|
|
7638
|
-
(x) =>
|
|
7639
|
-
`Failed to parse '
|
|
7775
|
+
(x) => Model$inboundSchema.parse(JSON.parse(x)),
|
|
7776
|
+
`Failed to parse 'Model' from JSON`,
|
|
7640
7777
|
);
|
|
7641
7778
|
}
|
|
7642
7779
|
|
|
@@ -7777,6 +7914,7 @@ export const CreateAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
7777
7914
|
> = z.object({
|
|
7778
7915
|
_id: z.string(),
|
|
7779
7916
|
key: z.string(),
|
|
7917
|
+
display_name: z.string(),
|
|
7780
7918
|
project_id: z.string(),
|
|
7781
7919
|
created_by_id: z.nullable(z.string()).optional(),
|
|
7782
7920
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
@@ -7788,7 +7926,7 @@ export const CreateAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
7788
7926
|
instructions: z.string(),
|
|
7789
7927
|
status: CreateAgentStatus$inboundSchema,
|
|
7790
7928
|
settings: z.lazy(() => CreateAgentSettings$inboundSchema).optional(),
|
|
7791
|
-
model: z.lazy(() =>
|
|
7929
|
+
model: z.lazy(() => Model$inboundSchema),
|
|
7792
7930
|
version_hash: z.string().optional(),
|
|
7793
7931
|
path: z.string(),
|
|
7794
7932
|
memory_stores: z.array(z.string()),
|
|
@@ -7801,6 +7939,7 @@ export const CreateAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
7801
7939
|
}).transform((v) => {
|
|
7802
7940
|
return remap$(v, {
|
|
7803
7941
|
"_id": "id",
|
|
7942
|
+
"display_name": "displayName",
|
|
7804
7943
|
"project_id": "projectId",
|
|
7805
7944
|
"created_by_id": "createdById",
|
|
7806
7945
|
"updated_by_id": "updatedById",
|
|
@@ -7815,6 +7954,7 @@ export const CreateAgentResponseBody$inboundSchema: z.ZodType<
|
|
|
7815
7954
|
export type CreateAgentResponseBody$Outbound = {
|
|
7816
7955
|
_id: string;
|
|
7817
7956
|
key: string;
|
|
7957
|
+
display_name: string;
|
|
7818
7958
|
project_id: string;
|
|
7819
7959
|
created_by_id?: string | null | undefined;
|
|
7820
7960
|
updated_by_id?: string | null | undefined;
|
|
@@ -7826,7 +7966,7 @@ export type CreateAgentResponseBody$Outbound = {
|
|
|
7826
7966
|
instructions: string;
|
|
7827
7967
|
status: string;
|
|
7828
7968
|
settings?: CreateAgentSettings$Outbound | undefined;
|
|
7829
|
-
model:
|
|
7969
|
+
model: Model$Outbound;
|
|
7830
7970
|
version_hash?: string | undefined;
|
|
7831
7971
|
path: string;
|
|
7832
7972
|
memory_stores: Array<string>;
|
|
@@ -7844,6 +7984,7 @@ export const CreateAgentResponseBody$outboundSchema: z.ZodType<
|
|
|
7844
7984
|
> = z.object({
|
|
7845
7985
|
id: z.string(),
|
|
7846
7986
|
key: z.string(),
|
|
7987
|
+
displayName: z.string(),
|
|
7847
7988
|
projectId: z.string(),
|
|
7848
7989
|
createdById: z.nullable(z.string()).optional(),
|
|
7849
7990
|
updatedById: z.nullable(z.string()).optional(),
|
|
@@ -7855,7 +7996,7 @@ export const CreateAgentResponseBody$outboundSchema: z.ZodType<
|
|
|
7855
7996
|
instructions: z.string(),
|
|
7856
7997
|
status: CreateAgentStatus$outboundSchema,
|
|
7857
7998
|
settings: z.lazy(() => CreateAgentSettings$outboundSchema).optional(),
|
|
7858
|
-
model: z.lazy(() =>
|
|
7999
|
+
model: z.lazy(() => Model$outboundSchema),
|
|
7859
8000
|
versionHash: z.string().optional(),
|
|
7860
8001
|
path: z.string(),
|
|
7861
8002
|
memoryStores: z.array(z.string()),
|
|
@@ -7868,6 +8009,7 @@ export const CreateAgentResponseBody$outboundSchema: z.ZodType<
|
|
|
7868
8009
|
}).transform((v) => {
|
|
7869
8010
|
return remap$(v, {
|
|
7870
8011
|
id: "_id",
|
|
8012
|
+
displayName: "display_name",
|
|
7871
8013
|
projectId: "project_id",
|
|
7872
8014
|
createdById: "created_by_id",
|
|
7873
8015
|
updatedById: "updated_by_id",
|