@meetkai/mka1 0.55.23 → 0.55.24
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 +189 -77
- package/bin/mcp-server.js.map +24 -21
- 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/llmModelsCheckCatalogHealth.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmModelsCheckCatalogHealth.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/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/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
- package/dist/commonjs/react-query/llmModelsCheckCatalogHealth.js +1 -1
- package/dist/commonjs/sdk/models.d.ts +1 -1
- package/dist/commonjs/sdk/models.js +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/llmModelsCheckCatalogHealth.js +1 -1
- package/dist/esm/mcp-server/tools/llmModelsCheckCatalogHealth.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/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/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
- package/dist/esm/react-query/llmModelsCheckCatalogHealth.js +1 -1
- 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/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/llmModelsCheckCatalogHealth.ts +1 -1
- 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/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/react-query/llmModelsCheckCatalogHealth.ts +1 -1
- 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(),
|
|
@@ -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/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,
|