@meetkai/mka1 0.55.23 → 0.55.25

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 (221) hide show
  1. package/bin/mcp-server.js +242 -87
  2. package/bin/mcp-server.js.map +32 -29
  3. package/dist/commonjs/funcs/agentRunsCancelAgentRun.d.ts +1 -1
  4. package/dist/commonjs/funcs/agentRunsCancelAgentRun.js +1 -1
  5. package/dist/commonjs/funcs/agentRunsCreateAgentRun.d.ts +1 -1
  6. package/dist/commonjs/funcs/agentRunsCreateAgentRun.js +2 -2
  7. package/dist/commonjs/funcs/agentRunsCreateAgentRun.js.map +1 -1
  8. package/dist/commonjs/funcs/llmModelsCheckCatalogHealth.d.ts +1 -1
  9. package/dist/commonjs/funcs/llmModelsCheckCatalogHealth.js +1 -1
  10. package/dist/commonjs/lib/config.d.ts +2 -2
  11. package/dist/commonjs/lib/config.js +2 -2
  12. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  13. package/dist/commonjs/mcp-server/server.js +1 -1
  14. package/dist/commonjs/mcp-server/tools/agentRunsCancelAgentRun.js +1 -1
  15. package/dist/commonjs/mcp-server/tools/agentRunsCancelAgentRun.js.map +1 -1
  16. package/dist/commonjs/mcp-server/tools/agentRunsCreateAgentRun.js +1 -1
  17. package/dist/commonjs/mcp-server/tools/agentRunsCreateAgentRun.js.map +1 -1
  18. package/dist/commonjs/mcp-server/tools/llmModelsCheckCatalogHealth.js +1 -1
  19. package/dist/commonjs/mcp-server/tools/llmModelsCheckCatalogHealth.js.map +1 -1
  20. package/dist/commonjs/models/components/agent.d.ts +13 -0
  21. package/dist/commonjs/models/components/agent.d.ts.map +1 -1
  22. package/dist/commonjs/models/components/agent.js +17 -1
  23. package/dist/commonjs/models/components/agent.js.map +1 -1
  24. package/dist/commonjs/models/components/agentrun.d.ts +4 -3
  25. package/dist/commonjs/models/components/agentrun.d.ts.map +1 -1
  26. package/dist/commonjs/models/components/agentrun.js +2 -1
  27. package/dist/commonjs/models/components/agentrun.js.map +1 -1
  28. package/dist/commonjs/models/components/agentssandboxsessionscope.d.ts +18 -0
  29. package/dist/commonjs/models/components/agentssandboxsessionscope.d.ts.map +1 -0
  30. package/dist/commonjs/models/components/agentssandboxsessionscope.js +52 -0
  31. package/dist/commonjs/models/components/agentssandboxsessionscope.js.map +1 -0
  32. package/dist/commonjs/models/components/cataloghealth.d.ts +17 -0
  33. package/dist/commonjs/models/components/cataloghealth.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/cataloghealth.js +3 -0
  35. package/dist/commonjs/models/components/cataloghealth.js.map +1 -1
  36. package/dist/commonjs/models/components/cataloghealthresponse.d.ts +14 -0
  37. package/dist/commonjs/models/components/cataloghealthresponse.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/cataloghealthresponse.js +3 -0
  39. package/dist/commonjs/models/components/cataloghealthresponse.js.map +1 -1
  40. package/dist/commonjs/models/components/cataloghealthstatus.d.ts +19 -0
  41. package/dist/commonjs/models/components/cataloghealthstatus.d.ts.map +1 -0
  42. package/dist/commonjs/models/components/cataloghealthstatus.js +53 -0
  43. package/dist/commonjs/models/components/cataloghealthstatus.js.map +1 -0
  44. package/dist/commonjs/models/components/codeinterpretercontainerauto.d.ts +6 -0
  45. package/dist/commonjs/models/components/codeinterpretercontainerauto.d.ts.map +1 -1
  46. package/dist/commonjs/models/components/codeinterpretercontainerauto.js +5 -0
  47. package/dist/commonjs/models/components/codeinterpretercontainerauto.js.map +1 -1
  48. package/dist/commonjs/models/components/codeinterpretertoolrequest.d.ts +6 -0
  49. package/dist/commonjs/models/components/codeinterpretertoolrequest.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/codeinterpretertoolrequest.js +5 -0
  51. package/dist/commonjs/models/components/codeinterpretertoolrequest.js.map +1 -1
  52. package/dist/commonjs/models/components/createagentrequest.d.ts +26 -0
  53. package/dist/commonjs/models/components/createagentrequest.d.ts.map +1 -1
  54. package/dist/commonjs/models/components/createagentrequest.js +22 -1
  55. package/dist/commonjs/models/components/createagentrequest.js.map +1 -1
  56. package/dist/commonjs/models/components/index.d.ts +3 -0
  57. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  58. package/dist/commonjs/models/components/index.js +3 -0
  59. package/dist/commonjs/models/components/index.js.map +1 -1
  60. package/dist/commonjs/models/components/livekittokenrequest.d.ts +6 -6
  61. package/dist/commonjs/models/components/livekittokenrequest.d.ts.map +1 -1
  62. package/dist/commonjs/models/components/livekittokenrequest.js +5 -5
  63. package/dist/commonjs/models/components/livekittokenrequest.js.map +1 -1
  64. package/dist/commonjs/models/components/responsescreaterequest.d.ts +6 -6
  65. package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/responsescreaterequest.js +5 -5
  67. package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
  68. package/dist/commonjs/models/components/sandboxsessionscope.d.ts +2 -2
  69. package/dist/commonjs/models/components/sandboxsessionscope.js +1 -1
  70. package/dist/commonjs/models/components/shellenvironmentcontainerauto.d.ts +6 -0
  71. package/dist/commonjs/models/components/shellenvironmentcontainerauto.d.ts.map +1 -1
  72. package/dist/commonjs/models/components/shellenvironmentcontainerauto.js +5 -0
  73. package/dist/commonjs/models/components/shellenvironmentcontainerauto.js.map +1 -1
  74. package/dist/commonjs/models/components/shelltoolrequest.d.ts +73 -0
  75. package/dist/commonjs/models/components/shelltoolrequest.d.ts.map +1 -0
  76. package/dist/commonjs/models/components/shelltoolrequest.js +129 -0
  77. package/dist/commonjs/models/components/shelltoolrequest.js.map +1 -0
  78. package/dist/commonjs/models/components/tooldefinition.d.ts +17 -17
  79. package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
  80. package/dist/commonjs/models/components/tooldefinition.js +26 -26
  81. package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
  82. package/dist/commonjs/models/components/updateagentrequest.d.ts +26 -0
  83. package/dist/commonjs/models/components/updateagentrequest.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/updateagentrequest.js +22 -1
  85. package/dist/commonjs/models/components/updateagentrequest.js.map +1 -1
  86. package/dist/commonjs/react-query/agentRunsCancelAgentRun.d.ts +1 -1
  87. package/dist/commonjs/react-query/agentRunsCancelAgentRun.js +1 -1
  88. package/dist/commonjs/react-query/agentRunsCreateAgentRun.d.ts +1 -1
  89. package/dist/commonjs/react-query/agentRunsCreateAgentRun.js +1 -1
  90. package/dist/commonjs/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
  91. package/dist/commonjs/react-query/llmModelsCheckCatalogHealth.js +1 -1
  92. package/dist/commonjs/sdk/agentruns.d.ts +2 -2
  93. package/dist/commonjs/sdk/agentruns.js +2 -2
  94. package/dist/commonjs/sdk/models.d.ts +1 -1
  95. package/dist/commonjs/sdk/models.js +1 -1
  96. package/dist/esm/funcs/agentRunsCancelAgentRun.d.ts +1 -1
  97. package/dist/esm/funcs/agentRunsCancelAgentRun.js +1 -1
  98. package/dist/esm/funcs/agentRunsCreateAgentRun.d.ts +1 -1
  99. package/dist/esm/funcs/agentRunsCreateAgentRun.js +2 -2
  100. package/dist/esm/funcs/agentRunsCreateAgentRun.js.map +1 -1
  101. package/dist/esm/funcs/llmModelsCheckCatalogHealth.d.ts +1 -1
  102. package/dist/esm/funcs/llmModelsCheckCatalogHealth.js +1 -1
  103. package/dist/esm/lib/config.d.ts +2 -2
  104. package/dist/esm/lib/config.js +2 -2
  105. package/dist/esm/mcp-server/mcp-server.js +1 -1
  106. package/dist/esm/mcp-server/server.js +1 -1
  107. package/dist/esm/mcp-server/tools/agentRunsCancelAgentRun.js +1 -1
  108. package/dist/esm/mcp-server/tools/agentRunsCancelAgentRun.js.map +1 -1
  109. package/dist/esm/mcp-server/tools/agentRunsCreateAgentRun.js +1 -1
  110. package/dist/esm/mcp-server/tools/agentRunsCreateAgentRun.js.map +1 -1
  111. package/dist/esm/mcp-server/tools/llmModelsCheckCatalogHealth.js +1 -1
  112. package/dist/esm/mcp-server/tools/llmModelsCheckCatalogHealth.js.map +1 -1
  113. package/dist/esm/models/components/agent.d.ts +13 -0
  114. package/dist/esm/models/components/agent.d.ts.map +1 -1
  115. package/dist/esm/models/components/agent.js +16 -0
  116. package/dist/esm/models/components/agent.js.map +1 -1
  117. package/dist/esm/models/components/agentrun.d.ts +4 -3
  118. package/dist/esm/models/components/agentrun.d.ts.map +1 -1
  119. package/dist/esm/models/components/agentrun.js +2 -1
  120. package/dist/esm/models/components/agentrun.js.map +1 -1
  121. package/dist/esm/models/components/agentssandboxsessionscope.d.ts +18 -0
  122. package/dist/esm/models/components/agentssandboxsessionscope.d.ts.map +1 -0
  123. package/dist/esm/models/components/agentssandboxsessionscope.js +16 -0
  124. package/dist/esm/models/components/agentssandboxsessionscope.js.map +1 -0
  125. package/dist/esm/models/components/cataloghealth.d.ts +17 -0
  126. package/dist/esm/models/components/cataloghealth.d.ts.map +1 -1
  127. package/dist/esm/models/components/cataloghealth.js +3 -0
  128. package/dist/esm/models/components/cataloghealth.js.map +1 -1
  129. package/dist/esm/models/components/cataloghealthresponse.d.ts +14 -0
  130. package/dist/esm/models/components/cataloghealthresponse.d.ts.map +1 -1
  131. package/dist/esm/models/components/cataloghealthresponse.js +3 -0
  132. package/dist/esm/models/components/cataloghealthresponse.js.map +1 -1
  133. package/dist/esm/models/components/cataloghealthstatus.d.ts +19 -0
  134. package/dist/esm/models/components/cataloghealthstatus.d.ts.map +1 -0
  135. package/dist/esm/models/components/cataloghealthstatus.js +17 -0
  136. package/dist/esm/models/components/cataloghealthstatus.js.map +1 -0
  137. package/dist/esm/models/components/codeinterpretercontainerauto.d.ts +6 -0
  138. package/dist/esm/models/components/codeinterpretercontainerauto.d.ts.map +1 -1
  139. package/dist/esm/models/components/codeinterpretercontainerauto.js +5 -0
  140. package/dist/esm/models/components/codeinterpretercontainerauto.js.map +1 -1
  141. package/dist/esm/models/components/codeinterpretertoolrequest.d.ts +6 -0
  142. package/dist/esm/models/components/codeinterpretertoolrequest.d.ts.map +1 -1
  143. package/dist/esm/models/components/codeinterpretertoolrequest.js +5 -0
  144. package/dist/esm/models/components/codeinterpretertoolrequest.js.map +1 -1
  145. package/dist/esm/models/components/createagentrequest.d.ts +26 -0
  146. package/dist/esm/models/components/createagentrequest.d.ts.map +1 -1
  147. package/dist/esm/models/components/createagentrequest.js +21 -0
  148. package/dist/esm/models/components/createagentrequest.js.map +1 -1
  149. package/dist/esm/models/components/index.d.ts +3 -0
  150. package/dist/esm/models/components/index.d.ts.map +1 -1
  151. package/dist/esm/models/components/index.js +3 -0
  152. package/dist/esm/models/components/index.js.map +1 -1
  153. package/dist/esm/models/components/livekittokenrequest.d.ts +6 -6
  154. package/dist/esm/models/components/livekittokenrequest.d.ts.map +1 -1
  155. package/dist/esm/models/components/livekittokenrequest.js +5 -5
  156. package/dist/esm/models/components/livekittokenrequest.js.map +1 -1
  157. package/dist/esm/models/components/responsescreaterequest.d.ts +6 -6
  158. package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
  159. package/dist/esm/models/components/responsescreaterequest.js +5 -5
  160. package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
  161. package/dist/esm/models/components/sandboxsessionscope.d.ts +2 -2
  162. package/dist/esm/models/components/sandboxsessionscope.js +1 -1
  163. package/dist/esm/models/components/shellenvironmentcontainerauto.d.ts +6 -0
  164. package/dist/esm/models/components/shellenvironmentcontainerauto.d.ts.map +1 -1
  165. package/dist/esm/models/components/shellenvironmentcontainerauto.js +5 -0
  166. package/dist/esm/models/components/shellenvironmentcontainerauto.js.map +1 -1
  167. package/dist/esm/models/components/shelltoolrequest.d.ts +73 -0
  168. package/dist/esm/models/components/shelltoolrequest.d.ts.map +1 -0
  169. package/dist/esm/models/components/shelltoolrequest.js +87 -0
  170. package/dist/esm/models/components/shelltoolrequest.js.map +1 -0
  171. package/dist/esm/models/components/tooldefinition.d.ts +17 -17
  172. package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
  173. package/dist/esm/models/components/tooldefinition.js +21 -21
  174. package/dist/esm/models/components/tooldefinition.js.map +1 -1
  175. package/dist/esm/models/components/updateagentrequest.d.ts +26 -0
  176. package/dist/esm/models/components/updateagentrequest.d.ts.map +1 -1
  177. package/dist/esm/models/components/updateagentrequest.js +21 -0
  178. package/dist/esm/models/components/updateagentrequest.js.map +1 -1
  179. package/dist/esm/react-query/agentRunsCancelAgentRun.d.ts +1 -1
  180. package/dist/esm/react-query/agentRunsCancelAgentRun.js +1 -1
  181. package/dist/esm/react-query/agentRunsCreateAgentRun.d.ts +1 -1
  182. package/dist/esm/react-query/agentRunsCreateAgentRun.js +1 -1
  183. package/dist/esm/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
  184. package/dist/esm/react-query/llmModelsCheckCatalogHealth.js +1 -1
  185. package/dist/esm/sdk/agentruns.d.ts +2 -2
  186. package/dist/esm/sdk/agentruns.js +2 -2
  187. package/dist/esm/sdk/models.d.ts +1 -1
  188. package/dist/esm/sdk/models.js +1 -1
  189. package/jsr.json +1 -1
  190. package/package.json +1 -1
  191. package/src/funcs/agentRunsCancelAgentRun.ts +1 -1
  192. package/src/funcs/agentRunsCreateAgentRun.ts +4 -4
  193. package/src/funcs/llmModelsCheckCatalogHealth.ts +1 -1
  194. package/src/lib/config.ts +2 -2
  195. package/src/mcp-server/mcp-server.ts +1 -1
  196. package/src/mcp-server/server.ts +1 -1
  197. package/src/mcp-server/tools/agentRunsCancelAgentRun.ts +1 -1
  198. package/src/mcp-server/tools/agentRunsCreateAgentRun.ts +1 -1
  199. package/src/mcp-server/tools/llmModelsCheckCatalogHealth.ts +1 -1
  200. package/src/models/components/agent.ts +27 -0
  201. package/src/models/components/agentrun.ts +4 -3
  202. package/src/models/components/agentssandboxsessionscope.ts +29 -0
  203. package/src/models/components/cataloghealth.ts +23 -0
  204. package/src/models/components/cataloghealthresponse.ts +20 -0
  205. package/src/models/components/cataloghealthstatus.ts +28 -0
  206. package/src/models/components/codeinterpretercontainerauto.ts +14 -0
  207. package/src/models/components/codeinterpretertoolrequest.ts +14 -0
  208. package/src/models/components/createagentrequest.ts +45 -0
  209. package/src/models/components/index.ts +3 -0
  210. package/src/models/components/livekittokenrequest.ts +14 -14
  211. package/src/models/components/responsescreaterequest.ts +14 -14
  212. package/src/models/components/sandboxsessionscope.ts +2 -2
  213. package/src/models/components/shellenvironmentcontainerauto.ts +14 -0
  214. package/src/models/components/shelltoolrequest.ts +219 -0
  215. package/src/models/components/tooldefinition.ts +58 -45
  216. package/src/models/components/updateagentrequest.ts +45 -0
  217. package/src/react-query/agentRunsCancelAgentRun.ts +1 -1
  218. package/src/react-query/agentRunsCreateAgentRun.ts +1 -1
  219. package/src/react-query/llmModelsCheckCatalogHealth.ts +1 -1
  220. package/src/sdk/agentruns.ts +2 -2
  221. package/src/sdk/models.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"updateagentrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/updateagentrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,KAAK,CAAC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5C,IAAI,CAAC,EAAE,+BAA+B,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1D,SAAS,CAAC,EAAE,oCAAoC,GAAG,IAAI,GAAG,SAAS,CAAC;IACpE,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAqBlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AACD,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
