@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.
- package/bin/mcp-server.js +242 -87
- package/bin/mcp-server.js.map +32 -29
- package/dist/commonjs/funcs/agentRunsCancelAgentRun.d.ts +1 -1
- package/dist/commonjs/funcs/agentRunsCancelAgentRun.js +1 -1
- package/dist/commonjs/funcs/agentRunsCreateAgentRun.d.ts +1 -1
- package/dist/commonjs/funcs/agentRunsCreateAgentRun.js +2 -2
- package/dist/commonjs/funcs/agentRunsCreateAgentRun.js.map +1 -1
- package/dist/commonjs/funcs/llmModelsCheckCatalogHealth.d.ts +1 -1
- package/dist/commonjs/funcs/llmModelsCheckCatalogHealth.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentRunsCancelAgentRun.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentRunsCancelAgentRun.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/agentRunsCreateAgentRun.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentRunsCreateAgentRun.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmModelsCheckCatalogHealth.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmModelsCheckCatalogHealth.js.map +1 -1
- package/dist/commonjs/models/components/agent.d.ts +13 -0
- package/dist/commonjs/models/components/agent.d.ts.map +1 -1
- package/dist/commonjs/models/components/agent.js +17 -1
- package/dist/commonjs/models/components/agent.js.map +1 -1
- package/dist/commonjs/models/components/agentrun.d.ts +4 -3
- package/dist/commonjs/models/components/agentrun.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentrun.js +2 -1
- package/dist/commonjs/models/components/agentrun.js.map +1 -1
- package/dist/commonjs/models/components/agentssandboxsessionscope.d.ts +18 -0
- package/dist/commonjs/models/components/agentssandboxsessionscope.d.ts.map +1 -0
- package/dist/commonjs/models/components/agentssandboxsessionscope.js +52 -0
- package/dist/commonjs/models/components/agentssandboxsessionscope.js.map +1 -0
- package/dist/commonjs/models/components/cataloghealth.d.ts +17 -0
- package/dist/commonjs/models/components/cataloghealth.d.ts.map +1 -1
- package/dist/commonjs/models/components/cataloghealth.js +3 -0
- package/dist/commonjs/models/components/cataloghealth.js.map +1 -1
- package/dist/commonjs/models/components/cataloghealthresponse.d.ts +14 -0
- package/dist/commonjs/models/components/cataloghealthresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/cataloghealthresponse.js +3 -0
- package/dist/commonjs/models/components/cataloghealthresponse.js.map +1 -1
- package/dist/commonjs/models/components/cataloghealthstatus.d.ts +19 -0
- package/dist/commonjs/models/components/cataloghealthstatus.d.ts.map +1 -0
- package/dist/commonjs/models/components/cataloghealthstatus.js +53 -0
- package/dist/commonjs/models/components/cataloghealthstatus.js.map +1 -0
- package/dist/commonjs/models/components/codeinterpretercontainerauto.d.ts +6 -0
- package/dist/commonjs/models/components/codeinterpretercontainerauto.d.ts.map +1 -1
- package/dist/commonjs/models/components/codeinterpretercontainerauto.js +5 -0
- package/dist/commonjs/models/components/codeinterpretercontainerauto.js.map +1 -1
- package/dist/commonjs/models/components/codeinterpretertoolrequest.d.ts +6 -0
- package/dist/commonjs/models/components/codeinterpretertoolrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/codeinterpretertoolrequest.js +5 -0
- package/dist/commonjs/models/components/codeinterpretertoolrequest.js.map +1 -1
- package/dist/commonjs/models/components/createagentrequest.d.ts +26 -0
- package/dist/commonjs/models/components/createagentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createagentrequest.js +22 -1
- package/dist/commonjs/models/components/createagentrequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/livekittokenrequest.d.ts +6 -6
- package/dist/commonjs/models/components/livekittokenrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/livekittokenrequest.js +5 -5
- package/dist/commonjs/models/components/livekittokenrequest.js.map +1 -1
- package/dist/commonjs/models/components/responsescreaterequest.d.ts +6 -6
- package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/responsescreaterequest.js +5 -5
- package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
- package/dist/commonjs/models/components/sandboxsessionscope.d.ts +2 -2
- package/dist/commonjs/models/components/sandboxsessionscope.js +1 -1
- package/dist/commonjs/models/components/shellenvironmentcontainerauto.d.ts +6 -0
- package/dist/commonjs/models/components/shellenvironmentcontainerauto.d.ts.map +1 -1
- package/dist/commonjs/models/components/shellenvironmentcontainerauto.js +5 -0
- package/dist/commonjs/models/components/shellenvironmentcontainerauto.js.map +1 -1
- package/dist/commonjs/models/components/shelltoolrequest.d.ts +73 -0
- package/dist/commonjs/models/components/shelltoolrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/shelltoolrequest.js +129 -0
- package/dist/commonjs/models/components/shelltoolrequest.js.map +1 -0
- package/dist/commonjs/models/components/tooldefinition.d.ts +17 -17
- package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.js +26 -26
- package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
- package/dist/commonjs/models/components/updateagentrequest.d.ts +26 -0
- package/dist/commonjs/models/components/updateagentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updateagentrequest.js +22 -1
- package/dist/commonjs/models/components/updateagentrequest.js.map +1 -1
- package/dist/commonjs/react-query/agentRunsCancelAgentRun.d.ts +1 -1
- package/dist/commonjs/react-query/agentRunsCancelAgentRun.js +1 -1
- package/dist/commonjs/react-query/agentRunsCreateAgentRun.d.ts +1 -1
- package/dist/commonjs/react-query/agentRunsCreateAgentRun.js +1 -1
- package/dist/commonjs/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
- package/dist/commonjs/react-query/llmModelsCheckCatalogHealth.js +1 -1
- package/dist/commonjs/sdk/agentruns.d.ts +2 -2
- package/dist/commonjs/sdk/agentruns.js +2 -2
- package/dist/commonjs/sdk/models.d.ts +1 -1
- package/dist/commonjs/sdk/models.js +1 -1
- package/dist/esm/funcs/agentRunsCancelAgentRun.d.ts +1 -1
- package/dist/esm/funcs/agentRunsCancelAgentRun.js +1 -1
- package/dist/esm/funcs/agentRunsCreateAgentRun.d.ts +1 -1
- package/dist/esm/funcs/agentRunsCreateAgentRun.js +2 -2
- package/dist/esm/funcs/agentRunsCreateAgentRun.js.map +1 -1
- package/dist/esm/funcs/llmModelsCheckCatalogHealth.d.ts +1 -1
- package/dist/esm/funcs/llmModelsCheckCatalogHealth.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/agentRunsCancelAgentRun.js +1 -1
- package/dist/esm/mcp-server/tools/agentRunsCancelAgentRun.js.map +1 -1
- package/dist/esm/mcp-server/tools/agentRunsCreateAgentRun.js +1 -1
- package/dist/esm/mcp-server/tools/agentRunsCreateAgentRun.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmModelsCheckCatalogHealth.js +1 -1
- package/dist/esm/mcp-server/tools/llmModelsCheckCatalogHealth.js.map +1 -1
- package/dist/esm/models/components/agent.d.ts +13 -0
- package/dist/esm/models/components/agent.d.ts.map +1 -1
- package/dist/esm/models/components/agent.js +16 -0
- package/dist/esm/models/components/agent.js.map +1 -1
- package/dist/esm/models/components/agentrun.d.ts +4 -3
- package/dist/esm/models/components/agentrun.d.ts.map +1 -1
- package/dist/esm/models/components/agentrun.js +2 -1
- package/dist/esm/models/components/agentrun.js.map +1 -1
- package/dist/esm/models/components/agentssandboxsessionscope.d.ts +18 -0
- package/dist/esm/models/components/agentssandboxsessionscope.d.ts.map +1 -0
- package/dist/esm/models/components/agentssandboxsessionscope.js +16 -0
- package/dist/esm/models/components/agentssandboxsessionscope.js.map +1 -0
- package/dist/esm/models/components/cataloghealth.d.ts +17 -0
- package/dist/esm/models/components/cataloghealth.d.ts.map +1 -1
- package/dist/esm/models/components/cataloghealth.js +3 -0
- package/dist/esm/models/components/cataloghealth.js.map +1 -1
- package/dist/esm/models/components/cataloghealthresponse.d.ts +14 -0
- package/dist/esm/models/components/cataloghealthresponse.d.ts.map +1 -1
- package/dist/esm/models/components/cataloghealthresponse.js +3 -0
- package/dist/esm/models/components/cataloghealthresponse.js.map +1 -1
- package/dist/esm/models/components/cataloghealthstatus.d.ts +19 -0
- package/dist/esm/models/components/cataloghealthstatus.d.ts.map +1 -0
- package/dist/esm/models/components/cataloghealthstatus.js +17 -0
- package/dist/esm/models/components/cataloghealthstatus.js.map +1 -0
- package/dist/esm/models/components/codeinterpretercontainerauto.d.ts +6 -0
- package/dist/esm/models/components/codeinterpretercontainerauto.d.ts.map +1 -1
- package/dist/esm/models/components/codeinterpretercontainerauto.js +5 -0
- package/dist/esm/models/components/codeinterpretercontainerauto.js.map +1 -1
- package/dist/esm/models/components/codeinterpretertoolrequest.d.ts +6 -0
- package/dist/esm/models/components/codeinterpretertoolrequest.d.ts.map +1 -1
- package/dist/esm/models/components/codeinterpretertoolrequest.js +5 -0
- package/dist/esm/models/components/codeinterpretertoolrequest.js.map +1 -1
- package/dist/esm/models/components/createagentrequest.d.ts +26 -0
- package/dist/esm/models/components/createagentrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createagentrequest.js +21 -0
- package/dist/esm/models/components/createagentrequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/livekittokenrequest.d.ts +6 -6
- package/dist/esm/models/components/livekittokenrequest.d.ts.map +1 -1
- package/dist/esm/models/components/livekittokenrequest.js +5 -5
- package/dist/esm/models/components/livekittokenrequest.js.map +1 -1
- package/dist/esm/models/components/responsescreaterequest.d.ts +6 -6
- package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
- package/dist/esm/models/components/responsescreaterequest.js +5 -5
- package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
- package/dist/esm/models/components/sandboxsessionscope.d.ts +2 -2
- package/dist/esm/models/components/sandboxsessionscope.js +1 -1
- package/dist/esm/models/components/shellenvironmentcontainerauto.d.ts +6 -0
- package/dist/esm/models/components/shellenvironmentcontainerauto.d.ts.map +1 -1
- package/dist/esm/models/components/shellenvironmentcontainerauto.js +5 -0
- package/dist/esm/models/components/shellenvironmentcontainerauto.js.map +1 -1
- package/dist/esm/models/components/shelltoolrequest.d.ts +73 -0
- package/dist/esm/models/components/shelltoolrequest.d.ts.map +1 -0
- package/dist/esm/models/components/shelltoolrequest.js +87 -0
- package/dist/esm/models/components/shelltoolrequest.js.map +1 -0
- package/dist/esm/models/components/tooldefinition.d.ts +17 -17
- package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/esm/models/components/tooldefinition.js +21 -21
- package/dist/esm/models/components/tooldefinition.js.map +1 -1
- package/dist/esm/models/components/updateagentrequest.d.ts +26 -0
- package/dist/esm/models/components/updateagentrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updateagentrequest.js +21 -0
- package/dist/esm/models/components/updateagentrequest.js.map +1 -1
- package/dist/esm/react-query/agentRunsCancelAgentRun.d.ts +1 -1
- package/dist/esm/react-query/agentRunsCancelAgentRun.js +1 -1
- package/dist/esm/react-query/agentRunsCreateAgentRun.d.ts +1 -1
- package/dist/esm/react-query/agentRunsCreateAgentRun.js +1 -1
- package/dist/esm/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
- package/dist/esm/react-query/llmModelsCheckCatalogHealth.js +1 -1
- package/dist/esm/sdk/agentruns.d.ts +2 -2
- package/dist/esm/sdk/agentruns.js +2 -2
- package/dist/esm/sdk/models.d.ts +1 -1
- package/dist/esm/sdk/models.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/agentRunsCancelAgentRun.ts +1 -1
- package/src/funcs/agentRunsCreateAgentRun.ts +4 -4
- package/src/funcs/llmModelsCheckCatalogHealth.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/agentRunsCancelAgentRun.ts +1 -1
- package/src/mcp-server/tools/agentRunsCreateAgentRun.ts +1 -1
- package/src/mcp-server/tools/llmModelsCheckCatalogHealth.ts +1 -1
- package/src/models/components/agent.ts +27 -0
- package/src/models/components/agentrun.ts +4 -3
- package/src/models/components/agentssandboxsessionscope.ts +29 -0
- package/src/models/components/cataloghealth.ts +23 -0
- package/src/models/components/cataloghealthresponse.ts +20 -0
- package/src/models/components/cataloghealthstatus.ts +28 -0
- package/src/models/components/codeinterpretercontainerauto.ts +14 -0
- package/src/models/components/codeinterpretertoolrequest.ts +14 -0
- package/src/models/components/createagentrequest.ts +45 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/livekittokenrequest.ts +14 -14
- package/src/models/components/responsescreaterequest.ts +14 -14
- package/src/models/components/sandboxsessionscope.ts +2 -2
- package/src/models/components/shellenvironmentcontainerauto.ts +14 -0
- package/src/models/components/shelltoolrequest.ts +219 -0
- package/src/models/components/tooldefinition.ts +58 -45
- package/src/models/components/updateagentrequest.ts +45 -0
- package/src/react-query/agentRunsCancelAgentRun.ts +1 -1
- package/src/react-query/agentRunsCreateAgentRun.ts +1 -1
- package/src/react-query/llmModelsCheckCatalogHealth.ts +1 -1
- package/src/sdk/agentruns.ts +2 -2
- 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
|
|
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?:
|
|
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
|
|
103
|
+
export type ToolDefinitionEnvironment =
|
|
104
104
|
| Environment1
|
|
105
|
-
|
|
|
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
|
-
|
|
|
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?:
|
|
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
|
|
450
|
-
|
|
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
|
|
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
|
|
478
|
-
|
|
477
|
+
export const ToolDefinitionEnvironment2$outboundSchema: z.ZodType<
|
|
478
|
+
ToolDefinitionEnvironment2$Outbound,
|
|
479
479
|
z.ZodTypeDef,
|
|
480
|
-
|
|
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
|
|
497
|
-
|
|
496
|
+
export function toolDefinitionEnvironment2ToJSON(
|
|
497
|
+
toolDefinitionEnvironment2: ToolDefinitionEnvironment2,
|
|
498
|
+
): string {
|
|
499
|
+
return JSON.stringify(
|
|
500
|
+
ToolDefinitionEnvironment2$outboundSchema.parse(toolDefinitionEnvironment2),
|
|
501
|
+
);
|
|
498
502
|
}
|
|
499
|
-
export function
|
|
503
|
+
export function toolDefinitionEnvironment2FromJSON(
|
|
500
504
|
jsonString: string,
|
|
501
|
-
): SafeParseResult<
|
|
505
|
+
): SafeParseResult<ToolDefinitionEnvironment2, SDKValidationError> {
|
|
502
506
|
return safeParse(
|
|
503
507
|
jsonString,
|
|
504
|
-
(x) =>
|
|
505
|
-
`Failed to parse '
|
|
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:
|
|
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:
|
|
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
|
|
634
|
-
|
|
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(() =>
|
|
643
|
+
container_reference: z.lazy(() => ToolDefinitionEnvironment2$inboundSchema),
|
|
640
644
|
});
|
|
641
645
|
/** @internal */
|
|
642
|
-
export type
|
|
646
|
+
export type ToolDefinitionEnvironment$Outbound =
|
|
643
647
|
| Environment1$Outbound
|
|
644
|
-
|
|
|
648
|
+
| ToolDefinitionEnvironment2$Outbound;
|
|
645
649
|
|
|
646
650
|
/** @internal */
|
|
647
|
-
export const
|
|
648
|
-
|
|
651
|
+
export const ToolDefinitionEnvironment$outboundSchema: z.ZodType<
|
|
652
|
+
ToolDefinitionEnvironment$Outbound,
|
|
649
653
|
z.ZodTypeDef,
|
|
650
|
-
|
|
654
|
+
ToolDefinitionEnvironment
|
|
651
655
|
> = z.union([
|
|
652
656
|
z.lazy(() => Environment1$outboundSchema),
|
|
653
|
-
z.lazy(() =>
|
|
657
|
+
z.lazy(() => ToolDefinitionEnvironment2$outboundSchema),
|
|
654
658
|
]);
|
|
655
659
|
|
|
656
|
-
export function
|
|
657
|
-
|
|
660
|
+
export function toolDefinitionEnvironmentToJSON(
|
|
661
|
+
toolDefinitionEnvironment: ToolDefinitionEnvironment,
|
|
662
|
+
): string {
|
|
663
|
+
return JSON.stringify(
|
|
664
|
+
ToolDefinitionEnvironment$outboundSchema.parse(toolDefinitionEnvironment),
|
|
665
|
+
);
|
|
658
666
|
}
|
|
659
|
-
export function
|
|
667
|
+
export function toolDefinitionEnvironmentFromJSON(
|
|
660
668
|
jsonString: string,
|
|
661
|
-
): SafeParseResult<
|
|
669
|
+
): SafeParseResult<ToolDefinitionEnvironment, SDKValidationError> {
|
|
662
670
|
return safeParse(
|
|
663
671
|
jsonString,
|
|
664
|
-
(x) =>
|
|
665
|
-
`Failed to parse '
|
|
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(() =>
|
|
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?:
|
|
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(() =>
|
|
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:
|
|
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:
|
|
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<
|
package/src/sdk/agentruns.ts
CHANGED
|
@@ -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,
|