@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
@@ -0,0 +1,219 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ MemoryStoreMount,
12
+ MemoryStoreMount$inboundSchema,
13
+ MemoryStoreMount$Outbound,
14
+ MemoryStoreMount$outboundSchema,
15
+ } from "./memorystoremount.js";
16
+ import {
17
+ ShellEnvironmentContainerAuto,
18
+ ShellEnvironmentContainerAuto$inboundSchema,
19
+ ShellEnvironmentContainerAuto$Outbound,
20
+ ShellEnvironmentContainerAuto$outboundSchema,
21
+ } from "./shellenvironmentcontainerauto.js";
22
+ import {
23
+ ShellNetworkPolicy,
24
+ ShellNetworkPolicy$inboundSchema,
25
+ ShellNetworkPolicy$Outbound,
26
+ ShellNetworkPolicy$outboundSchema,
27
+ } from "./shellnetworkpolicy.js";
28
+ import {
29
+ SkillEntry,
30
+ SkillEntry$inboundSchema,
31
+ SkillEntry$Outbound,
32
+ SkillEntry$outboundSchema,
33
+ } from "./skillentry.js";
34
+
35
+ export type Environment2 = {
36
+ type: "container_reference";
37
+ /**
38
+ * ID of an existing container to reuse.
39
+ */
40
+ containerId: string;
41
+ networkPolicy?: ShellNetworkPolicy | undefined;
42
+ /**
43
+ * Skills to inject into the container's /skills directory.
44
+ */
45
+ skills?: Array<SkillEntry> | undefined;
46
+ /**
47
+ * Memory stores to mount into the container under /mnt/memory.
48
+ */
49
+ memoryStores?: Array<MemoryStoreMount> | undefined;
50
+ /**
51
+ * Must be omitted when referencing an existing container.
52
+ */
53
+ sessionScope?: any | undefined;
54
+ };
55
+
56
+ /**
57
+ * Container environment configuration. Defaults to container_auto.
58
+ */
59
+ export type Environment = ShellEnvironmentContainerAuto | Environment2;
60
+
61
+ export type ShellToolRequest = {
62
+ type: "shell";
63
+ /**
64
+ * Container environment configuration. Defaults to container_auto.
65
+ */
66
+ environment?: ShellEnvironmentContainerAuto | Environment2 | undefined;
67
+ };
68
+
69
+ /** @internal */
70
+ export const Environment2$inboundSchema: z.ZodType<
71
+ Environment2,
72
+ z.ZodTypeDef,
73
+ unknown
74
+ > = z.object({
75
+ type: z.literal("container_reference"),
76
+ container_id: z.string(),
77
+ network_policy: ShellNetworkPolicy$inboundSchema.optional(),
78
+ skills: z.array(SkillEntry$inboundSchema).optional(),
79
+ memory_stores: z.array(MemoryStoreMount$inboundSchema).optional(),
80
+ session_scope: z.any().optional(),
81
+ }).transform((v) => {
82
+ return remap$(v, {
83
+ "container_id": "containerId",
84
+ "network_policy": "networkPolicy",
85
+ "memory_stores": "memoryStores",
86
+ "session_scope": "sessionScope",
87
+ });
88
+ });
89
+ /** @internal */
90
+ export type Environment2$Outbound = {
91
+ type: "container_reference";
92
+ container_id: string;
93
+ network_policy?: ShellNetworkPolicy$Outbound | undefined;
94
+ skills?: Array<SkillEntry$Outbound> | undefined;
95
+ memory_stores?: Array<MemoryStoreMount$Outbound> | undefined;
96
+ session_scope?: any | undefined;
97
+ };
98
+
99
+ /** @internal */
100
+ export const Environment2$outboundSchema: z.ZodType<
101
+ Environment2$Outbound,
102
+ z.ZodTypeDef,
103
+ Environment2
104
+ > = z.object({
105
+ type: z.literal("container_reference"),
106
+ containerId: z.string(),
107
+ networkPolicy: ShellNetworkPolicy$outboundSchema.optional(),
108
+ skills: z.array(SkillEntry$outboundSchema).optional(),
109
+ memoryStores: z.array(MemoryStoreMount$outboundSchema).optional(),
110
+ sessionScope: z.any().optional(),
111
+ }).transform((v) => {
112
+ return remap$(v, {
113
+ containerId: "container_id",
114
+ networkPolicy: "network_policy",
115
+ memoryStores: "memory_stores",
116
+ sessionScope: "session_scope",
117
+ });
118
+ });
119
+
120
+ export function environment2ToJSON(environment2: Environment2): string {
121
+ return JSON.stringify(Environment2$outboundSchema.parse(environment2));
122
+ }
123
+ export function environment2FromJSON(
124
+ jsonString: string,
125
+ ): SafeParseResult<Environment2, SDKValidationError> {
126
+ return safeParse(
127
+ jsonString,
128
+ (x) => Environment2$inboundSchema.parse(JSON.parse(x)),
129
+ `Failed to parse 'Environment2' from JSON`,
130
+ );
131
+ }
132
+
133
+ /** @internal */
134
+ export const Environment$inboundSchema: z.ZodType<
135
+ Environment,
136
+ z.ZodTypeDef,
137
+ unknown
138
+ > = z.union([
139
+ ShellEnvironmentContainerAuto$inboundSchema,
140
+ z.lazy(() => Environment2$inboundSchema),
141
+ ]);
142
+ /** @internal */
143
+ export type Environment$Outbound =
144
+ | ShellEnvironmentContainerAuto$Outbound
145
+ | Environment2$Outbound;
146
+
147
+ /** @internal */
148
+ export const Environment$outboundSchema: z.ZodType<
149
+ Environment$Outbound,
150
+ z.ZodTypeDef,
151
+ Environment
152
+ > = z.union([
153
+ ShellEnvironmentContainerAuto$outboundSchema,
154
+ z.lazy(() => Environment2$outboundSchema),
155
+ ]);
156
+
157
+ export function environmentToJSON(environment: Environment): string {
158
+ return JSON.stringify(Environment$outboundSchema.parse(environment));
159
+ }
160
+ export function environmentFromJSON(
161
+ jsonString: string,
162
+ ): SafeParseResult<Environment, SDKValidationError> {
163
+ return safeParse(
164
+ jsonString,
165
+ (x) => Environment$inboundSchema.parse(JSON.parse(x)),
166
+ `Failed to parse 'Environment' from JSON`,
167
+ );
168
+ }
169
+
170
+ /** @internal */
171
+ export const ShellToolRequest$inboundSchema: z.ZodType<
172
+ ShellToolRequest,
173
+ z.ZodTypeDef,
174
+ unknown
175
+ > = z.object({
176
+ type: z.literal("shell"),
177
+ environment: z.union([
178
+ ShellEnvironmentContainerAuto$inboundSchema,
179
+ z.lazy(() => Environment2$inboundSchema),
180
+ ]).optional(),
181
+ });
182
+ /** @internal */
183
+ export type ShellToolRequest$Outbound = {
184
+ type: "shell";
185
+ environment?:
186
+ | ShellEnvironmentContainerAuto$Outbound
187
+ | Environment2$Outbound
188
+ | undefined;
189
+ };
190
+
191
+ /** @internal */
192
+ export const ShellToolRequest$outboundSchema: z.ZodType<
193
+ ShellToolRequest$Outbound,
194
+ z.ZodTypeDef,
195
+ ShellToolRequest
196
+ > = z.object({
197
+ type: z.literal("shell"),
198
+ environment: z.union([
199
+ ShellEnvironmentContainerAuto$outboundSchema,
200
+ z.lazy(() => Environment2$outboundSchema),
201
+ ]).optional(),
202
+ });
203
+
204
+ export function shellToolRequestToJSON(
205
+ shellToolRequest: ShellToolRequest,
206
+ ): string {
207
+ return JSON.stringify(
208
+ ShellToolRequest$outboundSchema.parse(shellToolRequest),
209
+ );
210
+ }
211
+ export function shellToolRequestFromJSON(
212
+ jsonString: string,
213
+ ): SafeParseResult<ShellToolRequest, SDKValidationError> {
214
+ return safeParse(
215
+ jsonString,
216
+ (x) => ShellToolRequest$inboundSchema.parse(JSON.parse(x)),
217
+ `Failed to parse 'ShellToolRequest' from JSON`,
218
+ );
219
+ }
@@ -10,6 +10,11 @@ import { discriminatedUnion } from "../../types/discriminatedUnion.js";
10
10
  import { ClosedEnum } from "../../types/enums.js";