1
+ {"version":3,"file":"updateagentrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/updateagentrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;CAGxC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG,UAAU,CAC5D,OAAO,qCAAqC,CAC7C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,I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,17 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { AgentReasoningConfiguration$inboundSchema, AgentReasoningConfiguration$outboundSchema, } from "./agentreasoningconfiguration.js";
8
8
  import { AgentTextConfiguration$inboundSchema, AgentTextConfiguration$outboundSchema, } from "./agenttextconfiguration.js";
9
9
  import { ToolDefinition$inboundSchema, ToolDefinition$outboundSchema, } from "./tooldefinition.js";
10
+ /**
11
+ * What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
12
+ */
13
+ export const UpdateAgentRequestConcurrencyOverflow = {
14
+ Reject: "reject",
15
+ Queue: "queue",
16
+ };
17
+ /** @internal */
18
+ export const UpdateAgentRequestConcurrencyOverflow$inboundSchema = z.nativeEnum(UpdateAgentRequestConcurrencyOverflow);
19
+ /** @internal */
20
+ export const UpdateAgentRequestConcurrencyOverflow$outboundSchema = UpdateAgentRequestConcurrencyOverflow$inboundSchema;
10
21
  /** @internal */
11
22
  export const UpdateAgentRequest$inboundSchema = z.object({
12
23
  name: z.string().optional(),
@@ -18,6 +29,9 @@ export const UpdateAgentRequest$inboundSchema = z.object({
18
29
  parallel_tool_calls: z.boolean().optional(),
19
30
  max_tool_calls: z.nullable(z.number().int()).optional(),
20
31
  fallback_models: z.array(z.string()).optional(),
32
+ max_concurrent_runs: z.nullable(z.number().int()).optional(),
33
+ concurrency_overflow: UpdateAgentRequestConcurrencyOverflow$inboundSchema
34
+ .optional(),
21
35
  text: z.nullable(AgentTextConfiguration$inboundSchema).optional(),
22
36
  reasoning: z.nullable(AgentReasoningConfiguration$inboundSchema).optional(),
23
37
  metadata: z.record(z.string()).optional(),
@@ -27,6 +41,8 @@ export const UpdateAgentRequest$inboundSchema = z.object({
27
41
  "parallel_tool_calls": "parallelToolCalls",
28
42
  "max_tool_calls": "maxToolCalls",
29
43
  "fallback_models": "fallbackModels",
44
+ "max_concurrent_runs": "maxConcurrentRuns",
45
+ "concurrency_overflow": "concurrencyOverflow",
30
46
  });
31
47
  });
32
48
  /** @internal */
@@ -40,6 +56,9 @@ export const UpdateAgentRequest$outboundSchema = z.object({
40
56
  parallelToolCalls: z.boolean().optional(),
41
57
  maxToolCalls: z.nullable(z.number().int()).optional(),
42
58
  fallbackModels: z.array(z.string()).optional(),
59
+ maxConcurrentRuns: z.nullable(z.number().int()).optional(),
60
+ concurrencyOverflow: UpdateAgentRequestConcurrencyOverflow$outboundSchema
61
+ .optional(),
43
62
  text: z.nullable(AgentTextConfiguration$outboundSchema).optional(),
44
63
  reasoning: z.nullable(AgentReasoningConfiguration$outboundSchema).optional(),
45
64
  metadata: z.record(z.string()).optional(),
@@ -49,6 +68,8 @@ export const UpdateAgentRequest$outboundSchema = z.object({
49
68
  parallelToolCalls: "parallel_tool_calls",
50
69
  maxToolCalls: "max_tool_calls",
51
70
  fallbackModels: "fallback_models",
71
+ maxConcurrentRuns: "max_concurrent_runs",
72
+ concurrencyOverflow: "concurrency_overflow",
52
73
  });
53
74
  });
54
75
  export function updateAgentRequestToJSON(updateAgentRequest) {
@@ -1 +1 @@
1
- {"version":3,"file":"updateagentrequest.js","sourceRoot":"","sources":["../../../../src/models/components/updateagentrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,yCAAyC,EAEzC,0CAA0C,GAC3C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,oCAAoC,EAEpC,qCAAqC,GACtC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,4BAA4B,EAE5B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AA0B7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAIzC,CAAC,CAAC,MA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,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"updateagentrequest.js","sourceRoot":"","sources":["../../../../src/models/components/updateagentrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,yCAAyC,EAEzC,0CAA0C,GAC3C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,oCAAoC,EAEpC,qCAAqC,GACtC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,4BAA4B,EAE5B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACnD,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAwCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,mDAAmD,GACE,CAAC,CAAC,UAAU,CAC1E,qCAAqC,CACtC,CAAC;AACJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,oDAAoD,GAE7D,mDAAmD,CAAC;AAExD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAA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AE,CAAC,CAAC,QAAQ,CAAC,0CAA0C,CAAC,CAAC,QAAQ,EAAE;IAC5E,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,iBAAiB,EAAE,qBAAqB;QACxC,YAAY,EAAE,gBAAgB;QAC9B,cAAc,EAAE,iBAAiB;QACjC,iBAAiB,EAAE,qBAAqB;QACxC,mBAAmB,EAAE,sBAAsB;KAC5C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -19,7 +19,7 @@ export type AgentRunsCancelAgentRunMutationError = errors.ErrorEnvelope | SDKErr
19
19
  * Cancel a saved-agent run
20
20
  *
21
21
  * @remarks
22
- * Cancels a queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
22
+ * Cancels a waiting or queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
23
23
  */
24
24
  export declare function useAgentRunsCancelAgentRunMutation(options?: MutationHookOptions<AgentRunsCancelAgentRunMutationData, AgentRunsCancelAgentRunMutationError, AgentRunsCancelAgentRunMutationVariables>): UseMutationResult<AgentRunsCancelAgentRunMutationData, AgentRunsCancelAgentRunMutationError, AgentRunsCancelAgentRunMutationVariables>;
25
25
  export declare function mutationKeyAgentRunsCancelAgentRun(): MutationKey;
@@ -10,7 +10,7 @@ import { useSDKContext } from "./_context.js";
10
10
  * Cancel a saved-agent run
11
11
  *
12
12
  * @remarks
13
- * Cancels a queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
13
+ * Cancels a waiting or queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
14
14
  */
15
15
  export function useAgentRunsCancelAgentRunMutation(options) {
16
16
  const client = useSDKContext();
@@ -19,7 +19,7 @@ export type AgentRunsCreateAgentRunMutationError = errors.ErrorEnvelope | SDKErr
19
19
  * Start a saved agent run
20
20
  *
21
21
  * @remarks
22
- * Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress.
22
+ * Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress. When the agent is already running max_concurrent_runs runs, concurrency_overflow decides: reject returns 429 with error code agent_concurrency_limit and creates no run; queue returns 202 with a waiting run that starts when a slot frees.
23
23
  */
24
24
  export declare function useAgentRunsCreateAgentRunMutation(options?: MutationHookOptions<AgentRunsCreateAgentRunMutationData, AgentRunsCreateAgentRunMutationError, AgentRunsCreateAgentRunMutationVariables>): UseMutationResult<AgentRunsCreateAgentRunMutationData, AgentRunsCreateAgentRunMutationError, AgentRunsCreateAgentRunMutationVariables>;
25
25
  export declare function mutationKeyAgentRunsCreateAgentRun(): MutationKey;
@@ -10,7 +10,7 @@ import { useSDKContext } from "./_context.js";
10
10
  * Start a saved agent run
11
11
  *
12
12
  * @remarks
13
- * Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress.
13
+ * Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress. When the agent is already running max_concurrent_runs runs, concurrency_overflow decides: reject returns 429 with error code agent_concurrency_limit and creates no run; queue returns 202 with a waiting run that starts when a slot frees.
14
14
  */
15
15
  export function useAgentRunsCreateAgentRunMutation(options) {
16
16
  const client = useSDKContext();
@@ -18,7 +18,7 @@ export type LlmModelsCheckCatalogHealthMutationError = SDKError | ResponseValida
18
18
  * Check a BYO catalog model's health
19
19
  *
20
20
  * @remarks
21
- * Probes an available BYO definition whether or not it is active.
21
+ * Probes an available BYO definition whether or not it is active. A definition without a health check has nothing to probe and reports `status: unknown`.
22
22
  */
23
23
  export declare function useLlmModelsCheckCatalogHealthMutation(options?: MutationHookOptions<LlmModelsCheckCatalogHealthMutationData, LlmModelsCheckCatalogHealthMutationError, LlmModelsCheckCatalogHealthMutationVariables>): UseMutationResult<LlmModelsCheckCatalogHealthMutationData, LlmModelsCheckCatalogHealthMutationError, LlmModelsCheckCatalogHealthMutationVariables>;
24
24
  export declare function mutationKeyLlmModelsCheckCatalogHealth(): MutationKey;
@@ -10,7 +10,7 @@ import { useSDKContext } from "./_context.js";
10
10
  * Check a BYO catalog model's health
11
11
  *
12
12
  * @remarks
13
- * Probes an available BYO definition whether or not it is active.
13
+ * Probes an available BYO definition whether or not it is active. A definition without a health check has nothing to probe and reports `status: unknown`.
14
14
  */
15
15
  export function useLlmModelsCheckCatalogHealthMutation(options) {
16
16
  const client = useSDKContext();
@@ -10,7 +10,7 @@ export declare class AgentRuns extends ClientSDK {
10
10
  * Start a saved agent run
11
11
  *
12
12
  * @remarks
13
- * Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress.
13
+ * Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress. When the agent is already running max_concurrent_runs runs, concurrency_overflow decides: reject returns 429 with error code agent_concurrency_limit and creates no run; queue returns 202 with a waiting run that starts when a slot frees.
14
14
  */
15
15
  createAgentRun(request: operations.CreateAgentRunRequest, options?: RequestOptions): Promise<components.AgentRun>;
16
16
  /**
@@ -24,7 +24,7 @@ export declare class AgentRuns extends ClientSDK {
24
24
  * Cancel a saved-agent run
25
25
  *
26
26
  * @remarks
27
- * Cancels a queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
27
+ * Cancels a waiting or queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
28
28
  */
29
29
  cancelAgentRun(request: operations.CancelAgentRunRequest, options?: RequestOptions): Promise<components.AgentRun>;
30
30
  /**
@@ -21,7 +21,7 @@ export class AgentRuns extends ClientSDK {
21
21
  * Start a saved agent run
22
22
  *
23
23
  * @remarks
24
- * Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress.
24
+ * Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress. When the agent is already running max_concurrent_runs runs, concurrency_overflow decides: reject returns 429 with error code agent_concurrency_limit and creates no run; queue returns 202 with a waiting run that starts when a slot frees.
25
25
  */
26
26
  async createAgentRun(request, options) {
27
27
  return unwrapAsync(agentRunsCreateAgentRun(this, request, options));
@@ -39,7 +39,7 @@ export class AgentRuns extends ClientSDK {
39
39
  * Cancel a saved-agent run
40
40
  *
41
41
  * @remarks
42
- * Cancels a queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
42
+ * Cancels a waiting or queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
43
43
  */
44
44
  async cancelAgentRun(request, options) {
45
45
  return unwrapAsync(agentRunsCancelAgentRun(this, request, options));
@@ -69,7 +69,7 @@ export declare class Models extends ClientSDK {
69
69
  * Check a BYO catalog model's health
70
70
  *
71
71
  * @remarks
72
- * Probes an available BYO definition whether or not it is active.
72
+ * Probes an available BYO definition whether or not it is active. A definition without a health check has nothing to probe and reports `status: unknown`.
73
73
  */
74
74
  checkCatalogHealth(request: operations.CheckModelCatalogHealthRequest, options?: RequestOptions): Promise<components.CatalogHealthResponse>;
75
75
  /**
@@ -118,7 +118,7 @@ export class Models extends ClientSDK {
118
118
  * Check a BYO catalog model's health
119
119
  *
120
120
  * @remarks
121
- * Probes an available BYO definition whether or not it is active.
121
+ * Probes an available BYO definition whether or not it is active. A definition without a health check has nothing to probe and reports `status: unknown`.
122
122
  */
123
123
  async checkCatalogHealth(request, options) {
124
124
  return unwrapAsync(llmModelsCheckCatalogHealth(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@meetkai/mka1",
5
- "version": "0.55.23",
5
+ "version": "0.55.25",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetkai/mka1",
3
- "version": "0.55.23",
3
+ "version": "0.55.25",
4
4
  "author": "MeetKai",
5
5
  "homepage": "https://docs.mka1.com",
6
6
  "publishConfig": {
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Cancel a saved-agent run
32
32
  *
33
33
  * @remarks
34
- * Cancels a queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
34
+ * Cancels a waiting or queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.
35
35
  *
36
36
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
37
37
  */
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Start a saved agent run
32
32
  *
33
33
  * @remarks
34
- * Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress.
34
+ * Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress. When the agent is already running max_concurrent_runs runs, concurrency_overflow decides: reject returns 429 with error code agent_concurrency_limit and creates no run; queue returns 202 with a waiting run that starts when a slot frees.
35
35
  *
36
36
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
37
37
  */
@@ -184,9 +184,9 @@ async function $do(
184
184
  | UnexpectedClientError
185
185
  | SDKValidationError
186
186
  >(
187
- M.json(201, components.AgentRun$inboundSchema),
188
- M.jsonErr([400, 401, 404], errors.ErrorEnvelope$inboundSchema),
189
- M.jsonErr(502, errors.ErrorEnvelope$inboundSchema),
187
+ M.json([201, 202], components.AgentRun$inboundSchema),
188
+ M.jsonErr([400, 401, 404, 429], errors.ErrorEnvelope$inboundSchema),
189
+ M.jsonErr([502, 503], errors.ErrorEnvelope$inboundSchema),
190
190
  M.fail("4XX"),
191
191
  M.fail("5XX"),
192
192
  )(response, req, { extraFields: responseFields });
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Check a BYO catalog model's health
31
31
  *
32
32
  * @remarks
33
- * Probes an available BYO definition whether or not it is active.
33
+ * Probes an available BYO definition whether or not it is active. A definition without a health check has nothing to probe and reports `status: unknown`.
34
34
  *
35
35
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
36
36
  */
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.1.0",
68
- sdkVersion: "0.55.23",
68
+ sdkVersion: "0.55.25",
69
69
  genVersion: "2.950.2",
70
- userAgent: "speakeasy-sdk/typescript 0.55.23 2.950.2 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.55.25 2.950.2 1.1.0 @meetkai/mka1",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.55.23",
22
+ currentVersion: "0.55.25",
23
23
  },
24
24
  });
25
25
 
@@ -515,7 +515,7 @@ export function createMCPServer(deps: {
515
515
  }) {
516
516
  const server = new McpServer({
517
517
  name: "SDK",
518
- version: "0.55.23",
518
+ version: "0.55.25",
519
519
  });
520
520
 
521
521
  const client = new SDKCore({
@@ -14,7 +14,7 @@ export const tool$agentRunsCancelAgentRun: ToolDefinition<typeof args> = {
14
14
  name: "agent-runs-cancel-agent-run",
15
15
  description: `Cancel a saved-agent run
16
16
 
17
- Cancels a queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.`,
17
+ Cancels a waiting or queued run locally before dispatch, or forwards cancellation to its linked gateway response. Locally failed linked runs with an active or missing gateway snapshot are checked upstream before cancellation; genuine terminal work is never relabelled cancelled. Fresh incomplete gateway snapshots are presented as incomplete on subsequent reads while preserving the connector error and completion timestamp, even if cancel returns 409. Repeated cancellation is idempotent. Returns 409 if submission has no linked response yet or a genuine terminal outcome already won. Uses the run's organization, team and delegated-user mutation scope; operator read access does not grant cancellation access. API-key callers also need write:responses for linked cancellation and read:responses to inspect locally failed runs or reconcile a completion race.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await agentRunsCancelAgentRun(
@@ -14,7 +14,7 @@ export const tool$agentRunsCreateAgentRun: ToolDefinition<typeof args> = {
14
14
  name: "agent-runs-create-agent-run",
15
15
  description: `Start a saved agent run
16
16
 
17
- Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress.`,
17
+ Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress. When the agent is already running max_concurrent_runs runs, concurrency_overflow decides: reject returns 429 with error code agent_concurrency_limit and creates no run; queue returns 202 with a waiting run that starts when a slot frees.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await agentRunsCreateAgentRun(
@@ -14,7 +14,7 @@ export const tool$llmModelsCheckCatalogHealth: ToolDefinition<typeof args> = {
14
14
  name: "llm-models-check-catalog-health",
15
15
  description: `Check a BYO catalog model's health
16
16
 
17
- Probes an available BYO definition whether or not it is active.`,
17
+ Probes an available BYO definition whether or not it is active. A definition without a health check has nothing to probe and reports \`status: unknown\`.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await llmModelsCheckCatalogHealth(
@@ -32,6 +32,12 @@ export const AgentObject = {
32
32
  } as const;
33
33
  export type AgentObject = ClosedEnum<typeof AgentObject>;
34
34
 
35
+ export const ConcurrencyOverflow = {
36
+ Reject: "reject",
37
+ Queue: "queue",
38
+ } as const;
39
+ export type ConcurrencyOverflow = ClosedEnum<typeof ConcurrencyOverflow>;
40
+
35
41
  export type Agent = {
36
42
  object: AgentObject;
37
43
  id: string;
@@ -47,6 +53,8 @@ export type Agent = {
47
53
  parallelToolCalls: boolean;
48
54
  maxToolCalls: number | null;
49
55
  fallbackModels: Array<string>;
56
+ maxConcurrentRuns: number | null;
57
+ concurrencyOverflow: ConcurrencyOverflow;
50
58
  text: AgentTextConfiguration | null;
51
59
  reasoning: AgentReasoningConfiguration | null;
52
60
  metadata: { [k: string]: string };
@@ -75,6 +83,15 @@ export const AgentObject$inboundSchema: z.ZodNativeEnum<typeof AgentObject> = z
75
83
  export const AgentObject$outboundSchema: z.ZodNativeEnum<typeof AgentObject> =
76
84
  AgentObject$inboundSchema;
77
85
 
86
+ /** @internal */
87
+ export const ConcurrencyOverflow$inboundSchema: z.ZodNativeEnum<
88
+ typeof ConcurrencyOverflow
89
+ > = z.nativeEnum(ConcurrencyOverflow);
90
+ /** @internal */
91
+ export const ConcurrencyOverflow$outboundSchema: z.ZodNativeEnum<
92
+ typeof ConcurrencyOverflow
93
+ > = ConcurrencyOverflow$inboundSchema;
94
+
78
95
  /** @internal */
79
96
  export const Agent$inboundSchema: z.ZodType<Agent, z.ZodTypeDef, unknown> = z
80
97
  .object({
@@ -89,6 +106,8 @@ export const Agent$inboundSchema: z.ZodType<Agent, z.ZodTypeDef, unknown> = z
89
106
  parallel_tool_calls: z.boolean(),
90
107
  max_tool_calls: z.nullable(z.number().int()),
91
108
  fallback_models: z.array(z.string()),
109
+ max_concurrent_runs: z.nullable(z.number().int()),
110
+ concurrency_overflow: ConcurrencyOverflow$inboundSchema,
92
111
  text: z.nullable(AgentTextConfiguration$inboundSchema),
93
112
  reasoning: z.nullable(AgentReasoningConfiguration$inboundSchema),
94
113
  metadata: z.record(z.string()),
@@ -113,6 +132,8 @@ export const Agent$inboundSchema: z.ZodType<Agent, z.ZodTypeDef, unknown> = z
113
132
  "parallel_tool_calls": "parallelToolCalls",
114
133
  "max_tool_calls": "maxToolCalls",
115
134
  "fallback_models": "fallbackModels",
135
+ "max_concurrent_runs": "maxConcurrentRuns",
136
+ "concurrency_overflow": "concurrencyOverflow",
116
137
  "created_at": "createdAt",
117
138
  "updated_at": "updatedAt",
118
139
  "deleted_at": "deletedAt",
@@ -134,6 +155,8 @@ export type Agent$Outbound = {
134
155
  parallel_tool_calls: boolean;
135
156
  max_tool_calls: number | null;
136
157
  fallback_models: Array<string>;
158
+ max_concurrent_runs: number | null;
159
+ concurrency_overflow: string;
137
160
  text: AgentTextConfiguration$Outbound | null;
138
161
  reasoning: AgentReasoningConfiguration$Outbound | null;
139
162
  metadata: { [k: string]: string };
@@ -163,6 +186,8 @@ export const Agent$outboundSchema: z.ZodType<
163
186
  parallelToolCalls: z.boolean(),
164
187
  maxToolCalls: z.nullable(z.number().int()),
165
188
  fallbackModels: z.array(z.string()),
189
+ maxConcurrentRuns: z.nullable(z.number().int()),
190
+ concurrencyOverflow: ConcurrencyOverflow$outboundSchema,
166
191
  text: z.nullable(AgentTextConfiguration$outboundSchema),
167
192
  reasoning: z.nullable(AgentReasoningConfiguration$outboundSchema),
168
193
  metadata: z.record(z.string()),
@@ -179,6 +204,8 @@ export const Agent$outboundSchema: z.ZodType<
179
204
  parallelToolCalls: "parallel_tool_calls",
180
205
  maxToolCalls: "max_tool_calls",
181
206
  fallbackModels: "fallback_models",
207
+ maxConcurrentRuns: "max_concurrent_runs",
208
+ concurrencyOverflow: "concurrency_overflow",
182
209
  createdAt: "created_at",
183
210
  updatedAt: "updated_at",
184
211
  deletedAt: "deleted_at",
@@ -15,9 +15,10 @@ export const AgentRunObject = {
15
15
  export type AgentRunObject = ClosedEnum<typeof AgentRunObject>;
16
16
 
17
17
  /**
18
- * Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
18
+ * waiting means the run is held for one of the agent's max_concurrent_runs slots and has not been sent to the model; it can be cancelled. Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
19
19
  */
20
20
  export const AgentRunStatus = {
21
+ Waiting: "waiting",
21
22
  Queued: "queued",
22
23
  Submitting: "submitting",
23
24
  Completed: "completed",
@@ -26,7 +27,7 @@ export const AgentRunStatus = {
26
27
  Incomplete: "incomplete",
27
28
  } as const;
28
29
  /**
29
- * Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
30
+ * waiting means the run is held for one of the agent's max_concurrent_runs slots and has not been sent to the model; it can be cancelled. Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
30
31
  */
31
32
  export type AgentRunStatus = ClosedEnum<typeof AgentRunStatus>;
32
33
 
@@ -39,7 +40,7 @@ export type AgentRun = {
39
40
  */
40
41
  agentVersion: number | null;
41
42
  /**
42
- * Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
43
+ * waiting means the run is held for one of the agent's max_concurrent_runs slots and has not been sent to the model; it can be cancelled. Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
43
44
  */
44
45
  status: AgentRunStatus;
45
46
  /**
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Workspace lifetime. conversation (default) keeps files within the same conversation or response chain. Delegated agents inherit their parent's workspace without its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance. Independent top-level responses start fresh.
10
+ */
11
+ export const AgentsSandboxSessionScope = {
12
+ Conversation: "conversation",
13
+ Request: "request",
14
+ } as const;
15
+ /**
16
+ * Workspace lifetime. conversation (default) keeps files within the same conversation or response chain. Delegated agents inherit their parent's workspace without its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance. Independent top-level responses start fresh.
17
+ */
18
+ export type AgentsSandboxSessionScope = ClosedEnum<
19
+ typeof AgentsSandboxSessionScope
20
+ >;
21
+
22
+ /** @internal */
23
+ export const AgentsSandboxSessionScope$inboundSchema: z.ZodNativeEnum<
24
+ typeof AgentsSandboxSessionScope
25
+ > = z.nativeEnum(AgentsSandboxSessionScope);
26
+ /** @internal */
27
+ export const AgentsSandboxSessionScope$outboundSchema: z.ZodNativeEnum<
28
+ typeof AgentsSandboxSessionScope
29
+ > = AgentsSandboxSessionScope$inboundSchema;
@@ -7,10 +7,30 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ CatalogHealthStatus,
12
+ CatalogHealthStatus$inboundSchema,
13
+ CatalogHealthStatus$outboundSchema,
14
+ } from "./cataloghealthstatus.js";
10
15
 
11
16
  export type CatalogHealth = {
17
+ /**
18
+ * Provider health from the latest probe verdict: `available` or `unavailable`. `unknown` when there is no verdict: the definition has no health check, or its check has not run yet or its last verdict expired.
19
+ */
20
+ status: CatalogHealthStatus;
21
+ /**
22
+ * Deprecated: read `status`. False only when `status` is `unavailable`, so it is also true when health is unknown.
23
+ *
24
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
25
+ */
12
26
  isAvailable: boolean;
27
+ /**
28
+ * Epoch ms when the verdict's probe started; null when there is no verdict.
29
+ */
13
30
  lastHealthCheck: number | null;
31
+ /**
32
+ * Why the verdict is unavailable; null when it is available or there is no verdict.
33
+ */
14
34
  error: string | null;
15
35
  };
16
36
 
@@ -20,6 +40,7 @@ export const CatalogHealth$inboundSchema: z.ZodType<
20
40
  z.ZodTypeDef,
21
41
  unknown
22
42
  > = z.object({
43
+ status: CatalogHealthStatus$inboundSchema,
23
44
  is_available: z.boolean(),
24
45
  last_health_check: z.nullable(z.number()),
25
46
  error: z.nullable(z.string()),
@@ -31,6 +52,7 @@ export const CatalogHealth$inboundSchema: z.ZodType<
31
52
  });
32
53
  /** @internal */
33
54
  export type CatalogHealth$Outbound = {
55
+ status: string;
34
56
  is_available: boolean;
35
57
  last_health_check: number | null;
36
58
  error: string | null;
@@ -42,6 +64,7 @@ export const CatalogHealth$outboundSchema: z.ZodType<
42
64
  z.ZodTypeDef,
43
65
  CatalogHealth
44
66
  > = z.object({
67
+ status: CatalogHealthStatus$outboundSchema,
45
68
  isAvailable: z.boolean(),
46
69
  lastHealthCheck: z.nullable(z.number()),
47
70
  error: z.nullable(z.string()),
@@ -7,10 +7,27 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ CatalogHealthStatus,
12
+ CatalogHealthStatus$inboundSchema,
13
+ CatalogHealthStatus$outboundSchema,
14
+ } from "./cataloghealthstatus.js";
10
15
 
11
16
  export type CatalogHealthResponse = {
17
+ /**
18
+ * Provider health from the latest probe verdict: `available` or `unavailable`. `unknown` when there is no verdict: the definition has no health check, or its check has not run yet or its last verdict expired.
19
+ */
20
+ status: CatalogHealthStatus;
21
+ /**
22
+ * Deprecated: read `status`. False only when `status` is `unavailable`, so it is also true when health is unknown.
23
+ *
24
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
25
+ */
12
26
  isAvailable: boolean;
13
27
  error?: string | undefined;
28
+ /**
29
+ * Epoch ms when the probe started. With `status` `unknown` no probe ran, and this is the response time.
30
+ */
14
31
  checkedAt: number;
15
32
  };
16
33
 
@@ -20,6 +37,7 @@ export const CatalogHealthResponse$inboundSchema: z.ZodType<
20
37
  z.ZodTypeDef,
21
38
  unknown
22
39
  > = z.object({
40
+ status: CatalogHealthStatus$inboundSchema,
23
41
  is_available: z.boolean(),
24
42
  error: z.string().optional(),
25
43
  checked_at: z.number(),
@@ -31,6 +49,7 @@ export const CatalogHealthResponse$inboundSchema: z.ZodType<
31
49
  });
32
50
  /** @internal */
33
51
  export type CatalogHealthResponse$Outbound = {
52
+ status: string;
34
53
  is_available: boolean;
35
54
  error?: string | undefined;
36
55
  checked_at: number;
@@ -42,6 +61,7 @@ export const CatalogHealthResponse$outboundSchema: z.ZodType<
42
61
  z.ZodTypeDef,
43
62
  CatalogHealthResponse
44
63
  > = z.object({
64
+ status: CatalogHealthStatus$outboundSchema,
45
65
  isAvailable: z.boolean(),
46
66
  error: z.string().optional(),
47
67
  checkedAt: z.number(),
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Provider health from the latest probe verdict: `available` or `unavailable`. `unknown` when there is no verdict: the definition has no health check, or its check has not run yet or its last verdict expired.
10
+ */
11
+ export const CatalogHealthStatus = {
12
+ Available: "available",
13
+ Unavailable: "unavailable",
14
+ Unknown: "unknown",
15
+ } as const;
16
+ /**
17
+ * Provider health from the latest probe verdict: `available` or `unavailable`. `unknown` when there is no verdict: the definition has no health check, or its check has not run yet or its last verdict expired.
18
+ */
19
+ export type CatalogHealthStatus = ClosedEnum<typeof CatalogHealthStatus>;
20
+
21
+ /** @internal */
22
+ export const CatalogHealthStatus$inboundSchema: z.ZodNativeEnum<
23
+ typeof CatalogHealthStatus
24
+ > = z.nativeEnum(CatalogHealthStatus);
25
+ /** @internal */
26
+ export const CatalogHealthStatus$outboundSchema: z.ZodNativeEnum<
27
+ typeof CatalogHealthStatus
28
+ > = CatalogHealthStatus$inboundSchema;