@orq-ai/node 4.0.0-rc.45 → 4.0.0-rc.48

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.
Files changed (188) hide show
  1. package/bin/mcp-server.js +764 -1540
  2. package/bin/mcp-server.js.map +58 -58
  3. package/docs/sdks/agents/README.md +4 -6
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/agentsDuplicate.d.ts +1 -1
  6. package/funcs/agentsDuplicate.js +5 -4
  7. package/funcs/agentsDuplicate.js.map +1 -1
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +2 -2
  10. package/lib/config.js +2 -2
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/server.js +1 -1
  13. package/mcp-server/tools/agentsDuplicate.js +1 -1
  14. package/mcp-server/tools/agentsDuplicate.js.map +1 -1
  15. package/models/operations/createagent.d.ts +90 -10
  16. package/models/operations/createagent.d.ts.map +1 -1
  17. package/models/operations/createagent.js +87 -20
  18. package/models/operations/createagent.js.map +1 -1
  19. package/models/operations/createbudget.js +2 -2
  20. package/models/operations/createcontact.js +2 -2
  21. package/models/operations/createdataset.js +2 -2
  22. package/models/operations/createdatasetitem.js +8 -8
  23. package/models/operations/createdatasource.js +2 -2
  24. package/models/operations/createeval.d.ts +106 -106
  25. package/models/operations/createeval.d.ts.map +1 -1
  26. package/models/operations/createeval.js +242 -234
  27. package/models/operations/createeval.js.map +1 -1
  28. package/models/operations/creatememorystore.d.ts +10 -391
  29. package/models/operations/creatememorystore.d.ts.map +1 -1
  30. package/models/operations/creatememorystore.js +5 -565
  31. package/models/operations/creatememorystore.js.map +1 -1
  32. package/models/operations/createprompt.d.ts +40 -0
  33. package/models/operations/createprompt.d.ts.map +1 -1
  34. package/models/operations/createprompt.js +33 -7
  35. package/models/operations/createprompt.js.map +1 -1
  36. package/models/operations/createtool.js +12 -12
  37. package/models/operations/deploymentgetconfig.d.ts +20 -0
  38. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  39. package/models/operations/deploymentgetconfig.js +22 -8
  40. package/models/operations/deploymentgetconfig.js.map +1 -1
  41. package/models/operations/deployments.d.ts +20 -0
  42. package/models/operations/deployments.d.ts.map +1 -1
  43. package/models/operations/deployments.js +16 -3
  44. package/models/operations/deployments.js.map +1 -1
  45. package/models/operations/duplicateagent.d.ts +66 -3
  46. package/models/operations/duplicateagent.d.ts.map +1 -1
  47. package/models/operations/duplicateagent.js +77 -5
  48. package/models/operations/duplicateagent.js.map +1 -1
  49. package/models/operations/duplicatetool.js +12 -12
  50. package/models/operations/fileget.js +2 -2
  51. package/models/operations/filelist.js +2 -2
  52. package/models/operations/fileupload.js +2 -2
  53. package/models/operations/getagent.d.ts +40 -0
  54. package/models/operations/getagent.d.ts.map +1 -1
  55. package/models/operations/getagent.js +36 -3
  56. package/models/operations/getagent.js.map +1 -1
  57. package/models/operations/getallmemorystores.d.ts +5 -195
  58. package/models/operations/getallmemorystores.d.ts.map +1 -1
  59. package/models/operations/getallmemorystores.js +3 -273
  60. package/models/operations/getallmemorystores.js.map +1 -1
  61. package/models/operations/getallprompts.d.ts +20 -0
  62. package/models/operations/getallprompts.d.ts.map +1 -1
  63. package/models/operations/getallprompts.js +16 -3
  64. package/models/operations/getallprompts.js.map +1 -1
  65. package/models/operations/getalltools.js +12 -12
  66. package/models/operations/getbudget.js +2 -2
  67. package/models/operations/getevals.js +28 -28
  68. package/models/operations/getoneprompt.d.ts +20 -0
  69. package/models/operations/getoneprompt.d.ts.map +1 -1
  70. package/models/operations/getoneprompt.js +16 -3
  71. package/models/operations/getoneprompt.js.map +1 -1
  72. package/models/operations/getpromptversion.d.ts +20 -0
  73. package/models/operations/getpromptversion.d.ts.map +1 -1
  74. package/models/operations/getpromptversion.js +16 -2
  75. package/models/operations/getpromptversion.js.map +1 -1
  76. package/models/operations/listagents.d.ts +40 -0
  77. package/models/operations/listagents.d.ts.map +1 -1
  78. package/models/operations/listagents.js +37 -4
  79. package/models/operations/listagents.js.map +1 -1
  80. package/models/operations/listbudgets.js +2 -2
  81. package/models/operations/listcontacts.js +2 -2
  82. package/models/operations/listdatasetdatapoints.js +8 -8
  83. package/models/operations/listdatasets.js +2 -2
  84. package/models/operations/listdatasources.d.ts +5 -5
  85. package/models/operations/listdatasources.d.ts.map +1 -1
  86. package/models/operations/listdatasources.js +4 -4
  87. package/models/operations/listdatasources.js.map +1 -1
  88. package/models/operations/listpromptversions.d.ts +20 -0
  89. package/models/operations/listpromptversions.d.ts.map +1 -1
  90. package/models/operations/listpromptversions.js +16 -3
  91. package/models/operations/listpromptversions.js.map +1 -1
  92. package/models/operations/retrievecontact.js +2 -2
  93. package/models/operations/retrievedatapoint.js +8 -8
  94. package/models/operations/retrievedataset.js +2 -2
  95. package/models/operations/retrievedatasource.js +2 -2
  96. package/models/operations/retrievememorystore.d.ts +5 -196
  97. package/models/operations/retrievememorystore.d.ts.map +1 -1
  98. package/models/operations/retrievememorystore.js +3 -273
  99. package/models/operations/retrievememorystore.js.map +1 -1
  100. package/models/operations/retrievetool.js +12 -12
  101. package/models/operations/runagent.d.ts +40 -0
  102. package/models/operations/runagent.d.ts.map +1 -1
  103. package/models/operations/runagent.js +45 -10
  104. package/models/operations/runagent.js.map +1 -1
  105. package/models/operations/streamrunagent.d.ts +40 -0
  106. package/models/operations/streamrunagent.d.ts.map +1 -1
  107. package/models/operations/streamrunagent.js +44 -9
  108. package/models/operations/streamrunagent.js.map +1 -1
  109. package/models/operations/syncmcptool.js +12 -12
  110. package/models/operations/updateagent.d.ts +80 -0
  111. package/models/operations/updateagent.d.ts.map +1 -1
  112. package/models/operations/updateagent.js +73 -8
  113. package/models/operations/updateagent.js.map +1 -1
  114. package/models/operations/updatebudget.js +2 -2
  115. package/models/operations/updatecontact.js +2 -2
  116. package/models/operations/updatedatapoint.js +8 -8
  117. package/models/operations/updatedataset.js +2 -2
  118. package/models/operations/updatedatasource.js +2 -2
  119. package/models/operations/updateeval.js +28 -28
  120. package/models/operations/updatememorystore.d.ts +5 -195
  121. package/models/operations/updatememorystore.d.ts.map +1 -1
  122. package/models/operations/updatememorystore.js +3 -290
  123. package/models/operations/updatememorystore.js.map +1 -1
  124. package/models/operations/updateprompt.d.ts +40 -0
  125. package/models/operations/updateprompt.d.ts.map +1 -1
  126. package/models/operations/updateprompt.js +33 -7
  127. package/models/operations/updateprompt.js.map +1 -1
  128. package/models/operations/updatetool.js +14 -14
  129. package/package.json +1 -1
  130. package/sdk/agents.d.ts +1 -1
  131. package/sdk/agents.js +1 -1
  132. package/src/funcs/agentsDuplicate.ts +6 -5
  133. package/src/lib/config.ts +2 -2
  134. package/src/mcp-server/mcp-server.ts +1 -1
  135. package/src/mcp-server/server.ts +1 -1
  136. package/src/mcp-server/tools/agentsDuplicate.ts +1 -1
  137. package/src/models/operations/createagent.ts +170 -43
  138. package/src/models/operations/createbudget.ts +2 -2
  139. package/src/models/operations/createcontact.ts +2 -2
  140. package/src/models/operations/createdataset.ts +2 -2
  141. package/src/models/operations/createdatasetitem.ts +8 -8
  142. package/src/models/operations/createdatasource.ts +2 -2
  143. package/src/models/operations/createeval.ts +423 -524
  144. package/src/models/operations/creatememorystore.ts +14 -1094
  145. package/src/models/operations/createprompt.ts +60 -0
  146. package/src/models/operations/createtool.ts +12 -12
  147. package/src/models/operations/deploymentgetconfig.ts +30 -0
  148. package/src/models/operations/deployments.ts +30 -0
  149. package/src/models/operations/duplicateagent.ts +153 -5
  150. package/src/models/operations/duplicatetool.ts +12 -12
  151. package/src/models/operations/fileget.ts +2 -2
  152. package/src/models/operations/filelist.ts +2 -2
  153. package/src/models/operations/fileupload.ts +2 -2
  154. package/src/models/operations/getagent.ts +65 -0
  155. package/src/models/operations/getallmemorystores.ts +7 -595
  156. package/src/models/operations/getallprompts.ts +30 -0
  157. package/src/models/operations/getalltools.ts +12 -12
  158. package/src/models/operations/getbudget.ts +2 -2
  159. package/src/models/operations/getevals.ts +28 -28
  160. package/src/models/operations/getoneprompt.ts +30 -0
  161. package/src/models/operations/getpromptversion.ts +30 -0
  162. package/src/models/operations/listagents.ts +68 -0
  163. package/src/models/operations/listbudgets.ts +2 -2
  164. package/src/models/operations/listcontacts.ts +2 -2
  165. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  166. package/src/models/operations/listdatasets.ts +2 -2
  167. package/src/models/operations/listdatasources.ts +9 -9
  168. package/src/models/operations/listpromptversions.ts +30 -0
  169. package/src/models/operations/retrievecontact.ts +2 -2
  170. package/src/models/operations/retrievedatapoint.ts +8 -8
  171. package/src/models/operations/retrievedataset.ts +2 -2
  172. package/src/models/operations/retrievedatasource.ts +2 -2
  173. package/src/models/operations/retrievememorystore.ts +7 -596
  174. package/src/models/operations/retrievetool.ts +12 -12
  175. package/src/models/operations/runagent.ts +71 -2
  176. package/src/models/operations/streamrunagent.ts +76 -2
  177. package/src/models/operations/syncmcptool.ts +12 -12
  178. package/src/models/operations/updateagent.ts +141 -0
  179. package/src/models/operations/updatebudget.ts +2 -2
  180. package/src/models/operations/updatecontact.ts +2 -2
  181. package/src/models/operations/updatedatapoint.ts +8 -8
  182. package/src/models/operations/updatedataset.ts +2 -2
  183. package/src/models/operations/updatedatasource.ts +2 -2
  184. package/src/models/operations/updateeval.ts +28 -28
  185. package/src/models/operations/updatememorystore.ts +7 -527
  186. package/src/models/operations/updateprompt.ts +60 -0
  187. package/src/models/operations/updatetool.ts +14 -14
  188. package/src/sdk/agents.ts +1 -1