11
11
  import { Result as SafeParseResult } from "../../types/fp.js";
12
12
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
+ import {
14
+ AgentsSandboxSessionScope,
15
+ AgentsSandboxSessionScope$inboundSchema,
16
+ AgentsSandboxSessionScope$outboundSchema,
17
+ } from "./agentssandboxsessionscope.js";
13
18
  import {
14
19
  FileSearchComparisonFilter,
15
20
  FileSearchComparisonFilter$inboundSchema,
@@ -34,11 +39,6 @@ import {
34
39
  MCPToolFilter$Outbound,
35
40
  MCPToolFilter$outboundSchema,
36
41
  } from "./mcptoolfilter.js";
37
- import {
38
- SandboxSessionScope,
39
- SandboxSessionScope$inboundSchema,
40
- SandboxSessionScope$outboundSchema,
41
- } from "./sandboxsessionscope.js";
42
42
 
43
43
  export const ToolDefinition10Type = {
44
44
  Shell: "shell",
@@ -61,7 +61,7 @@ export type EnvironmentMemoryStores = {
61
61
  instructions?: string | undefined;
62
62
  };
63
63
 
64
- export type Environment2 = {
64
+ export type ToolDefinitionEnvironment2 = {
65
65
  type: "container_reference";
66
66
  containerId: string;
67
67
  /**
@@ -91,7 +91,7 @@ export type Environment1 = {
91
91
  /**
92
92
  * 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.
93
93
  */
94
- sessionScope?: SandboxSessionScope | undefined;
94
+ sessionScope?: AgentsSandboxSessionScope | undefined;
95
95
  /**
96
96
  * Arbitrary JSON value.
97
97
  */
@@ -100,16 +100,16 @@ export type Environment1 = {
100
100
  memoryStores?: Array<MemoryStores> | undefined;
101
101
  };
102
102
 
103
- export type Environment =
103
+ export type ToolDefinitionEnvironment =
104
104
  | Environment1
105
- | Environment2
105
+ | ToolDefinitionEnvironment2
106
106
  | discriminatedUnionTypes.Unknown<"type">;
107
107
 
108
108
  export type Ten = {
109
109
  type: ToolDefinition10Type;
110
110
  environment?:
111
111
  | Environment1
112
- | Environment2
112
+ | ToolDefinitionEnvironment2
113
113
  | discriminatedUnionTypes.Unknown<"type">
114
114
  | undefined;
115
115
  };
@@ -162,7 +162,7 @@ export type ToolDefinitionContainer2 = {
162
162
  /**
163
163
  * 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.
164
164
  */
165
- sessionScope?: SandboxSessionScope | undefined;
165
+ sessionScope?: AgentsSandboxSessionScope | undefined;
166
166
  fileIds?: Array<string> | null | undefined;
167
167
  memoryLimit?: ToolDefinitionContainerMemoryLimit | null | undefined;
168
168
  };
@@ -446,8 +446,8 @@ export function environmentMemoryStoresFromJSON(
446
446
  }
447
447
 
448
448
  /** @internal */
449
- export const Environment2$inboundSchema: z.ZodType<
450
- Environment2,
449
+ export const ToolDefinitionEnvironment2$inboundSchema: z.ZodType<
450
+ ToolDefinitionEnvironment2,
451
451
  z.ZodTypeDef,
452
452
  unknown
453
453
  > = z.object({
@@ -465,7 +465,7 @@ export const Environment2$inboundSchema: z.ZodType<
465
465
  });
466
466
  });
467
467
  /** @internal */
468
- export type Environment2$Outbound = {
468
+ export type ToolDefinitionEnvironment2$Outbound = {
469
469
  type: "container_reference";
470
470
  container_id: string;
471
471
  network_policy?: any | undefined;
@@ -474,10 +474,10 @@ export type Environment2$Outbound = {
474
474
  };
475
475
 
476
476
  /** @internal */
477
- export const Environment2$outboundSchema: z.ZodType<
478
- Environment2$Outbound,
477
+ export const ToolDefinitionEnvironment2$outboundSchema: z.ZodType<
478
+ ToolDefinitionEnvironment2$Outbound,
479
479
  z.ZodTypeDef,
480
- Environment2
480
+ ToolDefinitionEnvironment2
481
481
  > = z.object({
482
482
  type: z.literal("container_reference"),
483
483
  containerId: z.string(),
@@ -493,16 +493,20 @@ export const Environment2$outboundSchema: z.ZodType<
493
493
  });
494
494
  });
495
495
 
496
- export function environment2ToJSON(environment2: Environment2): string {
497
- return JSON.stringify(Environment2$outboundSchema.parse(environment2));
496
+ export function toolDefinitionEnvironment2ToJSON(
497
+ toolDefinitionEnvironment2: ToolDefinitionEnvironment2,
498
+ ): string {
499
+ return JSON.stringify(
500
+ ToolDefinitionEnvironment2$outboundSchema.parse(toolDefinitionEnvironment2),
501
+ );
498
502
  }
499
- export function environment2FromJSON(
503
+ export function toolDefinitionEnvironment2FromJSON(
500
504
  jsonString: string,
501
- ): SafeParseResult<Environment2, SDKValidationError> {
505
+ ): SafeParseResult<ToolDefinitionEnvironment2, SDKValidationError> {
502
506
  return safeParse(
503
507
  jsonString,
504
- (x) => Environment2$inboundSchema.parse(JSON.parse(x)),
505
- `Failed to parse 'Environment2' from JSON`,
508
+ (x) => ToolDefinitionEnvironment2$inboundSchema.parse(JSON.parse(x)),
509
+ `Failed to parse 'ToolDefinitionEnvironment2' from JSON`,
506
510
  );
507
511
  }
508
512
 
@@ -577,7 +581,7 @@ export const Environment1$inboundSchema: z.ZodType<
577
581
  unknown
578
582
  > = z.object({
579
583
  type: z.literal("container_auto"),
580
- session_scope: SandboxSessionScope$inboundSchema.optional(),
584
+ session_scope: AgentsSandboxSessionScope$inboundSchema.optional(),
581
585
  network_policy: z.any().optional(),
582
586
  skills: z.array(z.any()).optional(),
583
587
  memory_stores: z.array(z.lazy(() => MemoryStores$inboundSchema)).optional(),
@@ -604,7 +608,7 @@ export const Environment1$outboundSchema: z.ZodType<
604
608
  Environment1
605
609
  > = z.object({
606
610
  type: z.literal("container_auto"),
607
- sessionScope: SandboxSessionScope$outboundSchema.optional(),
611
+ sessionScope: AgentsSandboxSessionScope$outboundSchema.optional(),
608
612
  networkPolicy: z.any().optional(),
609
613
  skills: z.array(z.any()).optional(),
610
614
  memoryStores: z.array(z.lazy(() => MemoryStores$outboundSchema)).optional(),
@@ -630,39 +634,43 @@ export function environment1FromJSON(
630
634
  }
631
635
 
632
636
  /** @internal */
633
- export const Environment$inboundSchema: z.ZodType<
634
- Environment,
637
+ export const ToolDefinitionEnvironment$inboundSchema: z.ZodType<
638
+ ToolDefinitionEnvironment,
635
639
  z.ZodTypeDef,
636
640
  unknown
637
641
  > = discriminatedUnion("type", {
638
642
  container_auto: z.lazy(() => Environment1$inboundSchema),
639
- container_reference: z.lazy(() => Environment2$inboundSchema),
643
+ container_reference: z.lazy(() => ToolDefinitionEnvironment2$inboundSchema),
640
644
  });
641
645
  /** @internal */
642
- export type Environment$Outbound =
646
+ export type ToolDefinitionEnvironment$Outbound =
643
647
  | Environment1$Outbound
644
- | Environment2$Outbound;
648
+ | ToolDefinitionEnvironment2$Outbound;
645
649
 
646
650
  /** @internal */
647
- export const Environment$outboundSchema: z.ZodType<
648
- Environment$Outbound,
651
+ export const ToolDefinitionEnvironment$outboundSchema: z.ZodType<
652
+ ToolDefinitionEnvironment$Outbound,
649
653
  z.ZodTypeDef,
650
- Environment
654
+ ToolDefinitionEnvironment
651
655
  > = z.union([
652
656
  z.lazy(() => Environment1$outboundSchema),
653
- z.lazy(() => Environment2$outboundSchema),
657
+ z.lazy(() => ToolDefinitionEnvironment2$outboundSchema),
654
658
  ]);
655
659
 
656
- export function environmentToJSON(environment: Environment): string {
657
- return JSON.stringify(Environment$outboundSchema.parse(environment));
660
+ export function toolDefinitionEnvironmentToJSON(
661
+ toolDefinitionEnvironment: ToolDefinitionEnvironment,
662
+ ): string {
663
+ return JSON.stringify(
664
+ ToolDefinitionEnvironment$outboundSchema.parse(toolDefinitionEnvironment),
665
+ );
658
666
  }
659
- export function environmentFromJSON(
667
+ export function toolDefinitionEnvironmentFromJSON(
660
668
  jsonString: string,
661
- ): SafeParseResult<Environment, SDKValidationError> {
669
+ ): SafeParseResult<ToolDefinitionEnvironment, SDKValidationError> {
662
670
  return safeParse(
663
671
  jsonString,
664
- (x) => Environment$inboundSchema.parse(JSON.parse(x)),
665
- `Failed to parse 'Environment' from JSON`,
672
+ (x) => ToolDefinitionEnvironment$inboundSchema.parse(JSON.parse(x)),
673
+ `Failed to parse 'ToolDefinitionEnvironment' from JSON`,
666
674
  );
667
675
  }
668
676
 
@@ -672,13 +680,18 @@ export const Ten$inboundSchema: z.ZodType<Ten, z.ZodTypeDef, unknown> = z
672
680
  type: ToolDefinition10Type$inboundSchema,
673
681
  environment: discriminatedUnion("type", {
674
682
  container_auto: z.lazy(() => Environment1$inboundSchema),
675
- container_reference: z.lazy(() => Environment2$inboundSchema),
683
+ container_reference: z.lazy(() =>
684
+ ToolDefinitionEnvironment2$inboundSchema
685
+ ),
676
686
  }).optional(),
677
687
  });
678
688
  /** @internal */
679
689
  export type Ten$Outbound = {
680
690
  type: string;
681
- environment?: Environment1$Outbound | Environment2$Outbound | undefined;
691
+ environment?:
692
+ | Environment1$Outbound
693
+ | ToolDefinitionEnvironment2$Outbound
694
+ | undefined;
682
695
  };
683
696
 
684
697
  /** @internal */
@@ -687,7 +700,7 @@ export const Ten$outboundSchema: z.ZodType<Ten$Outbound, z.ZodTypeDef, Ten> = z
687
700
  type: ToolDefinition10Type$outboundSchema,
688
701
  environment: z.union([
689
702
  z.lazy(() => Environment1$outboundSchema),
690
- z.lazy(() => Environment2$outboundSchema),
703
+ z.lazy(() => ToolDefinitionEnvironment2$outboundSchema),
691
704
  ]).optional(),
692
705
  });
693
706
 
@@ -834,7 +847,7 @@ export const ToolDefinitionContainer2$inboundSchema: z.ZodType<
834
847
  unknown
835
848
  > = z.object({
836
849
  type: ContainerType$inboundSchema,
837
- session_scope: SandboxSessionScope$inboundSchema.optional(),
850
+ session_scope: AgentsSandboxSessionScope$inboundSchema.optional(),
838
851
  file_ids: z.nullable(z.array(z.string())).optional(),
839
852
  memory_limit: z.nullable(ToolDefinitionContainerMemoryLimit$inboundSchema)
840
853
  .optional(),
@@ -860,7 +873,7 @@ export const ToolDefinitionContainer2$outboundSchema: z.ZodType<
860
873
  ToolDefinitionContainer2
861
874
  > = z.object({
862
875
  type: ContainerType$outboundSchema,
863
- sessionScope: SandboxSessionScope$outboundSchema.optional(),
876
+ sessionScope: AgentsSandboxSessionScope$outboundSchema.optional(),
864
877
  fileIds: z.nullable(z.array(z.string())).optional(),
865
878
  memoryLimit: z.nullable(ToolDefinitionContainerMemoryLimit$outboundSchema)
866
879
  .optional(),
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -26,6 +27,20 @@ import {
26
27
  ToolDefinition$outboundSchema,
27
28
  } from "./tooldefinition.js";
28
29
 
30
+ /**
31
+ * 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.
32
+ */
33
+ export const UpdateAgentRequestConcurrencyOverflow = {
34
+ Reject: "reject",
35
+ Queue: "queue",
36
+ } as const;
37
+ /**
38
+ * 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.
39
+ */
40
+ export type UpdateAgentRequestConcurrencyOverflow = ClosedEnum<
41
+ typeof UpdateAgentRequestConcurrencyOverflow
42
+ >;
43
+
29
44
  /**
30
45
  * Updates only provided fields. Omitted fields preserve their saved values; empty updates are rejected.
31
46
  */
@@ -45,11 +60,29 @@ export type UpdateAgentRequest = {
45
60
  * Ordered chain of model IDs the gateway tries when a model call fails on the model before it; forwarded unchanged to the Responses API, which validates it. Empty (the default) means the run keeps the gateway's own fallback rules for the model.
46
61
  */
47
62
  fallbackModels?: Array<string> | undefined;
63
+ /**
64
+ * Most runs of this agent that may execute at once. Null (the default) means no limit. Not part of the versioned configuration: a rollback keeps the current limit, and changing only this field or concurrency_overflow creates no new version.
65
+ */
66
+ maxConcurrentRuns?: number | null | undefined;
67
+ /**
68
+ * 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.
69
+ */
70
+ concurrencyOverflow?: UpdateAgentRequestConcurrencyOverflow | undefined;
48
71
  text?: AgentTextConfiguration | null | undefined;
49
72
  reasoning?: AgentReasoningConfiguration | null | undefined;
50
73
  metadata?: { [k: string]: string } | undefined;
51
74
  };
52
75
 
76
+ /** @internal */
77
+ export const UpdateAgentRequestConcurrencyOverflow$inboundSchema:
78
+ z.ZodNativeEnum<typeof UpdateAgentRequestConcurrencyOverflow> = z.nativeEnum(
79
+ UpdateAgentRequestConcurrencyOverflow,
80
+ );
81
+ /** @internal */
82
+ export const UpdateAgentRequestConcurrencyOverflow$outboundSchema:
83
+ z.ZodNativeEnum<typeof UpdateAgentRequestConcurrencyOverflow> =
84
+ UpdateAgentRequestConcurrencyOverflow$inboundSchema;
85
+
53
86
  /** @internal */
54
87
  export const UpdateAgentRequest$inboundSchema: z.ZodType<
55
88
  UpdateAgentRequest,
@@ -65,6 +98,9 @@ export const UpdateAgentRequest$inboundSchema: z.ZodType<
65
98
  parallel_tool_calls: z.boolean().optional(),
66
99
  max_tool_calls: z.nullable(z.number().int()).optional(),
67
100
  fallback_models: z.array(z.string()).optional(),
101
+ max_concurrent_runs: z.nullable(z.number().int()).optional(),
102
+ concurrency_overflow: UpdateAgentRequestConcurrencyOverflow$inboundSchema
103
+ .optional(),
68
104
  text: z.nullable(AgentTextConfiguration$inboundSchema).optional(),
69
105
  reasoning: z.nullable(AgentReasoningConfiguration$inboundSchema).optional(),
70
106
  metadata: z.record(z.string()).optional(),
@@ -74,6 +110,8 @@ export const UpdateAgentRequest$inboundSchema: z.ZodType<
74
110
  "parallel_tool_calls": "parallelToolCalls",
75
111
  "max_tool_calls": "maxToolCalls",
76
112
  "fallback_models": "fallbackModels",
113
+ "max_concurrent_runs": "maxConcurrentRuns",
114
+ "concurrency_overflow": "concurrencyOverflow",
77
115
  });
78
116
  });
79
117
  /** @internal */
@@ -87,6 +125,8 @@ export type UpdateAgentRequest$Outbound = {
87
125
  parallel_tool_calls?: boolean | undefined;
88
126
  max_tool_calls?: number | null | undefined;
89
127
  fallback_models?: Array<string> | undefined;
128
+ max_concurrent_runs?: number | null | undefined;
129
+ concurrency_overflow?: string | undefined;
90
130
  text?: AgentTextConfiguration$Outbound | null | undefined;
91
131
  reasoning?: AgentReasoningConfiguration$Outbound | null | undefined;
92
132
  metadata?: { [k: string]: string } | undefined;
@@ -107,6 +147,9 @@ export const UpdateAgentRequest$outboundSchema: z.ZodType<
107
147
  parallelToolCalls: z.boolean().optional(),
108
148
  maxToolCalls: z.nullable(z.number().int()).optional(),
109
149
  fallbackModels: z.array(z.string()).optional(),
150
+ maxConcurrentRuns: z.nullable(z.number().int()).optional(),
151
+ concurrencyOverflow: UpdateAgentRequestConcurrencyOverflow$outboundSchema
152
+ .optional(),
110
153
  text: z.nullable(AgentTextConfiguration$outboundSchema).optional(),
111
154
  reasoning: z.nullable(AgentReasoningConfiguration$outboundSchema).optional(),
112
155
  metadata: z.record(z.string()).optional(),
@@ -116,6 +159,8 @@ export const UpdateAgentRequest$outboundSchema: z.ZodType<
116
159
  parallelToolCalls: "parallel_tool_calls",
117
160
  maxToolCalls: "max_tool_calls",
118
161
  fallbackModels: "fallback_models",
162
+ maxConcurrentRuns: "max_concurrent_runs",
163
+ concurrencyOverflow: "concurrency_overflow",
119
164
  });
120
165
  });
121
166
 
@@ -50,7 +50,7 @@ export type AgentRunsCancelAgentRunMutationError =
50
50
  * Cancel a saved-agent run
51
51
  *
52
52
  * @remarks
53
- * 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.
53
+ * 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.
54
54
  */
55
55
  export function useAgentRunsCancelAgentRunMutation(
56
56
  options?: MutationHookOptions<
@@ -50,7 +50,7 @@ export type AgentRunsCreateAgentRunMutationError =
50
50
  * Start a saved agent run
51
51
  *
52
52
  * @remarks
53
- * 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.
53
+ * 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.
54
54
  */
55
55
  export function useAgentRunsCreateAgentRunMutation(
56
56
  options?: MutationHookOptions<
@@ -49,7 +49,7 @@ export type LlmModelsCheckCatalogHealthMutationError =
49
49
  * Check a BYO catalog model's health
50
50
  *
51
51
  * @remarks
52
- * Probes an available BYO definition whether or not it is active.
52
+ * 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`.
53
53
  */
54
54
  export function useLlmModelsCheckCatalogHealthMutation(
55
55
  options?: MutationHookOptions<
@@ -33,7 +33,7 @@ export class AgentRuns extends ClientSDK {
33
33
  * Start a saved agent run
34
34
  *
35
35
  * @remarks
36
- * 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.
36
+ * 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.
37
37
  */
38
38
  async createAgentRun(
39
39
  request: operations.CreateAgentRunRequest,
@@ -67,7 +67,7 @@ export class AgentRuns extends ClientSDK {
67
67
  * Cancel a saved-agent run
68
68
  *
69
69
  * @remarks
70
- * 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.
70
+ * 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.
71
71
  */
72
72
  async cancelAgentRun(
73
73
  request: operations.CancelAgentRunRequest,
package/src/sdk/models.ts CHANGED
@@ -192,7 +192,7 @@ export class Models extends ClientSDK {
192
192
  * Check a BYO catalog model's health
193
193
  *
194
194
  * @remarks
195
- * Probes an available BYO definition whether or not it is active.
195
+ * 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`.
196
196
  */
197
197
  async checkCatalogHealth(
198
198
  request: operations.CheckModelCatalogHealthRequest,