@@ -113,7 +113,6 @@ const orq = new Orq({
113
113
  async function run() {
114
114
  const result = await orq.agents.create({
115
115
  key: "<key>",
116
- displayName: "Orion98",
117
116
  role: "<value>",
118
117
  description: "neatly unless refine aside platter alarmed shampoo shakily yippee",
119
118
  instructions: "<value>",
@@ -150,7 +149,6 @@ const orq = new OrqCore({
150
149
  async function run() {
151
150
  const res = await agentsCreate(orq, {
152
151
  key: "<key>",
153
- displayName: "Orion98",
154
152
  role: "<value>",
155
153
  description: "neatly unless refine aside platter alarmed shampoo shakily yippee",
156
154
  instructions: "<value>",
@@ -509,11 +507,11 @@ run();
509
507
 
510
508
  ## duplicate
511
509
 
512
- Creates a copy of an existing agent with a new unique key. The duplicated agent will have all the same configuration as the original, including model settings, instructions, tools, and knowledge bases.
510
+ Creates a copy of an existing agent with a new unique key and display name. The duplicated agent will have all the same configuration as the original, including model settings, instructions, tools, and knowledge bases.
513
511
 
514
512
  ### Example Usage
515
513
 
516
- <!-- UsageSnippet language="typescript" operationID="DuplicateAgent" method="post" path="/v2/agents/{id}/duplicate" -->
514
+ <!-- UsageSnippet language="typescript" operationID="DuplicateAgent" method="post" path="/v2/agents/{agent_key}/duplicate" -->
517
515
  ```typescript
518
516
  import { Orq } from "@orq-ai/node";
519
517
 
@@ -523,7 +521,7 @@ const orq = new Orq({
523
521
 
524
522
  async function run() {
525
523
  const result = await orq.agents.duplicate({
526
- id: "<id>",
524
+ agentKey: "<value>",
527
525
  });
528
526
 
529
527
  console.log(result);
@@ -548,7 +546,7 @@ const orq = new OrqCore({
548
546
 
549
547
  async function run() {
550
548
  const res = await agentsDuplicate(orq, {
551
- id: "<id>",
549
+ agentKey: "<value>",
552
550
  });
553
551
  if (res.ok) {
554
552
  const { value: result } = res;
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "@orq-ai/node",
21
- "version": "4.0.0-rc.45",
21
+ "version": "4.0.0-rc.48",
22
22
  "dependencies": {
23
23
  "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
24
24
  "zod": "^3.25.0 || ^4.0.0"
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Duplicate an existing agent
13
13
  *
14
14
  * @remarks
15
- * Creates a copy of an existing agent with a new unique key. The duplicated agent will have all the same configuration as the original, including model settings, instructions, tools, and knowledge bases.
15
+ * Creates a copy of an existing agent with a new unique key and display name. The duplicated agent will have all the same configuration as the original, including model settings, instructions, tools, and knowledge bases.
16
16
  */
17
17
  export declare function agentsDuplicate(client: OrqCore, request: operations.DuplicateAgentRequest, options?: RequestOptions): APIPromise<Result<operations.DuplicateAgentResponseBody, errors.DuplicateAgentResponseBody | errors.DuplicateAgentAgentsResponseBody | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
18
  //# sourceMappingURL=agentsDuplicate.d.ts.map
@@ -50,7 +50,7 @@ const async_js_1 = require("../types/async.js");
50
50
  * Duplicate an existing agent
51
51
  *
52
52
  * @remarks
53
- * Creates a copy of an existing agent with a new unique key. The duplicated agent will have all the same configuration as the original, including model settings, instructions, tools, and knowledge bases.
53
+ * Creates a copy of an existing agent with a new unique key and display name. The duplicated agent will have all the same configuration as the original, including model settings, instructions, tools, and knowledge bases.
54
54
  */
55
55
  function agentsDuplicate(client, request, options) {
56
56
  return new async_js_1.APIPromise($do(client, request, options));
@@ -61,15 +61,16 @@ async function $do(client, request, options) {
61
61
  return [parsed, { status: "invalid" }];
62
62
  }
63
63
  const payload = parsed.value;
64
- const body = null;
64
+ const body = (0, encodings_js_1.encodeJSON)("body", payload.RequestBody, { explode: true });
65
65
  const pathParams = {
66
- id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
66
+ agent_key: (0, encodings_js_1.encodeSimple)("agent_key", payload.agent_key, {
67
67
  explode: false,
68
68
  charEncoding: "percent",
69
69
  }),
70
70
  };
71
- const path = (0, url_js_1.pathToFunc)("/v2/agents/{id}/duplicate")(pathParams);
71
+ const path = (0, url_js_1.pathToFunc)("/v2/agents/{agent_key}/duplicate")(pathParams);
72
72
  const headers = new Headers((0, primitives_js_1.compactMap)({
73
+ "Content-Type": "application/json",
73
74
  Accept: "application/json",
74
75
  }));
75
76
  const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
@@ -1 +1 @@
1
- {"version":3,"file":"agentsDuplicate.js","sourceRoot":"","sources":["../src/funcs/agentsDuplicate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,0CAwBC;AAp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EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@orq-ai/node",
5
- "version": "4.0.0-rc.45",
5
+ "version": "4.0.0-rc.48",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/lib/config.d.ts CHANGED
@@ -39,8 +39,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
39
39
  export declare const SDK_METADATA: {
40
40
  readonly language: "typescript";
41
41
  readonly openapiDocVersion: "2.0";
42
- readonly sdkVersion: "4.0.0-rc.45";
42
+ readonly sdkVersion: "4.0.0-rc.48";
43
43
  readonly genVersion: "2.755.9";
44
- readonly userAgent: "speakeasy-sdk/typescript 4.0.0-rc.45 2.755.9 2.0 @orq-ai/node";
44
+ readonly userAgent: "speakeasy-sdk/typescript 4.0.0-rc.48 2.755.9 2.0 @orq-ai/node";
45
45
  };
46
46
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
28
28
  exports.SDK_METADATA = {
29
29
  language: "typescript",
30
30
  openapiDocVersion: "2.0",
31
- sdkVersion: "4.0.0-rc.45",
31
+ sdkVersion: "4.0.0-rc.48",
32
32
  genVersion: "2.755.9",
33
- userAgent: "speakeasy-sdk/typescript 4.0.0-rc.45 2.755.9 2.0 @orq-ai/node",
33
+ userAgent: "speakeasy-sdk/typescript 4.0.0-rc.48 2.755.9 2.0 @orq-ai/node",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
22
22
  exports.app = (0, core_1.buildApplication)(routes, {
23
23
  name: "mcp",
24
24
  versionInfo: {
25
- currentVersion: "4.0.0-rc.45",
25
+ currentVersion: "4.0.0-rc.48",
26
26
  },
27
27
  });
28
28
  (0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
@@ -112,7 +112,7 @@ const toolsUpdate_js_1 = require("./tools/toolsUpdate.js");
112
112
  function createMCPServer(deps) {
113
113
  const server = new mcp_js_1.McpServer({
114
114
  name: "Orq",
115
- version: "4.0.0-rc.45",
115
+ version: "4.0.0-rc.48",
116
116
  });
117
117
  const client = new core_js_1.OrqCore({
118
118
  apiKey: deps.apiKey,
@@ -47,7 +47,7 @@ exports.tool$agentsDuplicate = {
47
47
  name: "agents-duplicate",
48
48
  description: `Duplicate an existing agent
49
49
 
50
- Creates a copy of an existing agent with a new unique key. The duplicated agent will have all the same configuration as the original, including model settings, instructions, tools, and knowledge bases.`,
50
+ Creates a copy of an existing agent with a new unique key and display name. The duplicated agent will have all the same configuration as the original, including model settings, instructions, tools, and knowledge bases.`,
51
51
  args,
52
52
  tool: async (client, args, ctx) => {
53
53
  const [result, apiCall] = await (0, agentsDuplicate_js_1.agentsDuplicate)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -1 +1 @@
1
- {"version":3,"file":"agentsDuplicate.js","sourceRoot":"","sources":["../../src/mcp-server/tools/agentsDuplicate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAiE;AACjE,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,mCAAmC;CACxD,CAAC;AAEW,QAAA,oBAAoB,GAAgC;IAC/D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EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -127,6 +127,17 @@ export declare const ModelConfigurationType: {
127
127
  * Enables or disables the thinking mode capability
128
128
  */
129
129
  export type ModelConfigurationType = ClosedEnum<typeof ModelConfigurationType>;
130
+ /**
131
+ * 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.
132
+ */
133
+ export declare const ThinkingLevel: {
134
+ readonly Low: "low";
135
+ readonly High: "high";
136
+ };
137
+ /**
138
+ * 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.
139
+ */
140
+ export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
130
141
  export type Thinking = {
131
142
  /**
132
143
  * Enables or disables the thinking mode capability
@@ -136,6 +147,10 @@ export type Thinking = {
136
147
  * 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`.
137
148
  */
138
149
  budgetTokens: number;
150
+ /**
151
+ * 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.
152
+ */
153
+ thinkingLevel?: ThinkingLevel | undefined;
139
154
  };
140
155
  /**
141
156
  * The type of the tool. Currently, only function is supported.
@@ -426,6 +441,17 @@ export declare const FallbackModelConfigurationType: {
426
441
  * Enables or disables the thinking mode capability
427
442
  */
428
443
  export type FallbackModelConfigurationType = ClosedEnum<typeof FallbackModelConfigurationType>;
444
+ /**
445
+ * 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.
446
+ */
447
+ export declare const FallbackModelConfigurationThinkingLevel: {
448
+ readonly Low: "low";
449
+ readonly High: "high";
450
+ };
451
+ /**
452
+ * 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.
453
+ */
454
+ export type FallbackModelConfigurationThinkingLevel = ClosedEnum<typeof FallbackModelConfigurationThinkingLevel>;
429
455
  export type FallbackModelConfigurationThinking = {
430
456
  /**
431
457
  * Enables or disables the thinking mode capability
@@ -435,6 +461,10 @@ export type FallbackModelConfigurationThinking = {
435
461
  * 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`.
436
462
  */
437
463
  budgetTokens: number;
464
+ /**
465
+ * 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.
466
+ */
467
+ thinkingLevel?: FallbackModelConfigurationThinkingLevel | undefined;
438
468
  };
439
469
  /**
440
470
  * The type of the tool. Currently, only function is supported.
@@ -978,7 +1008,7 @@ export type CreateAgentRequestBody = {
978
1008
  /**
979
1009
  * agent display name within the workspace
980
1010
  */
981
- displayName: string;
1011
+ displayName?: string | undefined;
982
1012
  /**
983
1013
  * The role or function of the agent
984
1014
  */
@@ -1290,6 +1320,17 @@ export declare const CreateAgentType: {
1290
1320
  * Enables or disables the thinking mode capability
1291
1321
  */
1292
1322
  export type CreateAgentType = ClosedEnum<typeof CreateAgentType>;
1323
+ /**
1324
+ * 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.
1325
+ */
1326
+ export declare const CreateAgentThinkingLevel: {
1327
+ readonly Low: "low";
1328
+ readonly High: "high";
1329
+ };
1330
+ /**
1331
+ * 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.
1332
+ */
1333
+ export type CreateAgentThinkingLevel = ClosedEnum<typeof CreateAgentThinkingLevel>;
1293
1334
  export type CreateAgentThinking = {
1294
1335
  /**
1295
1336
  * Enables or disables the thinking mode capability
@@ -1299,6 +1340,10 @@ export type CreateAgentThinking = {
1299
1340
  * 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`.
1300
1341
  */
1301
1342
  budgetTokens: number;
1343
+ /**
1344
+ * 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.
1345
+ */
1346
+ thinkingLevel?: CreateAgentThinkingLevel | undefined;
1302
1347
  };
1303
1348
  /**
1304
1349
  * The type of the tool. Currently, only function is supported.
@@ -1566,6 +1611,17 @@ export declare const CreateAgentFallbackModelConfigurationType: {
1566
1611
  * Enables or disables the thinking mode capability
1567
1612
  */
1568
1613
  export type CreateAgentFallbackModelConfigurationType = ClosedEnum<typeof CreateAgentFallbackModelConfigurationType>;
1614
+ /**
1615
+ * 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.
1616
+ */
1617
+ export declare const CreateAgentFallbackModelConfigurationThinkingLevel: {
1618
+ readonly Low: "low";
1619
+ readonly High: "high";
1620
+ };
1621
+ /**
1622
+ * 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.
1623
+ */
1624
+ export type CreateAgentFallbackModelConfigurationThinkingLevel = ClosedEnum<typeof CreateAgentFallbackModelConfigurationThinkingLevel>;
1569
1625
  export type CreateAgentFallbackModelConfigurationThinking = {
1570
1626
  /**
1571
1627
  * Enables or disables the thinking mode capability
@@ -1575,6 +1631,10 @@ export type CreateAgentFallbackModelConfigurationThinking = {
1575
1631
  * 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`.
1576
1632
  */
1577
1633
  budgetTokens: number;
1634
+ /**
1635
+ * 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.
1636
+ */
1637
+ thinkingLevel?: CreateAgentFallbackModelConfigurationThinkingLevel | undefined;
1578
1638
  };
1579
1639
  /**
1580
1640
  * The type of the tool. Currently, only function is supported.
@@ -1721,7 +1781,7 @@ export type CreateAgentFallbackModelConfiguration2 = {
1721
1781
  * Fallback model for automatic failover when primary model request fails. Supports optional parameter overrides. Can be a simple model ID string or a configuration object with model-specific parameters. Fallbacks are tried in order.
1722
1782
  */
1723
1783
  export type CreateAgentFallbackModelConfiguration = CreateAgentFallbackModelConfiguration2 | string;
1724
- export type CreateAgentModel = {
1784
+ export type Model = {
1725
1785
  /**
1726
1786
  * The database ID of the primary model
1727
1787
  */
@@ -1783,7 +1843,7 @@ export type CreateAgentResponseBody = {
1783
1843
  */
1784
1844
  status: CreateAgentStatus;
1785
1845
  settings?: CreateAgentSettings | undefined;
1786
- model: CreateAgentModel;
1846
+ model: Model;
1787
1847
  versionHash?: string | undefined;
1788
1848
  /**
1789
1849
  * Entity storage path in the format: `project/folder/subfolder/...`
@@ -1921,11 +1981,16 @@ export declare const ModelConfigurationType$inboundSchema: z.ZodNativeEnum<typeo
1921
1981
  /** @internal */
1922
1982
  export declare const ModelConfigurationType$outboundSchema: z.ZodNativeEnum<typeof ModelConfigurationType>;
1923
1983
  /** @internal */
1984
+ export declare const ThinkingLevel$inboundSchema: z.ZodNativeEnum<typeof ThinkingLevel>;
1985
+ /** @internal */
1986
+ export declare const ThinkingLevel$outboundSchema: z.ZodNativeEnum<typeof ThinkingLevel>;
1987
+ /** @internal */
1924
1988
  export declare const Thinking$inboundSchema: z.ZodType<Thinking, z.ZodTypeDef, unknown>;
1925
1989
  /** @internal */
1926
1990
  export type Thinking$Outbound = {
1927
1991
  type: string;
1928
1992
  budget_tokens: number;
1993
+ thinking_level?: string | undefined;
1929
1994
  };
1930
1995
  /** @internal */
1931
1996
  export declare const Thinking$outboundSchema: z.ZodType<Thinking$Outbound, z.ZodTypeDef, Thinking>;
@@ -2139,11 +2204,16 @@ export declare const FallbackModelConfigurationType$inboundSchema: z.ZodNativeEn
2139
2204
  /** @internal */
2140
2205
  export declare const FallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<typeof FallbackModelConfigurationType>;
2141
2206
  /** @internal */
2207
+ export declare const FallbackModelConfigurationThinkingLevel$inboundSchema: z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel>;
2208
+ /** @internal */
2209
+ export declare const FallbackModelConfigurationThinkingLevel$outboundSchema: z.ZodNativeEnum<typeof FallbackModelConfigurationThinkingLevel>;
2210
+ /** @internal */
2142
2211
  export declare const FallbackModelConfigurationThinking$inboundSchema: z.ZodType<FallbackModelConfigurationThinking, z.ZodTypeDef, unknown>;
2143
2212
  /** @internal */
2144
2213
  export type FallbackModelConfigurationThinking$Outbound = {
2145
2214
  type: string;
2146
2215
  budget_tokens: number;
2216
+ thinking_level?: string | undefined;
2147
2217
  };
2148
2218
  /** @internal */
2149
2219
  export declare const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<FallbackModelConfigurationThinking$Outbound, z.ZodTypeDef, FallbackModelConfigurationThinking>;
@@ -2557,7 +2627,7 @@ export declare const CreateAgentRequestBody$inboundSchema: z.ZodType<CreateAgent
2557
2627
  /** @internal */
2558
2628
  export type CreateAgentRequestBody$Outbound = {
2559
2629
  key: string;
2560
- display_name: string;
2630
+ display_name?: string | undefined;
2561
2631
  role: string;
2562
2632
  description: string;
2563
2633
  instructions: string;
@@ -2767,11 +2837,16 @@ export declare const CreateAgentType$inboundSchema: z.ZodNativeEnum<typeof Creat
2767
2837
  /** @internal */
2768
2838
  export declare const CreateAgentType$outboundSchema: z.ZodNativeEnum<typeof CreateAgentType>;
2769
2839
  /** @internal */
2840
+ export declare const CreateAgentThinkingLevel$inboundSchema: z.ZodNativeEnum<typeof CreateAgentThinkingLevel>;
2841
+ /** @internal */
2842
+ export declare const CreateAgentThinkingLevel$outboundSchema: z.ZodNativeEnum<typeof CreateAgentThinkingLevel>;
2843
+ /** @internal */
2770
2844
  export declare const CreateAgentThinking$inboundSchema: z.ZodType<CreateAgentThinking, z.ZodTypeDef, unknown>;
2771
2845
  /** @internal */
2772
2846
  export type CreateAgentThinking$Outbound = {
2773
2847
  type: string;
2774
2848
  budget_tokens: number;
2849
+ thinking_level?: string | undefined;
2775
2850
  };
2776
2851
  /** @internal */
2777
2852
  export declare const CreateAgentThinking$outboundSchema: z.ZodType<CreateAgentThinking$Outbound, z.ZodTypeDef, CreateAgentThinking>;
@@ -2965,11 +3040,16 @@ export declare const CreateAgentFallbackModelConfigurationType$inboundSchema: z.
2965
3040
  /** @internal */
2966
3041
  export declare const CreateAgentFallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationType>;
2967
3042
  /** @internal */
3043
+ export declare const CreateAgentFallbackModelConfigurationThinkingLevel$inboundSchema: z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationThinkingLevel>;
3044
+ /** @internal */
3045
+ export declare const CreateAgentFallbackModelConfigurationThinkingLevel$outboundSchema: z.ZodNativeEnum<typeof CreateAgentFallbackModelConfigurationThinkingLevel>;
3046
+ /** @internal */
2968
3047
  export declare const CreateAgentFallbackModelConfigurationThinking$inboundSchema: z.ZodType<CreateAgentFallbackModelConfigurationThinking, z.ZodTypeDef, unknown>;
2969
3048
  /** @internal */
2970
3049
  export type CreateAgentFallbackModelConfigurationThinking$Outbound = {
2971
3050
  type: string;
2972
3051
  budget_tokens: number;
3052
+ thinking_level?: string | undefined;
2973
3053
  };
2974
3054
  /** @internal */
2975
3055
  export declare const CreateAgentFallbackModelConfigurationThinking$outboundSchema: z.ZodType<CreateAgentFallbackModelConfigurationThinking$Outbound, z.ZodTypeDef, CreateAgentFallbackModelConfigurationThinking>;
@@ -3066,9 +3146,9 @@ export declare const CreateAgentFallbackModelConfiguration$outboundSchema: z.Zod
3066
3146
  export declare function createAgentFallbackModelConfigurationToJSON(createAgentFallbackModelConfiguration: CreateAgentFallbackModelConfiguration): string;
3067
3147
  export declare function createAgentFallbackModelConfigurationFromJSON(jsonString: string): SafeParseResult<CreateAgentFallbackModelConfiguration, SDKValidationError>;
3068
3148
  /** @internal */
3069
- export declare const CreateAgentModel$inboundSchema: z.ZodType<CreateAgentModel, z.ZodTypeDef, unknown>;
3149
+ export declare const Model$inboundSchema: z.ZodType<Model, z.ZodTypeDef, unknown>;
3070
3150
  /** @internal */
3071
- export type CreateAgentModel$Outbound = {
3151
+ export type Model$Outbound = {
3072
3152
  id: string;
3073
3153
  integration_id?: string | null | undefined;
3074
3154
  parameters?: CreateAgentParameters$Outbound | undefined;
@@ -3076,9 +3156,9 @@ export type CreateAgentModel$Outbound = {
3076
3156
  fallback_models?: Array<CreateAgentFallbackModelConfiguration2$Outbound | string> | null | undefined;
3077
3157
  };
3078
3158
  /** @internal */
3079
- export declare const CreateAgentModel$outboundSchema: z.ZodType<CreateAgentModel$Outbound, z.ZodTypeDef, CreateAgentModel>;
3080
- export declare function createAgentModelToJSON(createAgentModel: CreateAgentModel): string;
3081
- export declare function createAgentModelFromJSON(jsonString: string): SafeParseResult<CreateAgentModel, SDKValidationError>;
3159
+ export declare const Model$outboundSchema: z.ZodType<Model$Outbound, z.ZodTypeDef, Model>;
3160
+ export declare function modelToJSON(model: Model): string;
3161
+ export declare function modelFromJSON(jsonString: string): SafeParseResult<Model, SDKValidationError>;
3082
3162
  /** @internal */
3083
3163
  export declare const CreateAgentTeamOfAgents$inboundSchema: z.ZodType<CreateAgentTeamOfAgents, z.ZodTypeDef, unknown>;
3084
3164
  /** @internal */
@@ -3128,7 +3208,7 @@ export type CreateAgentResponseBody$Outbound = {
3128
3208
  instructions: string;
3129
3209
  status: string;
3130
3210
  settings?: CreateAgentSettings$Outbound | undefined;
3131
- model: CreateAgentModel$Outbound;
3211
+ model: Model$Outbound;
3132
3212
  version_hash?: string | undefined;
3133
3213
  path: string;
3134
3214
  memory_stores: Array<string>;