@perstack/runtime 0.0.24 → 0.0.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/dist/index.d.ts +609 -1943
- package/dist/index.js +410 -1065
- package/dist/index.js.map +1 -1
- package/package.json +18 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,1315 +1,8 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import * as xstate from 'xstate';
|
|
3
2
|
import { SnapshotFrom, ActorRefFrom } from 'xstate';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
declare const PerstackConfigSchema: z.ZodObject<{
|
|
9
|
-
model: z.ZodOptional<z.ZodString>;
|
|
10
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
12
|
-
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
13
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
14
|
-
experts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
15
|
-
version: z.ZodOptional<z.ZodString>;
|
|
16
|
-
minRuntimeVersion: z.ZodOptional<z.ZodString>;
|
|
17
|
-
description: z.ZodOptional<z.ZodString>;
|
|
18
|
-
instruction: z.ZodString;
|
|
19
|
-
skills: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20
|
-
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
21
|
-
description: z.ZodOptional<z.ZodString>;
|
|
22
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
23
|
-
pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
-
omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
-
command: z.ZodString;
|
|
26
|
-
packageName: z.ZodOptional<z.ZodString>;
|
|
27
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
-
requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
type: z.ZodLiteral<"mcpSseSkill">;
|
|
31
|
-
description: z.ZodOptional<z.ZodString>;
|
|
32
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
33
|
-
pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
-
omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
|
-
endpoint: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
type: z.ZodLiteral<"interactiveSkill">;
|
|
38
|
-
description: z.ZodOptional<z.ZodString>;
|
|
39
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
40
|
-
tools: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
41
|
-
description: z.ZodOptional<z.ZodString>;
|
|
42
|
-
inputJsonSchema: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>;
|
|
44
|
-
}, z.core.$strip>]>>>;
|
|
45
|
-
delegates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
-
}, z.core.$strip>>>;
|
|
47
|
-
}, z.core.$strip>;
|
|
48
|
-
type PerstackConfig = z.infer<typeof PerstackConfigSchema>;
|
|
49
|
-
|
|
50
|
-
declare const TextPartSchema: z.ZodObject<{
|
|
51
|
-
id: z.ZodString;
|
|
52
|
-
type: z.ZodLiteral<"textPart">;
|
|
53
|
-
text: z.ZodString;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
type TextPart = z.infer<typeof TextPartSchema>;
|
|
56
|
-
declare const ImageUrlPartSchema: z.ZodObject<{
|
|
57
|
-
id: z.ZodString;
|
|
58
|
-
type: z.ZodLiteral<"imageUrlPart">;
|
|
59
|
-
url: z.ZodString;
|
|
60
|
-
mimeType: z.ZodString;
|
|
61
|
-
}, z.core.$strip>;
|
|
62
|
-
type ImageUrlPart = z.infer<typeof ImageUrlPartSchema>;
|
|
63
|
-
declare const ImageInlinePartSchema: z.ZodObject<{
|
|
64
|
-
id: z.ZodString;
|
|
65
|
-
type: z.ZodLiteral<"imageInlinePart">;
|
|
66
|
-
encodedData: z.ZodString;
|
|
67
|
-
mimeType: z.ZodString;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
type ImageInlinePart = z.infer<typeof ImageInlinePartSchema>;
|
|
70
|
-
declare const ImageBinaryPartSchema: z.ZodObject<{
|
|
71
|
-
id: z.ZodString;
|
|
72
|
-
type: z.ZodLiteral<"imageBinaryPart">;
|
|
73
|
-
data: z.ZodString;
|
|
74
|
-
mimeType: z.ZodString;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
type ImageBinaryPart = z.infer<typeof ImageBinaryPartSchema>;
|
|
77
|
-
declare const FileUrlPartSchema: z.ZodObject<{
|
|
78
|
-
id: z.ZodString;
|
|
79
|
-
type: z.ZodLiteral<"fileUrlPart">;
|
|
80
|
-
url: z.ZodString;
|
|
81
|
-
mimeType: z.ZodString;
|
|
82
|
-
}, z.core.$strip>;
|
|
83
|
-
type FileUrlPart = z.infer<typeof FileUrlPartSchema>;
|
|
84
|
-
declare const FileInlinePartSchema: z.ZodObject<{
|
|
85
|
-
id: z.ZodString;
|
|
86
|
-
type: z.ZodLiteral<"fileInlinePart">;
|
|
87
|
-
encodedData: z.ZodString;
|
|
88
|
-
mimeType: z.ZodString;
|
|
89
|
-
}, z.core.$strip>;
|
|
90
|
-
type FileInlinePart = z.infer<typeof FileInlinePartSchema>;
|
|
91
|
-
declare const FileBinaryPartSchema: z.ZodObject<{
|
|
92
|
-
id: z.ZodString;
|
|
93
|
-
type: z.ZodLiteral<"fileBinaryPart">;
|
|
94
|
-
data: z.ZodString;
|
|
95
|
-
mimeType: z.ZodString;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
type FileBinaryPart = z.infer<typeof FileBinaryPartSchema>;
|
|
98
|
-
declare const ToolCallPartSchema: z.ZodObject<{
|
|
99
|
-
id: z.ZodString;
|
|
100
|
-
type: z.ZodLiteral<"toolCallPart">;
|
|
101
|
-
toolCallId: z.ZodString;
|
|
102
|
-
toolName: z.ZodString;
|
|
103
|
-
args: z.ZodUnknown;
|
|
104
|
-
}, z.core.$strip>;
|
|
105
|
-
type ToolCallPart = z.infer<typeof ToolCallPartSchema>;
|
|
106
|
-
declare const ToolResultPartSchema: z.ZodObject<{
|
|
107
|
-
id: z.ZodString;
|
|
108
|
-
type: z.ZodLiteral<"toolResultPart">;
|
|
109
|
-
toolCallId: z.ZodString;
|
|
110
|
-
toolName: z.ZodString;
|
|
111
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
112
|
-
id: z.ZodString;
|
|
113
|
-
type: z.ZodLiteral<"textPart">;
|
|
114
|
-
text: z.ZodString;
|
|
115
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
116
|
-
id: z.ZodString;
|
|
117
|
-
type: z.ZodLiteral<"imageInlinePart">;
|
|
118
|
-
encodedData: z.ZodString;
|
|
119
|
-
mimeType: z.ZodString;
|
|
120
|
-
}, z.core.$strip>]>>;
|
|
121
|
-
isError: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
-
}, z.core.$strip>;
|
|
123
|
-
type ToolResultPart = z.infer<typeof ToolResultPartSchema>;
|
|
124
|
-
declare const InstructionMessageSchema: z.ZodObject<{
|
|
125
|
-
id: z.ZodString;
|
|
126
|
-
type: z.ZodLiteral<"instructionMessage">;
|
|
127
|
-
contents: z.ZodArray<z.ZodObject<{
|
|
128
|
-
id: z.ZodString;
|
|
129
|
-
type: z.ZodLiteral<"textPart">;
|
|
130
|
-
text: z.ZodString;
|
|
131
|
-
}, z.core.$strip>>;
|
|
132
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
-
}, z.core.$strip>;
|
|
134
|
-
type InstructionMessage = z.infer<typeof InstructionMessageSchema>;
|
|
135
|
-
declare const UserMessageSchema: z.ZodObject<{
|
|
136
|
-
id: z.ZodString;
|
|
137
|
-
type: z.ZodLiteral<"userMessage">;
|
|
138
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
139
|
-
id: z.ZodString;
|
|
140
|
-
type: z.ZodLiteral<"textPart">;
|
|
141
|
-
text: z.ZodString;
|
|
142
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
143
|
-
id: z.ZodString;
|
|
144
|
-
type: z.ZodLiteral<"imageUrlPart">;
|
|
145
|
-
url: z.ZodString;
|
|
146
|
-
mimeType: z.ZodString;
|
|
147
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
-
id: z.ZodString;
|
|
149
|
-
type: z.ZodLiteral<"imageInlinePart">;
|
|
150
|
-
encodedData: z.ZodString;
|
|
151
|
-
mimeType: z.ZodString;
|
|
152
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
153
|
-
id: z.ZodString;
|
|
154
|
-
type: z.ZodLiteral<"imageBinaryPart">;
|
|
155
|
-
data: z.ZodString;
|
|
156
|
-
mimeType: z.ZodString;
|
|
157
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
158
|
-
id: z.ZodString;
|
|
159
|
-
type: z.ZodLiteral<"fileUrlPart">;
|
|
160
|
-
url: z.ZodString;
|
|
161
|
-
mimeType: z.ZodString;
|
|
162
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
163
|
-
id: z.ZodString;
|
|
164
|
-
type: z.ZodLiteral<"fileInlinePart">;
|
|
165
|
-
encodedData: z.ZodString;
|
|
166
|
-
mimeType: z.ZodString;
|
|
167
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
-
id: z.ZodString;
|
|
169
|
-
type: z.ZodLiteral<"fileBinaryPart">;
|
|
170
|
-
data: z.ZodString;
|
|
171
|
-
mimeType: z.ZodString;
|
|
172
|
-
}, z.core.$strip>]>>;
|
|
173
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
-
}, z.core.$strip>;
|
|
175
|
-
type UserMessage = z.infer<typeof UserMessageSchema>;
|
|
176
|
-
declare const ExpertMessageSchema: z.ZodObject<{
|
|
177
|
-
id: z.ZodString;
|
|
178
|
-
type: z.ZodLiteral<"expertMessage">;
|
|
179
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
180
|
-
id: z.ZodString;
|
|
181
|
-
type: z.ZodLiteral<"textPart">;
|
|
182
|
-
text: z.ZodString;
|
|
183
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
184
|
-
id: z.ZodString;
|
|
185
|
-
type: z.ZodLiteral<"toolCallPart">;
|
|
186
|
-
toolCallId: z.ZodString;
|
|
187
|
-
toolName: z.ZodString;
|
|
188
|
-
args: z.ZodUnknown;
|
|
189
|
-
}, z.core.$strip>]>>;
|
|
190
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
-
}, z.core.$strip>;
|
|
192
|
-
type ExpertMessage = z.infer<typeof ExpertMessageSchema>;
|
|
193
|
-
declare const ToolMessageSchema: z.ZodObject<{
|
|
194
|
-
id: z.ZodString;
|
|
195
|
-
type: z.ZodLiteral<"toolMessage">;
|
|
196
|
-
contents: z.ZodArray<z.ZodObject<{
|
|
197
|
-
id: z.ZodString;
|
|
198
|
-
type: z.ZodLiteral<"toolResultPart">;
|
|
199
|
-
toolCallId: z.ZodString;
|
|
200
|
-
toolName: z.ZodString;
|
|
201
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
202
|
-
id: z.ZodString;
|
|
203
|
-
type: z.ZodLiteral<"textPart">;
|
|
204
|
-
text: z.ZodString;
|
|
205
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
206
|
-
id: z.ZodString;
|
|
207
|
-
type: z.ZodLiteral<"imageInlinePart">;
|
|
208
|
-
encodedData: z.ZodString;
|
|
209
|
-
mimeType: z.ZodString;
|
|
210
|
-
}, z.core.$strip>]>>;
|
|
211
|
-
isError: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
-
}, z.core.$strip>>;
|
|
213
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
214
|
-
}, z.core.$strip>;
|
|
215
|
-
type ToolMessage = z.infer<typeof ToolMessageSchema>;
|
|
216
|
-
declare const MessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
217
|
-
id: z.ZodString;
|
|
218
|
-
type: z.ZodLiteral<"instructionMessage">;
|
|
219
|
-
contents: z.ZodArray<z.ZodObject<{
|
|
220
|
-
id: z.ZodString;
|
|
221
|
-
type: z.ZodLiteral<"textPart">;
|
|
222
|
-
text: z.ZodString;
|
|
223
|
-
}, z.core.$strip>>;
|
|
224
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
-
id: z.ZodString;
|
|
227
|
-
type: z.ZodLiteral<"userMessage">;
|
|
228
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
229
|
-
id: z.ZodString;
|
|
230
|
-
type: z.ZodLiteral<"textPart">;
|
|
231
|
-
text: z.ZodString;
|
|
232
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
233
|
-
id: z.ZodString;
|
|
234
|
-
type: z.ZodLiteral<"imageUrlPart">;
|
|
235
|
-
url: z.ZodString;
|
|
236
|
-
mimeType: z.ZodString;
|
|
237
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
238
|
-
id: z.ZodString;
|
|
239
|
-
type: z.ZodLiteral<"imageInlinePart">;
|
|
240
|
-
encodedData: z.ZodString;
|
|
241
|
-
mimeType: z.ZodString;
|
|
242
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
-
id: z.ZodString;
|
|
244
|
-
type: z.ZodLiteral<"imageBinaryPart">;
|
|
245
|
-
data: z.ZodString;
|
|
246
|
-
mimeType: z.ZodString;
|
|
247
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
248
|
-
id: z.ZodString;
|
|
249
|
-
type: z.ZodLiteral<"fileUrlPart">;
|
|
250
|
-
url: z.ZodString;
|
|
251
|
-
mimeType: z.ZodString;
|
|
252
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
253
|
-
id: z.ZodString;
|
|
254
|
-
type: z.ZodLiteral<"fileInlinePart">;
|
|
255
|
-
encodedData: z.ZodString;
|
|
256
|
-
mimeType: z.ZodString;
|
|
257
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
258
|
-
id: z.ZodString;
|
|
259
|
-
type: z.ZodLiteral<"fileBinaryPart">;
|
|
260
|
-
data: z.ZodString;
|
|
261
|
-
mimeType: z.ZodString;
|
|
262
|
-
}, z.core.$strip>]>>;
|
|
263
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
264
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
265
|
-
id: z.ZodString;
|
|
266
|
-
type: z.ZodLiteral<"expertMessage">;
|
|
267
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
268
|
-
id: z.ZodString;
|
|
269
|
-
type: z.ZodLiteral<"textPart">;
|
|
270
|
-
text: z.ZodString;
|
|
271
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
272
|
-
id: z.ZodString;
|
|
273
|
-
type: z.ZodLiteral<"toolCallPart">;
|
|
274
|
-
toolCallId: z.ZodString;
|
|
275
|
-
toolName: z.ZodString;
|
|
276
|
-
args: z.ZodUnknown;
|
|
277
|
-
}, z.core.$strip>]>>;
|
|
278
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
280
|
-
id: z.ZodString;
|
|
281
|
-
type: z.ZodLiteral<"toolMessage">;
|
|
282
|
-
contents: z.ZodArray<z.ZodObject<{
|
|
283
|
-
id: z.ZodString;
|
|
284
|
-
type: z.ZodLiteral<"toolResultPart">;
|
|
285
|
-
toolCallId: z.ZodString;
|
|
286
|
-
toolName: z.ZodString;
|
|
287
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
288
|
-
id: z.ZodString;
|
|
289
|
-
type: z.ZodLiteral<"textPart">;
|
|
290
|
-
text: z.ZodString;
|
|
291
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
292
|
-
id: z.ZodString;
|
|
293
|
-
type: z.ZodLiteral<"imageInlinePart">;
|
|
294
|
-
encodedData: z.ZodString;
|
|
295
|
-
mimeType: z.ZodString;
|
|
296
|
-
}, z.core.$strip>]>>;
|
|
297
|
-
isError: z.ZodOptional<z.ZodBoolean>;
|
|
298
|
-
}, z.core.$strip>>;
|
|
299
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
300
|
-
}, z.core.$strip>]>;
|
|
301
|
-
type Message = z.infer<typeof MessageSchema>;
|
|
302
|
-
|
|
303
|
-
declare const defaultTemperature = 0;
|
|
304
|
-
declare const defaultMaxSteps: undefined;
|
|
305
|
-
declare const defaultMaxRetries = 5;
|
|
306
|
-
declare const defaultTimeout: number;
|
|
307
|
-
declare const expertNameRegex: RegExp;
|
|
308
|
-
declare const versionRegex: RegExp;
|
|
309
|
-
declare const tagNameRegex: RegExp;
|
|
310
|
-
declare const expertKeyRegex: RegExp;
|
|
311
|
-
declare const skillNameRegex: RegExp;
|
|
312
|
-
declare const maxNameLength = 214;
|
|
313
|
-
declare function parseExpertKey(expertKey: string): {
|
|
314
|
-
key: string;
|
|
315
|
-
name: string;
|
|
316
|
-
version?: string;
|
|
317
|
-
tag?: string;
|
|
318
|
-
};
|
|
319
|
-
declare const McpStdioSkillSchema: z.ZodObject<{
|
|
320
|
-
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
321
|
-
name: z.ZodString;
|
|
322
|
-
description: z.ZodOptional<z.ZodString>;
|
|
323
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
324
|
-
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
325
|
-
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
326
|
-
command: z.ZodString;
|
|
327
|
-
packageName: z.ZodOptional<z.ZodString>;
|
|
328
|
-
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
329
|
-
requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
330
|
-
}, z.core.$strip>;
|
|
331
|
-
type McpStdioSkill = z.infer<typeof McpStdioSkillSchema>;
|
|
332
|
-
declare const McpSseSkillSchema: z.ZodObject<{
|
|
333
|
-
type: z.ZodLiteral<"mcpSseSkill">;
|
|
334
|
-
name: z.ZodString;
|
|
335
|
-
description: z.ZodOptional<z.ZodString>;
|
|
336
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
337
|
-
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
338
|
-
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
339
|
-
endpoint: z.ZodString;
|
|
340
|
-
}, z.core.$strip>;
|
|
341
|
-
type McpSseSkill = z.infer<typeof McpSseSkillSchema>;
|
|
342
|
-
declare const InteractiveToolSchema: z.ZodObject<{
|
|
343
|
-
name: z.ZodString;
|
|
344
|
-
description: z.ZodOptional<z.ZodString>;
|
|
345
|
-
inputJsonSchema: z.ZodString;
|
|
346
|
-
}, z.core.$strip>;
|
|
347
|
-
declare const InteractiveSkillSchema: z.ZodObject<{
|
|
348
|
-
type: z.ZodLiteral<"interactiveSkill">;
|
|
349
|
-
name: z.ZodString;
|
|
350
|
-
description: z.ZodOptional<z.ZodString>;
|
|
351
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
352
|
-
tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
353
|
-
description: z.ZodOptional<z.ZodString>;
|
|
354
|
-
inputJsonSchema: z.ZodString;
|
|
355
|
-
}, z.core.$strip>>, z.ZodTransform<{
|
|
356
|
-
[k: string]: {
|
|
357
|
-
name: string;
|
|
358
|
-
inputJsonSchema: string;
|
|
359
|
-
description?: string | undefined;
|
|
360
|
-
};
|
|
361
|
-
}, Record<string, {
|
|
362
|
-
inputJsonSchema: string;
|
|
363
|
-
description?: string | undefined;
|
|
364
|
-
}>>>;
|
|
365
|
-
}, z.core.$strip>;
|
|
366
|
-
type InteractiveSkill = z.infer<typeof InteractiveSkillSchema>;
|
|
367
|
-
declare const ExpertSchema: z.ZodObject<{
|
|
368
|
-
key: z.ZodString;
|
|
369
|
-
name: z.ZodString;
|
|
370
|
-
version: z.ZodString;
|
|
371
|
-
description: z.ZodOptional<z.ZodString>;
|
|
372
|
-
instruction: z.ZodString;
|
|
373
|
-
skills: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
374
|
-
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
375
|
-
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
376
|
-
description: z.ZodOptional<z.ZodString>;
|
|
377
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
378
|
-
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
379
|
-
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
380
|
-
command: z.ZodString;
|
|
381
|
-
packageName: z.ZodOptional<z.ZodString>;
|
|
382
|
-
requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
383
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
384
|
-
type: z.ZodLiteral<"mcpSseSkill">;
|
|
385
|
-
description: z.ZodOptional<z.ZodString>;
|
|
386
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
387
|
-
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
388
|
-
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
389
|
-
endpoint: z.ZodString;
|
|
390
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
-
type: z.ZodLiteral<"interactiveSkill">;
|
|
392
|
-
description: z.ZodOptional<z.ZodString>;
|
|
393
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
394
|
-
tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
395
|
-
description: z.ZodOptional<z.ZodString>;
|
|
396
|
-
inputJsonSchema: z.ZodString;
|
|
397
|
-
}, z.core.$strip>>, z.ZodTransform<{
|
|
398
|
-
[k: string]: {
|
|
399
|
-
name: string;
|
|
400
|
-
inputJsonSchema: string;
|
|
401
|
-
description?: string | undefined;
|
|
402
|
-
};
|
|
403
|
-
}, Record<string, {
|
|
404
|
-
inputJsonSchema: string;
|
|
405
|
-
description?: string | undefined;
|
|
406
|
-
}>>>;
|
|
407
|
-
}, z.core.$strip>]>>>>, z.ZodTransform<{
|
|
408
|
-
[k: string]: {
|
|
409
|
-
type: "mcpStdioSkill";
|
|
410
|
-
name: string;
|
|
411
|
-
pick: string[];
|
|
412
|
-
omit: string[];
|
|
413
|
-
command: string;
|
|
414
|
-
args: string[];
|
|
415
|
-
requiredEnv: string[];
|
|
416
|
-
description?: string | undefined;
|
|
417
|
-
rule?: string | undefined;
|
|
418
|
-
packageName?: string | undefined;
|
|
419
|
-
} | {
|
|
420
|
-
type: "mcpSseSkill";
|
|
421
|
-
name: string;
|
|
422
|
-
pick: string[];
|
|
423
|
-
omit: string[];
|
|
424
|
-
endpoint: string;
|
|
425
|
-
description?: string | undefined;
|
|
426
|
-
rule?: string | undefined;
|
|
427
|
-
} | {
|
|
428
|
-
type: "interactiveSkill";
|
|
429
|
-
name: string;
|
|
430
|
-
tools: {
|
|
431
|
-
[k: string]: {
|
|
432
|
-
name: string;
|
|
433
|
-
inputJsonSchema: string;
|
|
434
|
-
description?: string | undefined;
|
|
435
|
-
};
|
|
436
|
-
};
|
|
437
|
-
description?: string | undefined;
|
|
438
|
-
rule?: string | undefined;
|
|
439
|
-
};
|
|
440
|
-
}, Record<string, {
|
|
441
|
-
type: "mcpStdioSkill";
|
|
442
|
-
args: string[];
|
|
443
|
-
pick: string[];
|
|
444
|
-
omit: string[];
|
|
445
|
-
command: string;
|
|
446
|
-
requiredEnv: string[];
|
|
447
|
-
description?: string | undefined;
|
|
448
|
-
rule?: string | undefined;
|
|
449
|
-
packageName?: string | undefined;
|
|
450
|
-
} | {
|
|
451
|
-
type: "mcpSseSkill";
|
|
452
|
-
pick: string[];
|
|
453
|
-
omit: string[];
|
|
454
|
-
endpoint: string;
|
|
455
|
-
description?: string | undefined;
|
|
456
|
-
rule?: string | undefined;
|
|
457
|
-
} | {
|
|
458
|
-
type: "interactiveSkill";
|
|
459
|
-
tools: {
|
|
460
|
-
[k: string]: {
|
|
461
|
-
name: string;
|
|
462
|
-
inputJsonSchema: string;
|
|
463
|
-
description?: string | undefined;
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
description?: string | undefined;
|
|
467
|
-
rule?: string | undefined;
|
|
468
|
-
}>>>;
|
|
469
|
-
delegates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
470
|
-
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
471
|
-
}, z.core.$strip>;
|
|
472
|
-
type Expert = z.infer<typeof ExpertSchema>;
|
|
473
|
-
declare const UsageSchema: z.ZodObject<{
|
|
474
|
-
inputTokens: z.ZodNumber;
|
|
475
|
-
outputTokens: z.ZodNumber;
|
|
476
|
-
reasoningTokens: z.ZodNumber;
|
|
477
|
-
totalTokens: z.ZodNumber;
|
|
478
|
-
cachedInputTokens: z.ZodNumber;
|
|
479
|
-
}, z.core.$strip>;
|
|
480
|
-
type Usage = z.infer<typeof UsageSchema>;
|
|
481
|
-
declare const CheckpointStatusSchema: z.ZodEnum<{
|
|
482
|
-
init: "init";
|
|
483
|
-
proceeding: "proceeding";
|
|
484
|
-
completed: "completed";
|
|
485
|
-
stoppedByInteractiveTool: "stoppedByInteractiveTool";
|
|
486
|
-
stoppedByDelegate: "stoppedByDelegate";
|
|
487
|
-
stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
|
|
488
|
-
stoppedByError: "stoppedByError";
|
|
489
|
-
}>;
|
|
490
|
-
declare const CheckpointSchema: z.ZodObject<{
|
|
491
|
-
id: z.ZodString;
|
|
492
|
-
runId: z.ZodString;
|
|
493
|
-
status: z.ZodEnum<{
|
|
494
|
-
init: "init";
|
|
495
|
-
proceeding: "proceeding";
|
|
496
|
-
completed: "completed";
|
|
497
|
-
stoppedByInteractiveTool: "stoppedByInteractiveTool";
|
|
498
|
-
stoppedByDelegate: "stoppedByDelegate";
|
|
499
|
-
stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
|
|
500
|
-
stoppedByError: "stoppedByError";
|
|
501
|
-
}>;
|
|
502
|
-
stepNumber: z.ZodNumber;
|
|
503
|
-
messages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
504
|
-
id: z.ZodString;
|
|
505
|
-
type: z.ZodLiteral<"instructionMessage">;
|
|
506
|
-
contents: z.ZodArray<z.ZodObject<{
|
|
507
|
-
id: z.ZodString;
|
|
508
|
-
type: z.ZodLiteral<"textPart">;
|
|
509
|
-
text: z.ZodString;
|
|
510
|
-
}, z.core.$strip>>;
|
|
511
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
512
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
513
|
-
id: z.ZodString;
|
|
514
|
-
type: z.ZodLiteral<"userMessage">;
|
|
515
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
516
|
-
id: z.ZodString;
|
|
517
|
-
type: z.ZodLiteral<"textPart">;
|
|
518
|
-
text: z.ZodString;
|
|
519
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
520
|
-
id: z.ZodString;
|
|
521
|
-
type: z.ZodLiteral<"imageUrlPart">;
|
|
522
|
-
url: z.ZodString;
|
|
523
|
-
mimeType: z.ZodString;
|
|
524
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
525
|
-
id: z.ZodString;
|
|
526
|
-
type: z.ZodLiteral<"imageInlinePart">;
|
|
527
|
-
encodedData: z.ZodString;
|
|
528
|
-
mimeType: z.ZodString;
|
|
529
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
530
|
-
id: z.ZodString;
|
|
531
|
-
type: z.ZodLiteral<"imageBinaryPart">;
|
|
532
|
-
data: z.ZodString;
|
|
533
|
-
mimeType: z.ZodString;
|
|
534
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
535
|
-
id: z.ZodString;
|
|
536
|
-
type: z.ZodLiteral<"fileUrlPart">;
|
|
537
|
-
url: z.ZodString;
|
|
538
|
-
mimeType: z.ZodString;
|
|
539
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
540
|
-
id: z.ZodString;
|
|
541
|
-
type: z.ZodLiteral<"fileInlinePart">;
|
|
542
|
-
encodedData: z.ZodString;
|
|
543
|
-
mimeType: z.ZodString;
|
|
544
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
545
|
-
id: z.ZodString;
|
|
546
|
-
type: z.ZodLiteral<"fileBinaryPart">;
|
|
547
|
-
data: z.ZodString;
|
|
548
|
-
mimeType: z.ZodString;
|
|
549
|
-
}, z.core.$strip>]>>;
|
|
550
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
551
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
552
|
-
id: z.ZodString;
|
|
553
|
-
type: z.ZodLiteral<"expertMessage">;
|
|
554
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
555
|
-
id: z.ZodString;
|
|
556
|
-
type: z.ZodLiteral<"textPart">;
|
|
557
|
-
text: z.ZodString;
|
|
558
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
559
|
-
id: z.ZodString;
|
|
560
|
-
type: z.ZodLiteral<"toolCallPart">;
|
|
561
|
-
toolCallId: z.ZodString;
|
|
562
|
-
toolName: z.ZodString;
|
|
563
|
-
args: z.ZodUnknown;
|
|
564
|
-
}, z.core.$strip>]>>;
|
|
565
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
566
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
567
|
-
id: z.ZodString;
|
|
568
|
-
type: z.ZodLiteral<"toolMessage">;
|
|
569
|
-
contents: z.ZodArray<z.ZodObject<{
|
|
570
|
-
id: z.ZodString;
|
|
571
|
-
type: z.ZodLiteral<"toolResultPart">;
|
|
572
|
-
toolCallId: z.ZodString;
|
|
573
|
-
toolName: z.ZodString;
|
|
574
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
575
|
-
id: z.ZodString;
|
|
576
|
-
type: z.ZodLiteral<"textPart">;
|
|
577
|
-
text: z.ZodString;
|
|
578
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
579
|
-
id: z.ZodString;
|
|
580
|
-
type: z.ZodLiteral<"imageInlinePart">;
|
|
581
|
-
encodedData: z.ZodString;
|
|
582
|
-
mimeType: z.ZodString;
|
|
583
|
-
}, z.core.$strip>]>>;
|
|
584
|
-
isError: z.ZodOptional<z.ZodBoolean>;
|
|
585
|
-
}, z.core.$strip>>;
|
|
586
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
587
|
-
}, z.core.$strip>]>>;
|
|
588
|
-
expert: z.ZodObject<{
|
|
589
|
-
key: z.ZodString;
|
|
590
|
-
name: z.ZodString;
|
|
591
|
-
version: z.ZodString;
|
|
592
|
-
}, z.core.$strip>;
|
|
593
|
-
delegateTo: z.ZodOptional<z.ZodObject<{
|
|
594
|
-
expert: z.ZodObject<{
|
|
595
|
-
key: z.ZodString;
|
|
596
|
-
name: z.ZodString;
|
|
597
|
-
version: z.ZodString;
|
|
598
|
-
}, z.core.$strip>;
|
|
599
|
-
toolCallId: z.ZodString;
|
|
600
|
-
toolName: z.ZodString;
|
|
601
|
-
query: z.ZodString;
|
|
602
|
-
}, z.core.$strip>>;
|
|
603
|
-
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
604
|
-
expert: z.ZodObject<{
|
|
605
|
-
key: z.ZodString;
|
|
606
|
-
name: z.ZodString;
|
|
607
|
-
version: z.ZodString;
|
|
608
|
-
}, z.core.$strip>;
|
|
609
|
-
toolCallId: z.ZodString;
|
|
610
|
-
toolName: z.ZodString;
|
|
611
|
-
checkpointId: z.ZodString;
|
|
612
|
-
}, z.core.$strip>>;
|
|
613
|
-
usage: z.ZodObject<{
|
|
614
|
-
inputTokens: z.ZodNumber;
|
|
615
|
-
outputTokens: z.ZodNumber;
|
|
616
|
-
reasoningTokens: z.ZodNumber;
|
|
617
|
-
totalTokens: z.ZodNumber;
|
|
618
|
-
cachedInputTokens: z.ZodNumber;
|
|
619
|
-
}, z.core.$strip>;
|
|
620
|
-
contextWindow: z.ZodNumber;
|
|
621
|
-
contextWindowUsage: z.ZodNumber;
|
|
622
|
-
}, z.core.$strip>;
|
|
623
|
-
type Checkpoint = z.infer<typeof CheckpointSchema>;
|
|
624
|
-
declare const RunParamsSchema: z.ZodObject<{
|
|
625
|
-
setting: z.ZodObject<{
|
|
626
|
-
runId: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string, string | undefined>>;
|
|
627
|
-
expertKey: z.ZodString;
|
|
628
|
-
input: z.ZodObject<{
|
|
629
|
-
text: z.ZodOptional<z.ZodString>;
|
|
630
|
-
interactiveToolCallResult: z.ZodOptional<z.ZodObject<{
|
|
631
|
-
toolCallId: z.ZodString;
|
|
632
|
-
toolName: z.ZodString;
|
|
633
|
-
text: z.ZodString;
|
|
634
|
-
}, z.core.$strip>>;
|
|
635
|
-
}, z.core.$strip>;
|
|
636
|
-
experts: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
637
|
-
version: z.ZodString;
|
|
638
|
-
name: z.ZodString;
|
|
639
|
-
description: z.ZodOptional<z.ZodString>;
|
|
640
|
-
instruction: z.ZodString;
|
|
641
|
-
skills: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
642
|
-
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
643
|
-
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
644
|
-
description: z.ZodOptional<z.ZodString>;
|
|
645
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
646
|
-
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
647
|
-
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
648
|
-
command: z.ZodString;
|
|
649
|
-
packageName: z.ZodOptional<z.ZodString>;
|
|
650
|
-
requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
651
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
652
|
-
type: z.ZodLiteral<"mcpSseSkill">;
|
|
653
|
-
description: z.ZodOptional<z.ZodString>;
|
|
654
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
655
|
-
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
656
|
-
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
657
|
-
endpoint: z.ZodString;
|
|
658
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
659
|
-
type: z.ZodLiteral<"interactiveSkill">;
|
|
660
|
-
description: z.ZodOptional<z.ZodString>;
|
|
661
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
662
|
-
tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
663
|
-
description: z.ZodOptional<z.ZodString>;
|
|
664
|
-
inputJsonSchema: z.ZodString;
|
|
665
|
-
}, z.core.$strip>>, z.ZodTransform<{
|
|
666
|
-
[k: string]: {
|
|
667
|
-
name: string;
|
|
668
|
-
inputJsonSchema: string;
|
|
669
|
-
description?: string | undefined;
|
|
670
|
-
};
|
|
671
|
-
}, Record<string, {
|
|
672
|
-
inputJsonSchema: string;
|
|
673
|
-
description?: string | undefined;
|
|
674
|
-
}>>>;
|
|
675
|
-
}, z.core.$strip>]>>>>, z.ZodTransform<{
|
|
676
|
-
[k: string]: {
|
|
677
|
-
type: "mcpStdioSkill";
|
|
678
|
-
name: string;
|
|
679
|
-
pick: string[];
|
|
680
|
-
omit: string[];
|
|
681
|
-
command: string;
|
|
682
|
-
args: string[];
|
|
683
|
-
requiredEnv: string[];
|
|
684
|
-
description?: string | undefined;
|
|
685
|
-
rule?: string | undefined;
|
|
686
|
-
packageName?: string | undefined;
|
|
687
|
-
} | {
|
|
688
|
-
type: "mcpSseSkill";
|
|
689
|
-
name: string;
|
|
690
|
-
pick: string[];
|
|
691
|
-
omit: string[];
|
|
692
|
-
endpoint: string;
|
|
693
|
-
description?: string | undefined;
|
|
694
|
-
rule?: string | undefined;
|
|
695
|
-
} | {
|
|
696
|
-
type: "interactiveSkill";
|
|
697
|
-
name: string;
|
|
698
|
-
tools: {
|
|
699
|
-
[k: string]: {
|
|
700
|
-
name: string;
|
|
701
|
-
inputJsonSchema: string;
|
|
702
|
-
description?: string | undefined;
|
|
703
|
-
};
|
|
704
|
-
};
|
|
705
|
-
description?: string | undefined;
|
|
706
|
-
rule?: string | undefined;
|
|
707
|
-
};
|
|
708
|
-
}, Record<string, {
|
|
709
|
-
type: "mcpStdioSkill";
|
|
710
|
-
args: string[];
|
|
711
|
-
pick: string[];
|
|
712
|
-
omit: string[];
|
|
713
|
-
command: string;
|
|
714
|
-
requiredEnv: string[];
|
|
715
|
-
description?: string | undefined;
|
|
716
|
-
rule?: string | undefined;
|
|
717
|
-
packageName?: string | undefined;
|
|
718
|
-
} | {
|
|
719
|
-
type: "mcpSseSkill";
|
|
720
|
-
pick: string[];
|
|
721
|
-
omit: string[];
|
|
722
|
-
endpoint: string;
|
|
723
|
-
description?: string | undefined;
|
|
724
|
-
rule?: string | undefined;
|
|
725
|
-
} | {
|
|
726
|
-
type: "interactiveSkill";
|
|
727
|
-
tools: {
|
|
728
|
-
[k: string]: {
|
|
729
|
-
name: string;
|
|
730
|
-
inputJsonSchema: string;
|
|
731
|
-
description?: string | undefined;
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
description?: string | undefined;
|
|
735
|
-
rule?: string | undefined;
|
|
736
|
-
}>>>;
|
|
737
|
-
delegates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
738
|
-
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
739
|
-
}, z.core.$strip>>>>, z.ZodTransform<{
|
|
740
|
-
[k: string]: {
|
|
741
|
-
key: string;
|
|
742
|
-
name: string;
|
|
743
|
-
version: string;
|
|
744
|
-
instruction: string;
|
|
745
|
-
skills: {
|
|
746
|
-
[k: string]: {
|
|
747
|
-
type: "mcpStdioSkill";
|
|
748
|
-
name: string;
|
|
749
|
-
pick: string[];
|
|
750
|
-
omit: string[];
|
|
751
|
-
command: string;
|
|
752
|
-
args: string[];
|
|
753
|
-
requiredEnv: string[];
|
|
754
|
-
description?: string | undefined;
|
|
755
|
-
rule?: string | undefined;
|
|
756
|
-
packageName?: string | undefined;
|
|
757
|
-
} | {
|
|
758
|
-
type: "mcpSseSkill";
|
|
759
|
-
name: string;
|
|
760
|
-
pick: string[];
|
|
761
|
-
omit: string[];
|
|
762
|
-
endpoint: string;
|
|
763
|
-
description?: string | undefined;
|
|
764
|
-
rule?: string | undefined;
|
|
765
|
-
} | {
|
|
766
|
-
type: "interactiveSkill";
|
|
767
|
-
name: string;
|
|
768
|
-
tools: {
|
|
769
|
-
[k: string]: {
|
|
770
|
-
name: string;
|
|
771
|
-
inputJsonSchema: string;
|
|
772
|
-
description?: string | undefined;
|
|
773
|
-
};
|
|
774
|
-
};
|
|
775
|
-
description?: string | undefined;
|
|
776
|
-
rule?: string | undefined;
|
|
777
|
-
};
|
|
778
|
-
};
|
|
779
|
-
delegates: string[];
|
|
780
|
-
tags: string[];
|
|
781
|
-
description?: string | undefined;
|
|
782
|
-
};
|
|
783
|
-
}, Record<string, {
|
|
784
|
-
version: string;
|
|
785
|
-
name: string;
|
|
786
|
-
instruction: string;
|
|
787
|
-
skills: {
|
|
788
|
-
[k: string]: {
|
|
789
|
-
type: "mcpStdioSkill";
|
|
790
|
-
name: string;
|
|
791
|
-
pick: string[];
|
|
792
|
-
omit: string[];
|
|
793
|
-
command: string;
|
|
794
|
-
args: string[];
|
|
795
|
-
requiredEnv: string[];
|
|
796
|
-
description?: string | undefined;
|
|
797
|
-
rule?: string | undefined;
|
|
798
|
-
packageName?: string | undefined;
|
|
799
|
-
} | {
|
|
800
|
-
type: "mcpSseSkill";
|
|
801
|
-
name: string;
|
|
802
|
-
pick: string[];
|
|
803
|
-
omit: string[];
|
|
804
|
-
endpoint: string;
|
|
805
|
-
description?: string | undefined;
|
|
806
|
-
rule?: string | undefined;
|
|
807
|
-
} | {
|
|
808
|
-
type: "interactiveSkill";
|
|
809
|
-
name: string;
|
|
810
|
-
tools: {
|
|
811
|
-
[k: string]: {
|
|
812
|
-
name: string;
|
|
813
|
-
inputJsonSchema: string;
|
|
814
|
-
description?: string | undefined;
|
|
815
|
-
};
|
|
816
|
-
};
|
|
817
|
-
description?: string | undefined;
|
|
818
|
-
rule?: string | undefined;
|
|
819
|
-
};
|
|
820
|
-
};
|
|
821
|
-
delegates: string[];
|
|
822
|
-
tags: string[];
|
|
823
|
-
description?: string | undefined;
|
|
824
|
-
}>>>;
|
|
825
|
-
model: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
826
|
-
temperature: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
827
|
-
maxSteps: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
828
|
-
maxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
829
|
-
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
830
|
-
workspace: z.ZodOptional<z.ZodString>;
|
|
831
|
-
startedAt: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
832
|
-
updatedAt: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
833
|
-
}, z.core.$strip>;
|
|
834
|
-
checkpoint: z.ZodOptional<z.ZodObject<{
|
|
835
|
-
id: z.ZodString;
|
|
836
|
-
runId: z.ZodString;
|
|
837
|
-
status: z.ZodEnum<{
|
|
838
|
-
init: "init";
|
|
839
|
-
proceeding: "proceeding";
|
|
840
|
-
completed: "completed";
|
|
841
|
-
stoppedByInteractiveTool: "stoppedByInteractiveTool";
|
|
842
|
-
stoppedByDelegate: "stoppedByDelegate";
|
|
843
|
-
stoppedByExceededMaxSteps: "stoppedByExceededMaxSteps";
|
|
844
|
-
stoppedByError: "stoppedByError";
|
|
845
|
-
}>;
|
|
846
|
-
stepNumber: z.ZodNumber;
|
|
847
|
-
messages: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
848
|
-
id: z.ZodString;
|
|
849
|
-
type: z.ZodLiteral<"instructionMessage">;
|
|
850
|
-
contents: z.ZodArray<z.ZodObject<{
|
|
851
|
-
id: z.ZodString;
|
|
852
|
-
type: z.ZodLiteral<"textPart">;
|
|
853
|
-
text: z.ZodString;
|
|
854
|
-
}, z.core.$strip>>;
|
|
855
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
856
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
857
|
-
id: z.ZodString;
|
|
858
|
-
type: z.ZodLiteral<"userMessage">;
|
|
859
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
860
|
-
id: z.ZodString;
|
|
861
|
-
type: z.ZodLiteral<"textPart">;
|
|
862
|
-
text: z.ZodString;
|
|
863
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
864
|
-
id: z.ZodString;
|
|
865
|
-
type: z.ZodLiteral<"imageUrlPart">;
|
|
866
|
-
url: z.ZodString;
|
|
867
|
-
mimeType: z.ZodString;
|
|
868
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
869
|
-
id: z.ZodString;
|
|
870
|
-
type: z.ZodLiteral<"imageInlinePart">;
|
|
871
|
-
encodedData: z.ZodString;
|
|
872
|
-
mimeType: z.ZodString;
|
|
873
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
874
|
-
id: z.ZodString;
|
|
875
|
-
type: z.ZodLiteral<"imageBinaryPart">;
|
|
876
|
-
data: z.ZodString;
|
|
877
|
-
mimeType: z.ZodString;
|
|
878
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
879
|
-
id: z.ZodString;
|
|
880
|
-
type: z.ZodLiteral<"fileUrlPart">;
|
|
881
|
-
url: z.ZodString;
|
|
882
|
-
mimeType: z.ZodString;
|
|
883
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
884
|
-
id: z.ZodString;
|
|
885
|
-
type: z.ZodLiteral<"fileInlinePart">;
|
|
886
|
-
encodedData: z.ZodString;
|
|
887
|
-
mimeType: z.ZodString;
|
|
888
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
889
|
-
id: z.ZodString;
|
|
890
|
-
type: z.ZodLiteral<"fileBinaryPart">;
|
|
891
|
-
data: z.ZodString;
|
|
892
|
-
mimeType: z.ZodString;
|
|
893
|
-
}, z.core.$strip>]>>;
|
|
894
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
895
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
896
|
-
id: z.ZodString;
|
|
897
|
-
type: z.ZodLiteral<"expertMessage">;
|
|
898
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
899
|
-
id: z.ZodString;
|
|
900
|
-
type: z.ZodLiteral<"textPart">;
|
|
901
|
-
text: z.ZodString;
|
|
902
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
903
|
-
id: z.ZodString;
|
|
904
|
-
type: z.ZodLiteral<"toolCallPart">;
|
|
905
|
-
toolCallId: z.ZodString;
|
|
906
|
-
toolName: z.ZodString;
|
|
907
|
-
args: z.ZodUnknown;
|
|
908
|
-
}, z.core.$strip>]>>;
|
|
909
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
910
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
911
|
-
id: z.ZodString;
|
|
912
|
-
type: z.ZodLiteral<"toolMessage">;
|
|
913
|
-
contents: z.ZodArray<z.ZodObject<{
|
|
914
|
-
id: z.ZodString;
|
|
915
|
-
type: z.ZodLiteral<"toolResultPart">;
|
|
916
|
-
toolCallId: z.ZodString;
|
|
917
|
-
toolName: z.ZodString;
|
|
918
|
-
contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
919
|
-
id: z.ZodString;
|
|
920
|
-
type: z.ZodLiteral<"textPart">;
|
|
921
|
-
text: z.ZodString;
|
|
922
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
923
|
-
id: z.ZodString;
|
|
924
|
-
type: z.ZodLiteral<"imageInlinePart">;
|
|
925
|
-
encodedData: z.ZodString;
|
|
926
|
-
mimeType: z.ZodString;
|
|
927
|
-
}, z.core.$strip>]>>;
|
|
928
|
-
isError: z.ZodOptional<z.ZodBoolean>;
|
|
929
|
-
}, z.core.$strip>>;
|
|
930
|
-
cache: z.ZodOptional<z.ZodBoolean>;
|
|
931
|
-
}, z.core.$strip>]>>;
|
|
932
|
-
expert: z.ZodObject<{
|
|
933
|
-
key: z.ZodString;
|
|
934
|
-
name: z.ZodString;
|
|
935
|
-
version: z.ZodString;
|
|
936
|
-
}, z.core.$strip>;
|
|
937
|
-
delegateTo: z.ZodOptional<z.ZodObject<{
|
|
938
|
-
expert: z.ZodObject<{
|
|
939
|
-
key: z.ZodString;
|
|
940
|
-
name: z.ZodString;
|
|
941
|
-
version: z.ZodString;
|
|
942
|
-
}, z.core.$strip>;
|
|
943
|
-
toolCallId: z.ZodString;
|
|
944
|
-
toolName: z.ZodString;
|
|
945
|
-
query: z.ZodString;
|
|
946
|
-
}, z.core.$strip>>;
|
|
947
|
-
delegatedBy: z.ZodOptional<z.ZodObject<{
|
|
948
|
-
expert: z.ZodObject<{
|
|
949
|
-
key: z.ZodString;
|
|
950
|
-
name: z.ZodString;
|
|
951
|
-
version: z.ZodString;
|
|
952
|
-
}, z.core.$strip>;
|
|
953
|
-
toolCallId: z.ZodString;
|
|
954
|
-
toolName: z.ZodString;
|
|
955
|
-
checkpointId: z.ZodString;
|
|
956
|
-
}, z.core.$strip>>;
|
|
957
|
-
usage: z.ZodObject<{
|
|
958
|
-
inputTokens: z.ZodNumber;
|
|
959
|
-
outputTokens: z.ZodNumber;
|
|
960
|
-
reasoningTokens: z.ZodNumber;
|
|
961
|
-
totalTokens: z.ZodNumber;
|
|
962
|
-
cachedInputTokens: z.ZodNumber;
|
|
963
|
-
}, z.core.$strip>;
|
|
964
|
-
contextWindow: z.ZodNumber;
|
|
965
|
-
contextWindowUsage: z.ZodNumber;
|
|
966
|
-
}, z.core.$strip>>;
|
|
967
|
-
}, z.core.$strip>;
|
|
968
|
-
type RunParamsInput = z.input<typeof RunParamsSchema>;
|
|
969
|
-
type RunParams = z.output<typeof RunParamsSchema>;
|
|
970
|
-
type RunSetting = z.infer<typeof RunParamsSchema.shape.setting>;
|
|
971
|
-
type RunInput = z.infer<typeof RunParamsSchema.shape.setting.shape.input>;
|
|
972
|
-
type Step = {
|
|
973
|
-
stepNumber: number;
|
|
974
|
-
inputMessages?: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
975
|
-
newMessages: Message[];
|
|
976
|
-
toolCall?: ToolCall;
|
|
977
|
-
toolResult?: ToolResult;
|
|
978
|
-
usage: Usage;
|
|
979
|
-
startedAt: number;
|
|
980
|
-
finishedAt?: number;
|
|
981
|
-
};
|
|
982
|
-
type ToolCall = {
|
|
983
|
-
id: string;
|
|
984
|
-
skillName: string;
|
|
985
|
-
toolName: string;
|
|
986
|
-
args: Record<string, unknown>;
|
|
987
|
-
};
|
|
988
|
-
type ToolResult = {
|
|
989
|
-
id: string;
|
|
990
|
-
skillName: string;
|
|
991
|
-
toolName: string;
|
|
992
|
-
result: (TextPart | ImageInlinePart | FileInlinePart)[];
|
|
993
|
-
};
|
|
994
|
-
/**
|
|
995
|
-
* ExpertEvents can only contain deeply serializable properties.
|
|
996
|
-
* This is important because these events are serialized using JSON.stringify() and stored in Cassandra,
|
|
997
|
-
* and later used to restore state when resuming execution. Non-serializable properties would cause
|
|
998
|
-
* issues during serialization/deserialization process.
|
|
999
|
-
*/
|
|
1000
|
-
type ExpertEventPayloads = {
|
|
1001
|
-
startRun: {
|
|
1002
|
-
initialCheckpoint: Checkpoint;
|
|
1003
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
1004
|
-
};
|
|
1005
|
-
startGeneration: {
|
|
1006
|
-
messages: Message[];
|
|
1007
|
-
};
|
|
1008
|
-
retry: {
|
|
1009
|
-
reason: string;
|
|
1010
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
1011
|
-
toolCall?: ToolCall;
|
|
1012
|
-
toolResult?: ToolResult;
|
|
1013
|
-
usage: Usage;
|
|
1014
|
-
};
|
|
1015
|
-
callTool: {
|
|
1016
|
-
newMessage: ExpertMessage;
|
|
1017
|
-
toolCall: ToolCall;
|
|
1018
|
-
usage: Usage;
|
|
1019
|
-
};
|
|
1020
|
-
callInteractiveTool: {
|
|
1021
|
-
newMessage: ExpertMessage;
|
|
1022
|
-
toolCall: ToolCall;
|
|
1023
|
-
usage: Usage;
|
|
1024
|
-
};
|
|
1025
|
-
callDelegate: {
|
|
1026
|
-
newMessage: ExpertMessage;
|
|
1027
|
-
toolCall: ToolCall;
|
|
1028
|
-
usage: Usage;
|
|
1029
|
-
};
|
|
1030
|
-
resolveToolResult: {
|
|
1031
|
-
toolResult: ToolResult;
|
|
1032
|
-
};
|
|
1033
|
-
resolveThought: {
|
|
1034
|
-
toolResult: ToolResult;
|
|
1035
|
-
};
|
|
1036
|
-
resolvePdfFile: {
|
|
1037
|
-
toolResult: ToolResult;
|
|
1038
|
-
};
|
|
1039
|
-
resolveImageFile: {
|
|
1040
|
-
toolResult: ToolResult;
|
|
1041
|
-
};
|
|
1042
|
-
attemptCompletion: {
|
|
1043
|
-
toolResult: ToolResult;
|
|
1044
|
-
};
|
|
1045
|
-
finishToolCall: {
|
|
1046
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
1047
|
-
};
|
|
1048
|
-
continueToNextStep: {
|
|
1049
|
-
checkpoint: Checkpoint;
|
|
1050
|
-
step: Step;
|
|
1051
|
-
nextCheckpoint: Checkpoint;
|
|
1052
|
-
};
|
|
1053
|
-
stopRunByInteractiveTool: {
|
|
1054
|
-
checkpoint: Checkpoint;
|
|
1055
|
-
step: Step;
|
|
1056
|
-
};
|
|
1057
|
-
stopRunByDelegate: {
|
|
1058
|
-
checkpoint: Checkpoint;
|
|
1059
|
-
step: Step;
|
|
1060
|
-
};
|
|
1061
|
-
stopRunByExceededMaxSteps: {
|
|
1062
|
-
checkpoint: Checkpoint;
|
|
1063
|
-
step: Step;
|
|
1064
|
-
};
|
|
1065
|
-
completeRun: {
|
|
1066
|
-
checkpoint: Checkpoint;
|
|
1067
|
-
step: Step;
|
|
1068
|
-
text: string;
|
|
1069
|
-
usage: Usage;
|
|
1070
|
-
};
|
|
1071
|
-
};
|
|
1072
|
-
type BaseEvent = {
|
|
1073
|
-
id: string;
|
|
1074
|
-
expertKey: string;
|
|
1075
|
-
timestamp: number;
|
|
1076
|
-
runId: string;
|
|
1077
|
-
stepNumber: number;
|
|
1078
|
-
};
|
|
1079
|
-
type EventType = keyof ExpertEventPayloads;
|
|
1080
|
-
type RunEvent = {
|
|
1081
|
-
[K in EventType]: BaseEvent & {
|
|
1082
|
-
type: K;
|
|
1083
|
-
} & ExpertEventPayloads[K];
|
|
1084
|
-
}[EventType];
|
|
1085
|
-
type EventForType<T extends EventType> = Extract<RunEvent, {
|
|
1086
|
-
type: T;
|
|
1087
|
-
}>;
|
|
1088
|
-
declare function createEvent<T extends EventType>(type: T): (setting: RunSetting, checkpoint: Checkpoint, data: Omit<EventForType<T>, "type" | "id" | "expertKey" | "timestamp" | "runId" | "stepNumber">) => EventForType<T>;
|
|
1089
|
-
declare const startRun: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1090
|
-
type: "startRun";
|
|
1091
|
-
} & {
|
|
1092
|
-
initialCheckpoint: Checkpoint;
|
|
1093
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
1094
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1095
|
-
type: "startRun";
|
|
1096
|
-
} & {
|
|
1097
|
-
initialCheckpoint: Checkpoint;
|
|
1098
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
1099
|
-
};
|
|
1100
|
-
declare const startGeneration: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1101
|
-
type: "startGeneration";
|
|
1102
|
-
} & {
|
|
1103
|
-
messages: Message[];
|
|
1104
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1105
|
-
type: "startGeneration";
|
|
1106
|
-
} & {
|
|
1107
|
-
messages: Message[];
|
|
1108
|
-
};
|
|
1109
|
-
declare const retry: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1110
|
-
type: "retry";
|
|
1111
|
-
} & {
|
|
1112
|
-
reason: string;
|
|
1113
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
1114
|
-
toolCall?: ToolCall;
|
|
1115
|
-
toolResult?: ToolResult;
|
|
1116
|
-
usage: Usage;
|
|
1117
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1118
|
-
type: "retry";
|
|
1119
|
-
} & {
|
|
1120
|
-
reason: string;
|
|
1121
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
1122
|
-
toolCall?: ToolCall;
|
|
1123
|
-
toolResult?: ToolResult;
|
|
1124
|
-
usage: Usage;
|
|
1125
|
-
};
|
|
1126
|
-
declare const callTool: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1127
|
-
type: "callTool";
|
|
1128
|
-
} & {
|
|
1129
|
-
newMessage: ExpertMessage;
|
|
1130
|
-
toolCall: ToolCall;
|
|
1131
|
-
usage: Usage;
|
|
1132
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1133
|
-
type: "callTool";
|
|
1134
|
-
} & {
|
|
1135
|
-
newMessage: ExpertMessage;
|
|
1136
|
-
toolCall: ToolCall;
|
|
1137
|
-
usage: Usage;
|
|
1138
|
-
};
|
|
1139
|
-
declare const callInteractiveTool: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1140
|
-
type: "callInteractiveTool";
|
|
1141
|
-
} & {
|
|
1142
|
-
newMessage: ExpertMessage;
|
|
1143
|
-
toolCall: ToolCall;
|
|
1144
|
-
usage: Usage;
|
|
1145
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1146
|
-
type: "callInteractiveTool";
|
|
1147
|
-
} & {
|
|
1148
|
-
newMessage: ExpertMessage;
|
|
1149
|
-
toolCall: ToolCall;
|
|
1150
|
-
usage: Usage;
|
|
1151
|
-
};
|
|
1152
|
-
declare const callDelegate: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1153
|
-
type: "callDelegate";
|
|
1154
|
-
} & {
|
|
1155
|
-
newMessage: ExpertMessage;
|
|
1156
|
-
toolCall: ToolCall;
|
|
1157
|
-
usage: Usage;
|
|
1158
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1159
|
-
type: "callDelegate";
|
|
1160
|
-
} & {
|
|
1161
|
-
newMessage: ExpertMessage;
|
|
1162
|
-
toolCall: ToolCall;
|
|
1163
|
-
usage: Usage;
|
|
1164
|
-
};
|
|
1165
|
-
declare const resolveToolResult: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1166
|
-
type: "resolveToolResult";
|
|
1167
|
-
} & {
|
|
1168
|
-
toolResult: ToolResult;
|
|
1169
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1170
|
-
type: "resolveToolResult";
|
|
1171
|
-
} & {
|
|
1172
|
-
toolResult: ToolResult;
|
|
1173
|
-
};
|
|
1174
|
-
declare const resolveThought: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1175
|
-
type: "resolveThought";
|
|
1176
|
-
} & {
|
|
1177
|
-
toolResult: ToolResult;
|
|
1178
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1179
|
-
type: "resolveThought";
|
|
1180
|
-
} & {
|
|
1181
|
-
toolResult: ToolResult;
|
|
1182
|
-
};
|
|
1183
|
-
declare const resolvePdfFile: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1184
|
-
type: "resolvePdfFile";
|
|
1185
|
-
} & {
|
|
1186
|
-
toolResult: ToolResult;
|
|
1187
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1188
|
-
type: "resolvePdfFile";
|
|
1189
|
-
} & {
|
|
1190
|
-
toolResult: ToolResult;
|
|
1191
|
-
};
|
|
1192
|
-
declare const resolveImageFile: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1193
|
-
type: "resolveImageFile";
|
|
1194
|
-
} & {
|
|
1195
|
-
toolResult: ToolResult;
|
|
1196
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1197
|
-
type: "resolveImageFile";
|
|
1198
|
-
} & {
|
|
1199
|
-
toolResult: ToolResult;
|
|
1200
|
-
};
|
|
1201
|
-
declare const attemptCompletion: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1202
|
-
type: "attemptCompletion";
|
|
1203
|
-
} & {
|
|
1204
|
-
toolResult: ToolResult;
|
|
1205
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1206
|
-
type: "attemptCompletion";
|
|
1207
|
-
} & {
|
|
1208
|
-
toolResult: ToolResult;
|
|
1209
|
-
};
|
|
1210
|
-
declare const finishToolCall: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1211
|
-
type: "finishToolCall";
|
|
1212
|
-
} & {
|
|
1213
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
1214
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1215
|
-
type: "finishToolCall";
|
|
1216
|
-
} & {
|
|
1217
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
1218
|
-
};
|
|
1219
|
-
declare const completeRun: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1220
|
-
type: "completeRun";
|
|
1221
|
-
} & {
|
|
1222
|
-
checkpoint: Checkpoint;
|
|
1223
|
-
step: Step;
|
|
1224
|
-
text: string;
|
|
1225
|
-
usage: Usage;
|
|
1226
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1227
|
-
type: "completeRun";
|
|
1228
|
-
} & {
|
|
1229
|
-
checkpoint: Checkpoint;
|
|
1230
|
-
step: Step;
|
|
1231
|
-
text: string;
|
|
1232
|
-
usage: Usage;
|
|
1233
|
-
};
|
|
1234
|
-
declare const stopRunByInteractiveTool: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1235
|
-
type: "stopRunByInteractiveTool";
|
|
1236
|
-
} & {
|
|
1237
|
-
checkpoint: Checkpoint;
|
|
1238
|
-
step: Step;
|
|
1239
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1240
|
-
type: "stopRunByInteractiveTool";
|
|
1241
|
-
} & {
|
|
1242
|
-
checkpoint: Checkpoint;
|
|
1243
|
-
step: Step;
|
|
1244
|
-
};
|
|
1245
|
-
declare const stopRunByDelegate: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1246
|
-
type: "stopRunByDelegate";
|
|
1247
|
-
} & {
|
|
1248
|
-
checkpoint: Checkpoint;
|
|
1249
|
-
step: Step;
|
|
1250
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1251
|
-
type: "stopRunByDelegate";
|
|
1252
|
-
} & {
|
|
1253
|
-
checkpoint: Checkpoint;
|
|
1254
|
-
step: Step;
|
|
1255
|
-
};
|
|
1256
|
-
declare const stopRunByExceededMaxSteps: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1257
|
-
type: "stopRunByExceededMaxSteps";
|
|
1258
|
-
} & {
|
|
1259
|
-
checkpoint: Checkpoint;
|
|
1260
|
-
step: Step;
|
|
1261
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1262
|
-
type: "stopRunByExceededMaxSteps";
|
|
1263
|
-
} & {
|
|
1264
|
-
checkpoint: Checkpoint;
|
|
1265
|
-
step: Step;
|
|
1266
|
-
};
|
|
1267
|
-
declare const continueToNextStep: (setting: RunSetting, checkpoint: Checkpoint, data: Omit<BaseEvent & {
|
|
1268
|
-
type: "continueToNextStep";
|
|
1269
|
-
} & {
|
|
1270
|
-
checkpoint: Checkpoint;
|
|
1271
|
-
step: Step;
|
|
1272
|
-
nextCheckpoint: Checkpoint;
|
|
1273
|
-
}, "id" | "type" | "runId" | "stepNumber" | "expertKey" | "timestamp">) => BaseEvent & {
|
|
1274
|
-
type: "continueToNextStep";
|
|
1275
|
-
} & {
|
|
1276
|
-
checkpoint: Checkpoint;
|
|
1277
|
-
step: Step;
|
|
1278
|
-
nextCheckpoint: Checkpoint;
|
|
1279
|
-
};
|
|
1280
|
-
|
|
1281
|
-
declare function run(runInput: RunParamsInput, options?: {
|
|
1282
|
-
shouldContinueRun?: (setting: RunSetting, checkpoint: Checkpoint, step: Step) => Promise<boolean>;
|
|
1283
|
-
retrieveCheckpoint?: (checkpointId: string) => Promise<Checkpoint>;
|
|
1284
|
-
storeCheckpoint?: (checkpoint: Checkpoint, timestamp: number) => Promise<void>;
|
|
1285
|
-
eventListener?: (event: RunEvent) => Promise<void>;
|
|
1286
|
-
}): Promise<Checkpoint>;
|
|
1287
|
-
declare function getRunDir(runId: string): string;
|
|
1288
|
-
declare function parseConfig(config: string): Promise<PerstackConfig>;
|
|
1289
|
-
|
|
1290
|
-
type SkillType = "mcp" | "interactive" | "delegate";
|
|
1291
|
-
interface McpSkillManagerParams {
|
|
1292
|
-
type: "mcp";
|
|
1293
|
-
skill: McpStdioSkill | McpSseSkill;
|
|
1294
|
-
}
|
|
1295
|
-
interface InteractiveSkillManagerParams {
|
|
1296
|
-
type: "interactive";
|
|
1297
|
-
interactiveSkill: InteractiveSkill;
|
|
1298
|
-
}
|
|
1299
|
-
interface DelegateSkillManagerParams {
|
|
1300
|
-
type: "delegate";
|
|
1301
|
-
expert: Expert;
|
|
1302
|
-
}
|
|
1303
|
-
type SkillManagerParams = McpSkillManagerParams | InteractiveSkillManagerParams | DelegateSkillManagerParams;
|
|
1304
|
-
interface ToolDefinition {
|
|
1305
|
-
skillName: string;
|
|
1306
|
-
name: string;
|
|
1307
|
-
description?: string;
|
|
1308
|
-
inputSchema: {
|
|
1309
|
-
[k: string]: unknown;
|
|
1310
|
-
};
|
|
1311
|
-
interactive: boolean;
|
|
1312
|
-
}
|
|
3
|
+
import * as _perstack_core from '@perstack/core';
|
|
4
|
+
import { ToolDefinition, SkillType, McpStdioSkill, McpSseSkill, InteractiveSkill, Expert, SkillManagerParams, TextPart, ImageInlinePart, FileInlinePart, RunSetting, Step, Checkpoint, RunEvent, RunParamsInput, ProviderConfig, ProviderName, Usage } from '@perstack/core';
|
|
5
|
+
import { LanguageModel } from 'ai';
|
|
1313
6
|
|
|
1314
7
|
declare class SkillManager {
|
|
1315
8
|
protected _toolDefinitions: ToolDefinition[];
|
|
@@ -1321,6 +14,7 @@ declare class SkillManager {
|
|
|
1321
14
|
readonly expert?: Expert;
|
|
1322
15
|
private _mcpClient?;
|
|
1323
16
|
private _params;
|
|
17
|
+
private _env;
|
|
1324
18
|
constructor(params: SkillManagerParams);
|
|
1325
19
|
init(): Promise<void>;
|
|
1326
20
|
private _initMcpSkill;
|
|
@@ -1352,7 +46,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1352
46
|
type: "startRun";
|
|
1353
47
|
} & {
|
|
1354
48
|
initialCheckpoint: Checkpoint;
|
|
1355
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
49
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
1356
50
|
}) | ({
|
|
1357
51
|
id: string;
|
|
1358
52
|
expertKey: string;
|
|
@@ -1362,7 +56,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1362
56
|
} & {
|
|
1363
57
|
type: "startGeneration";
|
|
1364
58
|
} & {
|
|
1365
|
-
messages: Message[];
|
|
59
|
+
messages: _perstack_core.Message[];
|
|
1366
60
|
}) | ({
|
|
1367
61
|
id: string;
|
|
1368
62
|
expertKey: string;
|
|
@@ -1373,10 +67,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1373
67
|
type: "retry";
|
|
1374
68
|
} & {
|
|
1375
69
|
reason: string;
|
|
1376
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
1377
|
-
toolCall?: ToolCall;
|
|
1378
|
-
toolResult?: ToolResult;
|
|
1379
|
-
usage: Usage;
|
|
70
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
71
|
+
toolCall?: _perstack_core.ToolCall;
|
|
72
|
+
toolResult?: _perstack_core.ToolResult;
|
|
73
|
+
usage: _perstack_core.Usage;
|
|
1380
74
|
}) | ({
|
|
1381
75
|
id: string;
|
|
1382
76
|
expertKey: string;
|
|
@@ -1386,9 +80,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1386
80
|
} & {
|
|
1387
81
|
type: "callTool";
|
|
1388
82
|
} & {
|
|
1389
|
-
newMessage: ExpertMessage;
|
|
1390
|
-
toolCall: ToolCall;
|
|
1391
|
-
usage: Usage;
|
|
83
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
84
|
+
toolCall: _perstack_core.ToolCall;
|
|
85
|
+
usage: _perstack_core.Usage;
|
|
1392
86
|
}) | ({
|
|
1393
87
|
id: string;
|
|
1394
88
|
expertKey: string;
|
|
@@ -1398,9 +92,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1398
92
|
} & {
|
|
1399
93
|
type: "callInteractiveTool";
|
|
1400
94
|
} & {
|
|
1401
|
-
newMessage: ExpertMessage;
|
|
1402
|
-
toolCall: ToolCall;
|
|
1403
|
-
usage: Usage;
|
|
95
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
96
|
+
toolCall: _perstack_core.ToolCall;
|
|
97
|
+
usage: _perstack_core.Usage;
|
|
1404
98
|
}) | ({
|
|
1405
99
|
id: string;
|
|
1406
100
|
expertKey: string;
|
|
@@ -1410,9 +104,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1410
104
|
} & {
|
|
1411
105
|
type: "callDelegate";
|
|
1412
106
|
} & {
|
|
1413
|
-
newMessage: ExpertMessage;
|
|
1414
|
-
toolCall: ToolCall;
|
|
1415
|
-
usage: Usage;
|
|
107
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
108
|
+
toolCall: _perstack_core.ToolCall;
|
|
109
|
+
usage: _perstack_core.Usage;
|
|
1416
110
|
}) | ({
|
|
1417
111
|
id: string;
|
|
1418
112
|
expertKey: string;
|
|
@@ -1422,7 +116,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1422
116
|
} & {
|
|
1423
117
|
type: "resolveToolResult";
|
|
1424
118
|
} & {
|
|
1425
|
-
toolResult: ToolResult;
|
|
119
|
+
toolResult: _perstack_core.ToolResult;
|
|
1426
120
|
}) | ({
|
|
1427
121
|
id: string;
|
|
1428
122
|
expertKey: string;
|
|
@@ -1432,7 +126,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1432
126
|
} & {
|
|
1433
127
|
type: "resolveThought";
|
|
1434
128
|
} & {
|
|
1435
|
-
toolResult: ToolResult;
|
|
129
|
+
toolResult: _perstack_core.ToolResult;
|
|
1436
130
|
}) | ({
|
|
1437
131
|
id: string;
|
|
1438
132
|
expertKey: string;
|
|
@@ -1442,7 +136,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1442
136
|
} & {
|
|
1443
137
|
type: "resolvePdfFile";
|
|
1444
138
|
} & {
|
|
1445
|
-
toolResult: ToolResult;
|
|
139
|
+
toolResult: _perstack_core.ToolResult;
|
|
1446
140
|
}) | ({
|
|
1447
141
|
id: string;
|
|
1448
142
|
expertKey: string;
|
|
@@ -1452,7 +146,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1452
146
|
} & {
|
|
1453
147
|
type: "resolveImageFile";
|
|
1454
148
|
} & {
|
|
1455
|
-
toolResult: ToolResult;
|
|
149
|
+
toolResult: _perstack_core.ToolResult;
|
|
1456
150
|
}) | ({
|
|
1457
151
|
id: string;
|
|
1458
152
|
expertKey: string;
|
|
@@ -1462,7 +156,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1462
156
|
} & {
|
|
1463
157
|
type: "attemptCompletion";
|
|
1464
158
|
} & {
|
|
1465
|
-
toolResult: ToolResult;
|
|
159
|
+
toolResult: _perstack_core.ToolResult;
|
|
1466
160
|
}) | ({
|
|
1467
161
|
id: string;
|
|
1468
162
|
expertKey: string;
|
|
@@ -1472,7 +166,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1472
166
|
} & {
|
|
1473
167
|
type: "finishToolCall";
|
|
1474
168
|
} & {
|
|
1475
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
169
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
1476
170
|
}) | ({
|
|
1477
171
|
id: string;
|
|
1478
172
|
expertKey: string;
|
|
@@ -1530,7 +224,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1530
224
|
checkpoint: Checkpoint;
|
|
1531
225
|
step: Step;
|
|
1532
226
|
text: string;
|
|
1533
|
-
usage: Usage;
|
|
227
|
+
usage: _perstack_core.Usage;
|
|
1534
228
|
}), {}, never, never, never, never, "Init" | "PreparingForStep" | "GeneratingToolCall" | "FinishingStep" | "CallingTool" | "CallingInteractiveTool" | "CallingDelegate" | "ResolvingToolResult" | "ResolvingThought" | "ResolvingPdfFile" | "ResolvingImageFile" | "GeneratingRunResult" | "Stopped", string, {
|
|
1535
229
|
setting: RunSetting;
|
|
1536
230
|
initialCheckpoint: Checkpoint;
|
|
@@ -1572,7 +266,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1572
266
|
type: "startRun";
|
|
1573
267
|
} & {
|
|
1574
268
|
initialCheckpoint: Checkpoint;
|
|
1575
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
269
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
1576
270
|
}) | ({
|
|
1577
271
|
id: string;
|
|
1578
272
|
expertKey: string;
|
|
@@ -1582,7 +276,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1582
276
|
} & {
|
|
1583
277
|
type: "startGeneration";
|
|
1584
278
|
} & {
|
|
1585
|
-
messages: Message[];
|
|
279
|
+
messages: _perstack_core.Message[];
|
|
1586
280
|
}) | ({
|
|
1587
281
|
id: string;
|
|
1588
282
|
expertKey: string;
|
|
@@ -1593,10 +287,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1593
287
|
type: "retry";
|
|
1594
288
|
} & {
|
|
1595
289
|
reason: string;
|
|
1596
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
1597
|
-
toolCall?: ToolCall;
|
|
1598
|
-
toolResult?: ToolResult;
|
|
1599
|
-
usage: Usage;
|
|
290
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
291
|
+
toolCall?: _perstack_core.ToolCall;
|
|
292
|
+
toolResult?: _perstack_core.ToolResult;
|
|
293
|
+
usage: _perstack_core.Usage;
|
|
1600
294
|
}) | ({
|
|
1601
295
|
id: string;
|
|
1602
296
|
expertKey: string;
|
|
@@ -1606,9 +300,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1606
300
|
} & {
|
|
1607
301
|
type: "callTool";
|
|
1608
302
|
} & {
|
|
1609
|
-
newMessage: ExpertMessage;
|
|
1610
|
-
toolCall: ToolCall;
|
|
1611
|
-
usage: Usage;
|
|
303
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
304
|
+
toolCall: _perstack_core.ToolCall;
|
|
305
|
+
usage: _perstack_core.Usage;
|
|
1612
306
|
}) | ({
|
|
1613
307
|
id: string;
|
|
1614
308
|
expertKey: string;
|
|
@@ -1618,9 +312,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1618
312
|
} & {
|
|
1619
313
|
type: "callInteractiveTool";
|
|
1620
314
|
} & {
|
|
1621
|
-
newMessage: ExpertMessage;
|
|
1622
|
-
toolCall: ToolCall;
|
|
1623
|
-
usage: Usage;
|
|
315
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
316
|
+
toolCall: _perstack_core.ToolCall;
|
|
317
|
+
usage: _perstack_core.Usage;
|
|
1624
318
|
}) | ({
|
|
1625
319
|
id: string;
|
|
1626
320
|
expertKey: string;
|
|
@@ -1630,9 +324,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1630
324
|
} & {
|
|
1631
325
|
type: "callDelegate";
|
|
1632
326
|
} & {
|
|
1633
|
-
newMessage: ExpertMessage;
|
|
1634
|
-
toolCall: ToolCall;
|
|
1635
|
-
usage: Usage;
|
|
327
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
328
|
+
toolCall: _perstack_core.ToolCall;
|
|
329
|
+
usage: _perstack_core.Usage;
|
|
1636
330
|
}) | ({
|
|
1637
331
|
id: string;
|
|
1638
332
|
expertKey: string;
|
|
@@ -1642,7 +336,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1642
336
|
} & {
|
|
1643
337
|
type: "resolveToolResult";
|
|
1644
338
|
} & {
|
|
1645
|
-
toolResult: ToolResult;
|
|
339
|
+
toolResult: _perstack_core.ToolResult;
|
|
1646
340
|
}) | ({
|
|
1647
341
|
id: string;
|
|
1648
342
|
expertKey: string;
|
|
@@ -1652,7 +346,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1652
346
|
} & {
|
|
1653
347
|
type: "resolveThought";
|
|
1654
348
|
} & {
|
|
1655
|
-
toolResult: ToolResult;
|
|
349
|
+
toolResult: _perstack_core.ToolResult;
|
|
1656
350
|
}) | ({
|
|
1657
351
|
id: string;
|
|
1658
352
|
expertKey: string;
|
|
@@ -1662,7 +356,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1662
356
|
} & {
|
|
1663
357
|
type: "resolvePdfFile";
|
|
1664
358
|
} & {
|
|
1665
|
-
toolResult: ToolResult;
|
|
359
|
+
toolResult: _perstack_core.ToolResult;
|
|
1666
360
|
}) | ({
|
|
1667
361
|
id: string;
|
|
1668
362
|
expertKey: string;
|
|
@@ -1672,7 +366,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1672
366
|
} & {
|
|
1673
367
|
type: "resolveImageFile";
|
|
1674
368
|
} & {
|
|
1675
|
-
toolResult: ToolResult;
|
|
369
|
+
toolResult: _perstack_core.ToolResult;
|
|
1676
370
|
}) | ({
|
|
1677
371
|
id: string;
|
|
1678
372
|
expertKey: string;
|
|
@@ -1682,7 +376,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1682
376
|
} & {
|
|
1683
377
|
type: "attemptCompletion";
|
|
1684
378
|
} & {
|
|
1685
|
-
toolResult: ToolResult;
|
|
379
|
+
toolResult: _perstack_core.ToolResult;
|
|
1686
380
|
}) | ({
|
|
1687
381
|
id: string;
|
|
1688
382
|
expertKey: string;
|
|
@@ -1692,7 +386,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1692
386
|
} & {
|
|
1693
387
|
type: "finishToolCall";
|
|
1694
388
|
} & {
|
|
1695
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
389
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
1696
390
|
}) | ({
|
|
1697
391
|
id: string;
|
|
1698
392
|
expertKey: string;
|
|
@@ -1750,7 +444,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1750
444
|
checkpoint: Checkpoint;
|
|
1751
445
|
step: Step;
|
|
1752
446
|
text: string;
|
|
1753
|
-
usage: Usage;
|
|
447
|
+
usage: _perstack_core.Usage;
|
|
1754
448
|
}), Record<string, xstate.AnyActorRef | undefined>, xstate.StateValue, string, unknown, any, any>, ({
|
|
1755
449
|
id: string;
|
|
1756
450
|
expertKey: string;
|
|
@@ -1761,7 +455,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1761
455
|
type: "startRun";
|
|
1762
456
|
} & {
|
|
1763
457
|
initialCheckpoint: Checkpoint;
|
|
1764
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
458
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
1765
459
|
}) | ({
|
|
1766
460
|
id: string;
|
|
1767
461
|
expertKey: string;
|
|
@@ -1771,7 +465,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1771
465
|
} & {
|
|
1772
466
|
type: "startGeneration";
|
|
1773
467
|
} & {
|
|
1774
|
-
messages: Message[];
|
|
468
|
+
messages: _perstack_core.Message[];
|
|
1775
469
|
}) | ({
|
|
1776
470
|
id: string;
|
|
1777
471
|
expertKey: string;
|
|
@@ -1782,10 +476,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1782
476
|
type: "retry";
|
|
1783
477
|
} & {
|
|
1784
478
|
reason: string;
|
|
1785
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
1786
|
-
toolCall?: ToolCall;
|
|
1787
|
-
toolResult?: ToolResult;
|
|
1788
|
-
usage: Usage;
|
|
479
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
480
|
+
toolCall?: _perstack_core.ToolCall;
|
|
481
|
+
toolResult?: _perstack_core.ToolResult;
|
|
482
|
+
usage: _perstack_core.Usage;
|
|
1789
483
|
}) | ({
|
|
1790
484
|
id: string;
|
|
1791
485
|
expertKey: string;
|
|
@@ -1795,9 +489,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1795
489
|
} & {
|
|
1796
490
|
type: "callTool";
|
|
1797
491
|
} & {
|
|
1798
|
-
newMessage: ExpertMessage;
|
|
1799
|
-
toolCall: ToolCall;
|
|
1800
|
-
usage: Usage;
|
|
492
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
493
|
+
toolCall: _perstack_core.ToolCall;
|
|
494
|
+
usage: _perstack_core.Usage;
|
|
1801
495
|
}) | ({
|
|
1802
496
|
id: string;
|
|
1803
497
|
expertKey: string;
|
|
@@ -1807,9 +501,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1807
501
|
} & {
|
|
1808
502
|
type: "callInteractiveTool";
|
|
1809
503
|
} & {
|
|
1810
|
-
newMessage: ExpertMessage;
|
|
1811
|
-
toolCall: ToolCall;
|
|
1812
|
-
usage: Usage;
|
|
504
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
505
|
+
toolCall: _perstack_core.ToolCall;
|
|
506
|
+
usage: _perstack_core.Usage;
|
|
1813
507
|
}) | ({
|
|
1814
508
|
id: string;
|
|
1815
509
|
expertKey: string;
|
|
@@ -1819,9 +513,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1819
513
|
} & {
|
|
1820
514
|
type: "callDelegate";
|
|
1821
515
|
} & {
|
|
1822
|
-
newMessage: ExpertMessage;
|
|
1823
|
-
toolCall: ToolCall;
|
|
1824
|
-
usage: Usage;
|
|
516
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
517
|
+
toolCall: _perstack_core.ToolCall;
|
|
518
|
+
usage: _perstack_core.Usage;
|
|
1825
519
|
}) | ({
|
|
1826
520
|
id: string;
|
|
1827
521
|
expertKey: string;
|
|
@@ -1831,7 +525,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1831
525
|
} & {
|
|
1832
526
|
type: "resolveToolResult";
|
|
1833
527
|
} & {
|
|
1834
|
-
toolResult: ToolResult;
|
|
528
|
+
toolResult: _perstack_core.ToolResult;
|
|
1835
529
|
}) | ({
|
|
1836
530
|
id: string;
|
|
1837
531
|
expertKey: string;
|
|
@@ -1841,7 +535,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1841
535
|
} & {
|
|
1842
536
|
type: "resolveThought";
|
|
1843
537
|
} & {
|
|
1844
|
-
toolResult: ToolResult;
|
|
538
|
+
toolResult: _perstack_core.ToolResult;
|
|
1845
539
|
}) | ({
|
|
1846
540
|
id: string;
|
|
1847
541
|
expertKey: string;
|
|
@@ -1851,7 +545,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1851
545
|
} & {
|
|
1852
546
|
type: "resolvePdfFile";
|
|
1853
547
|
} & {
|
|
1854
|
-
toolResult: ToolResult;
|
|
548
|
+
toolResult: _perstack_core.ToolResult;
|
|
1855
549
|
}) | ({
|
|
1856
550
|
id: string;
|
|
1857
551
|
expertKey: string;
|
|
@@ -1861,7 +555,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1861
555
|
} & {
|
|
1862
556
|
type: "resolveImageFile";
|
|
1863
557
|
} & {
|
|
1864
|
-
toolResult: ToolResult;
|
|
558
|
+
toolResult: _perstack_core.ToolResult;
|
|
1865
559
|
}) | ({
|
|
1866
560
|
id: string;
|
|
1867
561
|
expertKey: string;
|
|
@@ -1871,7 +565,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1871
565
|
} & {
|
|
1872
566
|
type: "attemptCompletion";
|
|
1873
567
|
} & {
|
|
1874
|
-
toolResult: ToolResult;
|
|
568
|
+
toolResult: _perstack_core.ToolResult;
|
|
1875
569
|
}) | ({
|
|
1876
570
|
id: string;
|
|
1877
571
|
expertKey: string;
|
|
@@ -1881,7 +575,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1881
575
|
} & {
|
|
1882
576
|
type: "finishToolCall";
|
|
1883
577
|
} & {
|
|
1884
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
578
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
1885
579
|
}) | ({
|
|
1886
580
|
id: string;
|
|
1887
581
|
expertKey: string;
|
|
@@ -1939,10 +633,40 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1939
633
|
checkpoint: Checkpoint;
|
|
1940
634
|
step: Step;
|
|
1941
635
|
text: string;
|
|
1942
|
-
usage: Usage;
|
|
636
|
+
usage: _perstack_core.Usage;
|
|
1943
637
|
}), xstate.AnyEventObject>;
|
|
1944
638
|
}) => {
|
|
1945
639
|
setting: {
|
|
640
|
+
model: string;
|
|
641
|
+
providerConfig: {
|
|
642
|
+
name: "anthropic";
|
|
643
|
+
apiKey: string;
|
|
644
|
+
baseUrl?: string | undefined;
|
|
645
|
+
} | {
|
|
646
|
+
name: "google";
|
|
647
|
+
apiKey: string;
|
|
648
|
+
baseUrl?: string | undefined;
|
|
649
|
+
} | {
|
|
650
|
+
name: "openai";
|
|
651
|
+
apiKey: string;
|
|
652
|
+
baseUrl?: string | undefined;
|
|
653
|
+
organization?: string | undefined;
|
|
654
|
+
project?: string | undefined;
|
|
655
|
+
} | {
|
|
656
|
+
name: "ollama";
|
|
657
|
+
baseUrl?: string | undefined;
|
|
658
|
+
} | {
|
|
659
|
+
name: "azure-openai";
|
|
660
|
+
apiKey: string;
|
|
661
|
+
resourceName: string;
|
|
662
|
+
apiVersion?: string | undefined;
|
|
663
|
+
} | {
|
|
664
|
+
name: "amazon-bedrock";
|
|
665
|
+
accessKeyId: string;
|
|
666
|
+
secretAccessKey: string;
|
|
667
|
+
region: string;
|
|
668
|
+
sessionToken?: string | undefined;
|
|
669
|
+
};
|
|
1946
670
|
runId: string;
|
|
1947
671
|
expertKey: string;
|
|
1948
672
|
input: {
|
|
@@ -1998,14 +722,17 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
1998
722
|
description?: string | undefined;
|
|
1999
723
|
};
|
|
2000
724
|
};
|
|
2001
|
-
model: string;
|
|
2002
725
|
temperature: number;
|
|
2003
|
-
maxSteps: number;
|
|
2004
726
|
maxRetries: number;
|
|
2005
727
|
timeout: number;
|
|
2006
728
|
startedAt: number;
|
|
2007
729
|
updatedAt: number;
|
|
730
|
+
perstackApiBaseUrl: string;
|
|
731
|
+
env: Record<string, string>;
|
|
732
|
+
maxSteps?: number | undefined;
|
|
2008
733
|
workspace?: string | undefined;
|
|
734
|
+
perstackApiKey?: string | undefined;
|
|
735
|
+
perstackBaseSkillArgs?: string[] | undefined;
|
|
2009
736
|
};
|
|
2010
737
|
checkpoint: {
|
|
2011
738
|
id: string;
|
|
@@ -2109,8 +836,6 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2109
836
|
totalTokens: number;
|
|
2110
837
|
cachedInputTokens: number;
|
|
2111
838
|
};
|
|
2112
|
-
contextWindow: number;
|
|
2113
|
-
contextWindowUsage: number;
|
|
2114
839
|
delegateTo?: {
|
|
2115
840
|
expert: {
|
|
2116
841
|
key: string;
|
|
@@ -2131,6 +856,8 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2131
856
|
toolName: string;
|
|
2132
857
|
checkpointId: string;
|
|
2133
858
|
} | undefined;
|
|
859
|
+
contextWindow?: number | undefined;
|
|
860
|
+
contextWindowUsage?: number | undefined;
|
|
2134
861
|
};
|
|
2135
862
|
step: {
|
|
2136
863
|
stepNumber: number;
|
|
@@ -2169,7 +896,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2169
896
|
type: "startRun";
|
|
2170
897
|
} & {
|
|
2171
898
|
initialCheckpoint: Checkpoint;
|
|
2172
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
899
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
2173
900
|
}, ({
|
|
2174
901
|
id: string;
|
|
2175
902
|
expertKey: string;
|
|
@@ -2180,7 +907,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2180
907
|
type: "startRun";
|
|
2181
908
|
} & {
|
|
2182
909
|
initialCheckpoint: Checkpoint;
|
|
2183
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
910
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
2184
911
|
}) | ({
|
|
2185
912
|
id: string;
|
|
2186
913
|
expertKey: string;
|
|
@@ -2190,7 +917,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2190
917
|
} & {
|
|
2191
918
|
type: "startGeneration";
|
|
2192
919
|
} & {
|
|
2193
|
-
messages: Message[];
|
|
920
|
+
messages: _perstack_core.Message[];
|
|
2194
921
|
}) | ({
|
|
2195
922
|
id: string;
|
|
2196
923
|
expertKey: string;
|
|
@@ -2201,10 +928,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2201
928
|
type: "retry";
|
|
2202
929
|
} & {
|
|
2203
930
|
reason: string;
|
|
2204
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
2205
|
-
toolCall?: ToolCall;
|
|
2206
|
-
toolResult?: ToolResult;
|
|
2207
|
-
usage: Usage;
|
|
931
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
932
|
+
toolCall?: _perstack_core.ToolCall;
|
|
933
|
+
toolResult?: _perstack_core.ToolResult;
|
|
934
|
+
usage: _perstack_core.Usage;
|
|
2208
935
|
}) | ({
|
|
2209
936
|
id: string;
|
|
2210
937
|
expertKey: string;
|
|
@@ -2214,9 +941,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2214
941
|
} & {
|
|
2215
942
|
type: "callTool";
|
|
2216
943
|
} & {
|
|
2217
|
-
newMessage: ExpertMessage;
|
|
2218
|
-
toolCall: ToolCall;
|
|
2219
|
-
usage: Usage;
|
|
944
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
945
|
+
toolCall: _perstack_core.ToolCall;
|
|
946
|
+
usage: _perstack_core.Usage;
|
|
2220
947
|
}) | ({
|
|
2221
948
|
id: string;
|
|
2222
949
|
expertKey: string;
|
|
@@ -2226,9 +953,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2226
953
|
} & {
|
|
2227
954
|
type: "callInteractiveTool";
|
|
2228
955
|
} & {
|
|
2229
|
-
newMessage: ExpertMessage;
|
|
2230
|
-
toolCall: ToolCall;
|
|
2231
|
-
usage: Usage;
|
|
956
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
957
|
+
toolCall: _perstack_core.ToolCall;
|
|
958
|
+
usage: _perstack_core.Usage;
|
|
2232
959
|
}) | ({
|
|
2233
960
|
id: string;
|
|
2234
961
|
expertKey: string;
|
|
@@ -2238,9 +965,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2238
965
|
} & {
|
|
2239
966
|
type: "callDelegate";
|
|
2240
967
|
} & {
|
|
2241
|
-
newMessage: ExpertMessage;
|
|
2242
|
-
toolCall: ToolCall;
|
|
2243
|
-
usage: Usage;
|
|
968
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
969
|
+
toolCall: _perstack_core.ToolCall;
|
|
970
|
+
usage: _perstack_core.Usage;
|
|
2244
971
|
}) | ({
|
|
2245
972
|
id: string;
|
|
2246
973
|
expertKey: string;
|
|
@@ -2250,7 +977,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2250
977
|
} & {
|
|
2251
978
|
type: "resolveToolResult";
|
|
2252
979
|
} & {
|
|
2253
|
-
toolResult: ToolResult;
|
|
980
|
+
toolResult: _perstack_core.ToolResult;
|
|
2254
981
|
}) | ({
|
|
2255
982
|
id: string;
|
|
2256
983
|
expertKey: string;
|
|
@@ -2260,7 +987,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2260
987
|
} & {
|
|
2261
988
|
type: "resolveThought";
|
|
2262
989
|
} & {
|
|
2263
|
-
toolResult: ToolResult;
|
|
990
|
+
toolResult: _perstack_core.ToolResult;
|
|
2264
991
|
}) | ({
|
|
2265
992
|
id: string;
|
|
2266
993
|
expertKey: string;
|
|
@@ -2270,7 +997,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2270
997
|
} & {
|
|
2271
998
|
type: "resolvePdfFile";
|
|
2272
999
|
} & {
|
|
2273
|
-
toolResult: ToolResult;
|
|
1000
|
+
toolResult: _perstack_core.ToolResult;
|
|
2274
1001
|
}) | ({
|
|
2275
1002
|
id: string;
|
|
2276
1003
|
expertKey: string;
|
|
@@ -2280,7 +1007,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2280
1007
|
} & {
|
|
2281
1008
|
type: "resolveImageFile";
|
|
2282
1009
|
} & {
|
|
2283
|
-
toolResult: ToolResult;
|
|
1010
|
+
toolResult: _perstack_core.ToolResult;
|
|
2284
1011
|
}) | ({
|
|
2285
1012
|
id: string;
|
|
2286
1013
|
expertKey: string;
|
|
@@ -2290,7 +1017,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2290
1017
|
} & {
|
|
2291
1018
|
type: "attemptCompletion";
|
|
2292
1019
|
} & {
|
|
2293
|
-
toolResult: ToolResult;
|
|
1020
|
+
toolResult: _perstack_core.ToolResult;
|
|
2294
1021
|
}) | ({
|
|
2295
1022
|
id: string;
|
|
2296
1023
|
expertKey: string;
|
|
@@ -2300,7 +1027,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2300
1027
|
} & {
|
|
2301
1028
|
type: "finishToolCall";
|
|
2302
1029
|
} & {
|
|
2303
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
1030
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
2304
1031
|
}) | ({
|
|
2305
1032
|
id: string;
|
|
2306
1033
|
expertKey: string;
|
|
@@ -2358,7 +1085,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2358
1085
|
checkpoint: Checkpoint;
|
|
2359
1086
|
step: Step;
|
|
2360
1087
|
text: string;
|
|
2361
|
-
usage: Usage;
|
|
1088
|
+
usage: _perstack_core.Usage;
|
|
2362
1089
|
}), undefined, never, never, never, never, never>;
|
|
2363
1090
|
};
|
|
2364
1091
|
};
|
|
@@ -2382,7 +1109,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2382
1109
|
} & {
|
|
2383
1110
|
type: "startGeneration";
|
|
2384
1111
|
} & {
|
|
2385
|
-
messages: Message[];
|
|
1112
|
+
messages: _perstack_core.Message[];
|
|
2386
1113
|
}, ({
|
|
2387
1114
|
id: string;
|
|
2388
1115
|
expertKey: string;
|
|
@@ -2393,7 +1120,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2393
1120
|
type: "startRun";
|
|
2394
1121
|
} & {
|
|
2395
1122
|
initialCheckpoint: Checkpoint;
|
|
2396
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
1123
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
2397
1124
|
}) | ({
|
|
2398
1125
|
id: string;
|
|
2399
1126
|
expertKey: string;
|
|
@@ -2403,7 +1130,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2403
1130
|
} & {
|
|
2404
1131
|
type: "startGeneration";
|
|
2405
1132
|
} & {
|
|
2406
|
-
messages: Message[];
|
|
1133
|
+
messages: _perstack_core.Message[];
|
|
2407
1134
|
}) | ({
|
|
2408
1135
|
id: string;
|
|
2409
1136
|
expertKey: string;
|
|
@@ -2414,10 +1141,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2414
1141
|
type: "retry";
|
|
2415
1142
|
} & {
|
|
2416
1143
|
reason: string;
|
|
2417
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
2418
|
-
toolCall?: ToolCall;
|
|
2419
|
-
toolResult?: ToolResult;
|
|
2420
|
-
usage: Usage;
|
|
1144
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
1145
|
+
toolCall?: _perstack_core.ToolCall;
|
|
1146
|
+
toolResult?: _perstack_core.ToolResult;
|
|
1147
|
+
usage: _perstack_core.Usage;
|
|
2421
1148
|
}) | ({
|
|
2422
1149
|
id: string;
|
|
2423
1150
|
expertKey: string;
|
|
@@ -2427,9 +1154,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2427
1154
|
} & {
|
|
2428
1155
|
type: "callTool";
|
|
2429
1156
|
} & {
|
|
2430
|
-
newMessage: ExpertMessage;
|
|
2431
|
-
toolCall: ToolCall;
|
|
2432
|
-
usage: Usage;
|
|
1157
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1158
|
+
toolCall: _perstack_core.ToolCall;
|
|
1159
|
+
usage: _perstack_core.Usage;
|
|
2433
1160
|
}) | ({
|
|
2434
1161
|
id: string;
|
|
2435
1162
|
expertKey: string;
|
|
@@ -2439,9 +1166,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2439
1166
|
} & {
|
|
2440
1167
|
type: "callInteractiveTool";
|
|
2441
1168
|
} & {
|
|
2442
|
-
newMessage: ExpertMessage;
|
|
2443
|
-
toolCall: ToolCall;
|
|
2444
|
-
usage: Usage;
|
|
1169
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1170
|
+
toolCall: _perstack_core.ToolCall;
|
|
1171
|
+
usage: _perstack_core.Usage;
|
|
2445
1172
|
}) | ({
|
|
2446
1173
|
id: string;
|
|
2447
1174
|
expertKey: string;
|
|
@@ -2451,9 +1178,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2451
1178
|
} & {
|
|
2452
1179
|
type: "callDelegate";
|
|
2453
1180
|
} & {
|
|
2454
|
-
newMessage: ExpertMessage;
|
|
2455
|
-
toolCall: ToolCall;
|
|
2456
|
-
usage: Usage;
|
|
1181
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1182
|
+
toolCall: _perstack_core.ToolCall;
|
|
1183
|
+
usage: _perstack_core.Usage;
|
|
2457
1184
|
}) | ({
|
|
2458
1185
|
id: string;
|
|
2459
1186
|
expertKey: string;
|
|
@@ -2463,7 +1190,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2463
1190
|
} & {
|
|
2464
1191
|
type: "resolveToolResult";
|
|
2465
1192
|
} & {
|
|
2466
|
-
toolResult: ToolResult;
|
|
1193
|
+
toolResult: _perstack_core.ToolResult;
|
|
2467
1194
|
}) | ({
|
|
2468
1195
|
id: string;
|
|
2469
1196
|
expertKey: string;
|
|
@@ -2473,7 +1200,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2473
1200
|
} & {
|
|
2474
1201
|
type: "resolveThought";
|
|
2475
1202
|
} & {
|
|
2476
|
-
toolResult: ToolResult;
|
|
1203
|
+
toolResult: _perstack_core.ToolResult;
|
|
2477
1204
|
}) | ({
|
|
2478
1205
|
id: string;
|
|
2479
1206
|
expertKey: string;
|
|
@@ -2483,7 +1210,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2483
1210
|
} & {
|
|
2484
1211
|
type: "resolvePdfFile";
|
|
2485
1212
|
} & {
|
|
2486
|
-
toolResult: ToolResult;
|
|
1213
|
+
toolResult: _perstack_core.ToolResult;
|
|
2487
1214
|
}) | ({
|
|
2488
1215
|
id: string;
|
|
2489
1216
|
expertKey: string;
|
|
@@ -2493,7 +1220,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2493
1220
|
} & {
|
|
2494
1221
|
type: "resolveImageFile";
|
|
2495
1222
|
} & {
|
|
2496
|
-
toolResult: ToolResult;
|
|
1223
|
+
toolResult: _perstack_core.ToolResult;
|
|
2497
1224
|
}) | ({
|
|
2498
1225
|
id: string;
|
|
2499
1226
|
expertKey: string;
|
|
@@ -2503,7 +1230,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2503
1230
|
} & {
|
|
2504
1231
|
type: "attemptCompletion";
|
|
2505
1232
|
} & {
|
|
2506
|
-
toolResult: ToolResult;
|
|
1233
|
+
toolResult: _perstack_core.ToolResult;
|
|
2507
1234
|
}) | ({
|
|
2508
1235
|
id: string;
|
|
2509
1236
|
expertKey: string;
|
|
@@ -2513,7 +1240,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2513
1240
|
} & {
|
|
2514
1241
|
type: "finishToolCall";
|
|
2515
1242
|
} & {
|
|
2516
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
1243
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
2517
1244
|
}) | ({
|
|
2518
1245
|
id: string;
|
|
2519
1246
|
expertKey: string;
|
|
@@ -2571,7 +1298,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2571
1298
|
checkpoint: Checkpoint;
|
|
2572
1299
|
step: Step;
|
|
2573
1300
|
text: string;
|
|
2574
|
-
usage: Usage;
|
|
1301
|
+
usage: _perstack_core.Usage;
|
|
2575
1302
|
}), undefined, never, never, never, never, never>;
|
|
2576
1303
|
};
|
|
2577
1304
|
};
|
|
@@ -2596,10 +1323,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2596
1323
|
type: "retry";
|
|
2597
1324
|
} & {
|
|
2598
1325
|
reason: string;
|
|
2599
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
2600
|
-
toolCall?: ToolCall;
|
|
2601
|
-
toolResult?: ToolResult;
|
|
2602
|
-
usage: Usage;
|
|
1326
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
1327
|
+
toolCall?: _perstack_core.ToolCall;
|
|
1328
|
+
toolResult?: _perstack_core.ToolResult;
|
|
1329
|
+
usage: _perstack_core.Usage;
|
|
2603
1330
|
}, ({
|
|
2604
1331
|
id: string;
|
|
2605
1332
|
expertKey: string;
|
|
@@ -2610,7 +1337,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2610
1337
|
type: "startRun";
|
|
2611
1338
|
} & {
|
|
2612
1339
|
initialCheckpoint: Checkpoint;
|
|
2613
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
1340
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
2614
1341
|
}) | ({
|
|
2615
1342
|
id: string;
|
|
2616
1343
|
expertKey: string;
|
|
@@ -2620,7 +1347,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2620
1347
|
} & {
|
|
2621
1348
|
type: "startGeneration";
|
|
2622
1349
|
} & {
|
|
2623
|
-
messages: Message[];
|
|
1350
|
+
messages: _perstack_core.Message[];
|
|
2624
1351
|
}) | ({
|
|
2625
1352
|
id: string;
|
|
2626
1353
|
expertKey: string;
|
|
@@ -2631,10 +1358,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2631
1358
|
type: "retry";
|
|
2632
1359
|
} & {
|
|
2633
1360
|
reason: string;
|
|
2634
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
2635
|
-
toolCall?: ToolCall;
|
|
2636
|
-
toolResult?: ToolResult;
|
|
2637
|
-
usage: Usage;
|
|
1361
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
1362
|
+
toolCall?: _perstack_core.ToolCall;
|
|
1363
|
+
toolResult?: _perstack_core.ToolResult;
|
|
1364
|
+
usage: _perstack_core.Usage;
|
|
2638
1365
|
}) | ({
|
|
2639
1366
|
id: string;
|
|
2640
1367
|
expertKey: string;
|
|
@@ -2644,9 +1371,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2644
1371
|
} & {
|
|
2645
1372
|
type: "callTool";
|
|
2646
1373
|
} & {
|
|
2647
|
-
newMessage: ExpertMessage;
|
|
2648
|
-
toolCall: ToolCall;
|
|
2649
|
-
usage: Usage;
|
|
1374
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1375
|
+
toolCall: _perstack_core.ToolCall;
|
|
1376
|
+
usage: _perstack_core.Usage;
|
|
2650
1377
|
}) | ({
|
|
2651
1378
|
id: string;
|
|
2652
1379
|
expertKey: string;
|
|
@@ -2656,9 +1383,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2656
1383
|
} & {
|
|
2657
1384
|
type: "callInteractiveTool";
|
|
2658
1385
|
} & {
|
|
2659
|
-
newMessage: ExpertMessage;
|
|
2660
|
-
toolCall: ToolCall;
|
|
2661
|
-
usage: Usage;
|
|
1386
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1387
|
+
toolCall: _perstack_core.ToolCall;
|
|
1388
|
+
usage: _perstack_core.Usage;
|
|
2662
1389
|
}) | ({
|
|
2663
1390
|
id: string;
|
|
2664
1391
|
expertKey: string;
|
|
@@ -2668,9 +1395,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2668
1395
|
} & {
|
|
2669
1396
|
type: "callDelegate";
|
|
2670
1397
|
} & {
|
|
2671
|
-
newMessage: ExpertMessage;
|
|
2672
|
-
toolCall: ToolCall;
|
|
2673
|
-
usage: Usage;
|
|
1398
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1399
|
+
toolCall: _perstack_core.ToolCall;
|
|
1400
|
+
usage: _perstack_core.Usage;
|
|
2674
1401
|
}) | ({
|
|
2675
1402
|
id: string;
|
|
2676
1403
|
expertKey: string;
|
|
@@ -2680,7 +1407,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2680
1407
|
} & {
|
|
2681
1408
|
type: "resolveToolResult";
|
|
2682
1409
|
} & {
|
|
2683
|
-
toolResult: ToolResult;
|
|
1410
|
+
toolResult: _perstack_core.ToolResult;
|
|
2684
1411
|
}) | ({
|
|
2685
1412
|
id: string;
|
|
2686
1413
|
expertKey: string;
|
|
@@ -2690,7 +1417,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2690
1417
|
} & {
|
|
2691
1418
|
type: "resolveThought";
|
|
2692
1419
|
} & {
|
|
2693
|
-
toolResult: ToolResult;
|
|
1420
|
+
toolResult: _perstack_core.ToolResult;
|
|
2694
1421
|
}) | ({
|
|
2695
1422
|
id: string;
|
|
2696
1423
|
expertKey: string;
|
|
@@ -2700,7 +1427,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2700
1427
|
} & {
|
|
2701
1428
|
type: "resolvePdfFile";
|
|
2702
1429
|
} & {
|
|
2703
|
-
toolResult: ToolResult;
|
|
1430
|
+
toolResult: _perstack_core.ToolResult;
|
|
2704
1431
|
}) | ({
|
|
2705
1432
|
id: string;
|
|
2706
1433
|
expertKey: string;
|
|
@@ -2710,7 +1437,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2710
1437
|
} & {
|
|
2711
1438
|
type: "resolveImageFile";
|
|
2712
1439
|
} & {
|
|
2713
|
-
toolResult: ToolResult;
|
|
1440
|
+
toolResult: _perstack_core.ToolResult;
|
|
2714
1441
|
}) | ({
|
|
2715
1442
|
id: string;
|
|
2716
1443
|
expertKey: string;
|
|
@@ -2720,7 +1447,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2720
1447
|
} & {
|
|
2721
1448
|
type: "attemptCompletion";
|
|
2722
1449
|
} & {
|
|
2723
|
-
toolResult: ToolResult;
|
|
1450
|
+
toolResult: _perstack_core.ToolResult;
|
|
2724
1451
|
}) | ({
|
|
2725
1452
|
id: string;
|
|
2726
1453
|
expertKey: string;
|
|
@@ -2730,7 +1457,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2730
1457
|
} & {
|
|
2731
1458
|
type: "finishToolCall";
|
|
2732
1459
|
} & {
|
|
2733
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
1460
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
2734
1461
|
}) | ({
|
|
2735
1462
|
id: string;
|
|
2736
1463
|
expertKey: string;
|
|
@@ -2788,7 +1515,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2788
1515
|
checkpoint: Checkpoint;
|
|
2789
1516
|
step: Step;
|
|
2790
1517
|
text: string;
|
|
2791
|
-
usage: Usage;
|
|
1518
|
+
usage: _perstack_core.Usage;
|
|
2792
1519
|
}), undefined, never, never, never, never, never>;
|
|
2793
1520
|
};
|
|
2794
1521
|
readonly callTool: {
|
|
@@ -2808,9 +1535,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2808
1535
|
} & {
|
|
2809
1536
|
type: "callTool";
|
|
2810
1537
|
} & {
|
|
2811
|
-
newMessage: ExpertMessage;
|
|
2812
|
-
toolCall: ToolCall;
|
|
2813
|
-
usage: Usage;
|
|
1538
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1539
|
+
toolCall: _perstack_core.ToolCall;
|
|
1540
|
+
usage: _perstack_core.Usage;
|
|
2814
1541
|
}, ({
|
|
2815
1542
|
id: string;
|
|
2816
1543
|
expertKey: string;
|
|
@@ -2821,7 +1548,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2821
1548
|
type: "startRun";
|
|
2822
1549
|
} & {
|
|
2823
1550
|
initialCheckpoint: Checkpoint;
|
|
2824
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
1551
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
2825
1552
|
}) | ({
|
|
2826
1553
|
id: string;
|
|
2827
1554
|
expertKey: string;
|
|
@@ -2831,7 +1558,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2831
1558
|
} & {
|
|
2832
1559
|
type: "startGeneration";
|
|
2833
1560
|
} & {
|
|
2834
|
-
messages: Message[];
|
|
1561
|
+
messages: _perstack_core.Message[];
|
|
2835
1562
|
}) | ({
|
|
2836
1563
|
id: string;
|
|
2837
1564
|
expertKey: string;
|
|
@@ -2842,10 +1569,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2842
1569
|
type: "retry";
|
|
2843
1570
|
} & {
|
|
2844
1571
|
reason: string;
|
|
2845
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
2846
|
-
toolCall?: ToolCall;
|
|
2847
|
-
toolResult?: ToolResult;
|
|
2848
|
-
usage: Usage;
|
|
1572
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
1573
|
+
toolCall?: _perstack_core.ToolCall;
|
|
1574
|
+
toolResult?: _perstack_core.ToolResult;
|
|
1575
|
+
usage: _perstack_core.Usage;
|
|
2849
1576
|
}) | ({
|
|
2850
1577
|
id: string;
|
|
2851
1578
|
expertKey: string;
|
|
@@ -2855,9 +1582,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2855
1582
|
} & {
|
|
2856
1583
|
type: "callTool";
|
|
2857
1584
|
} & {
|
|
2858
|
-
newMessage: ExpertMessage;
|
|
2859
|
-
toolCall: ToolCall;
|
|
2860
|
-
usage: Usage;
|
|
1585
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1586
|
+
toolCall: _perstack_core.ToolCall;
|
|
1587
|
+
usage: _perstack_core.Usage;
|
|
2861
1588
|
}) | ({
|
|
2862
1589
|
id: string;
|
|
2863
1590
|
expertKey: string;
|
|
@@ -2867,9 +1594,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2867
1594
|
} & {
|
|
2868
1595
|
type: "callInteractiveTool";
|
|
2869
1596
|
} & {
|
|
2870
|
-
newMessage: ExpertMessage;
|
|
2871
|
-
toolCall: ToolCall;
|
|
2872
|
-
usage: Usage;
|
|
1597
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1598
|
+
toolCall: _perstack_core.ToolCall;
|
|
1599
|
+
usage: _perstack_core.Usage;
|
|
2873
1600
|
}) | ({
|
|
2874
1601
|
id: string;
|
|
2875
1602
|
expertKey: string;
|
|
@@ -2879,9 +1606,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2879
1606
|
} & {
|
|
2880
1607
|
type: "callDelegate";
|
|
2881
1608
|
} & {
|
|
2882
|
-
newMessage: ExpertMessage;
|
|
2883
|
-
toolCall: ToolCall;
|
|
2884
|
-
usage: Usage;
|
|
1609
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1610
|
+
toolCall: _perstack_core.ToolCall;
|
|
1611
|
+
usage: _perstack_core.Usage;
|
|
2885
1612
|
}) | ({
|
|
2886
1613
|
id: string;
|
|
2887
1614
|
expertKey: string;
|
|
@@ -2891,7 +1618,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2891
1618
|
} & {
|
|
2892
1619
|
type: "resolveToolResult";
|
|
2893
1620
|
} & {
|
|
2894
|
-
toolResult: ToolResult;
|
|
1621
|
+
toolResult: _perstack_core.ToolResult;
|
|
2895
1622
|
}) | ({
|
|
2896
1623
|
id: string;
|
|
2897
1624
|
expertKey: string;
|
|
@@ -2901,7 +1628,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2901
1628
|
} & {
|
|
2902
1629
|
type: "resolveThought";
|
|
2903
1630
|
} & {
|
|
2904
|
-
toolResult: ToolResult;
|
|
1631
|
+
toolResult: _perstack_core.ToolResult;
|
|
2905
1632
|
}) | ({
|
|
2906
1633
|
id: string;
|
|
2907
1634
|
expertKey: string;
|
|
@@ -2911,7 +1638,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2911
1638
|
} & {
|
|
2912
1639
|
type: "resolvePdfFile";
|
|
2913
1640
|
} & {
|
|
2914
|
-
toolResult: ToolResult;
|
|
1641
|
+
toolResult: _perstack_core.ToolResult;
|
|
2915
1642
|
}) | ({
|
|
2916
1643
|
id: string;
|
|
2917
1644
|
expertKey: string;
|
|
@@ -2921,7 +1648,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2921
1648
|
} & {
|
|
2922
1649
|
type: "resolveImageFile";
|
|
2923
1650
|
} & {
|
|
2924
|
-
toolResult: ToolResult;
|
|
1651
|
+
toolResult: _perstack_core.ToolResult;
|
|
2925
1652
|
}) | ({
|
|
2926
1653
|
id: string;
|
|
2927
1654
|
expertKey: string;
|
|
@@ -2931,7 +1658,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2931
1658
|
} & {
|
|
2932
1659
|
type: "attemptCompletion";
|
|
2933
1660
|
} & {
|
|
2934
|
-
toolResult: ToolResult;
|
|
1661
|
+
toolResult: _perstack_core.ToolResult;
|
|
2935
1662
|
}) | ({
|
|
2936
1663
|
id: string;
|
|
2937
1664
|
expertKey: string;
|
|
@@ -2941,7 +1668,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2941
1668
|
} & {
|
|
2942
1669
|
type: "finishToolCall";
|
|
2943
1670
|
} & {
|
|
2944
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
1671
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
2945
1672
|
}) | ({
|
|
2946
1673
|
id: string;
|
|
2947
1674
|
expertKey: string;
|
|
@@ -2999,7 +1726,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
2999
1726
|
checkpoint: Checkpoint;
|
|
3000
1727
|
step: Step;
|
|
3001
1728
|
text: string;
|
|
3002
|
-
usage: Usage;
|
|
1729
|
+
usage: _perstack_core.Usage;
|
|
3003
1730
|
}), undefined, never, never, never, never, never>;
|
|
3004
1731
|
};
|
|
3005
1732
|
readonly callInteractiveTool: {
|
|
@@ -3019,9 +1746,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3019
1746
|
} & {
|
|
3020
1747
|
type: "callInteractiveTool";
|
|
3021
1748
|
} & {
|
|
3022
|
-
newMessage: ExpertMessage;
|
|
3023
|
-
toolCall: ToolCall;
|
|
3024
|
-
usage: Usage;
|
|
1749
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1750
|
+
toolCall: _perstack_core.ToolCall;
|
|
1751
|
+
usage: _perstack_core.Usage;
|
|
3025
1752
|
}, ({
|
|
3026
1753
|
id: string;
|
|
3027
1754
|
expertKey: string;
|
|
@@ -3032,7 +1759,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3032
1759
|
type: "startRun";
|
|
3033
1760
|
} & {
|
|
3034
1761
|
initialCheckpoint: Checkpoint;
|
|
3035
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
1762
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
3036
1763
|
}) | ({
|
|
3037
1764
|
id: string;
|
|
3038
1765
|
expertKey: string;
|
|
@@ -3042,7 +1769,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3042
1769
|
} & {
|
|
3043
1770
|
type: "startGeneration";
|
|
3044
1771
|
} & {
|
|
3045
|
-
messages: Message[];
|
|
1772
|
+
messages: _perstack_core.Message[];
|
|
3046
1773
|
}) | ({
|
|
3047
1774
|
id: string;
|
|
3048
1775
|
expertKey: string;
|
|
@@ -3053,10 +1780,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3053
1780
|
type: "retry";
|
|
3054
1781
|
} & {
|
|
3055
1782
|
reason: string;
|
|
3056
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
3057
|
-
toolCall?: ToolCall;
|
|
3058
|
-
toolResult?: ToolResult;
|
|
3059
|
-
usage: Usage;
|
|
1783
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
1784
|
+
toolCall?: _perstack_core.ToolCall;
|
|
1785
|
+
toolResult?: _perstack_core.ToolResult;
|
|
1786
|
+
usage: _perstack_core.Usage;
|
|
3060
1787
|
}) | ({
|
|
3061
1788
|
id: string;
|
|
3062
1789
|
expertKey: string;
|
|
@@ -3066,9 +1793,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3066
1793
|
} & {
|
|
3067
1794
|
type: "callTool";
|
|
3068
1795
|
} & {
|
|
3069
|
-
newMessage: ExpertMessage;
|
|
3070
|
-
toolCall: ToolCall;
|
|
3071
|
-
usage: Usage;
|
|
1796
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1797
|
+
toolCall: _perstack_core.ToolCall;
|
|
1798
|
+
usage: _perstack_core.Usage;
|
|
3072
1799
|
}) | ({
|
|
3073
1800
|
id: string;
|
|
3074
1801
|
expertKey: string;
|
|
@@ -3078,9 +1805,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3078
1805
|
} & {
|
|
3079
1806
|
type: "callInteractiveTool";
|
|
3080
1807
|
} & {
|
|
3081
|
-
newMessage: ExpertMessage;
|
|
3082
|
-
toolCall: ToolCall;
|
|
3083
|
-
usage: Usage;
|
|
1808
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1809
|
+
toolCall: _perstack_core.ToolCall;
|
|
1810
|
+
usage: _perstack_core.Usage;
|
|
3084
1811
|
}) | ({
|
|
3085
1812
|
id: string;
|
|
3086
1813
|
expertKey: string;
|
|
@@ -3090,9 +1817,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3090
1817
|
} & {
|
|
3091
1818
|
type: "callDelegate";
|
|
3092
1819
|
} & {
|
|
3093
|
-
newMessage: ExpertMessage;
|
|
3094
|
-
toolCall: ToolCall;
|
|
3095
|
-
usage: Usage;
|
|
1820
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1821
|
+
toolCall: _perstack_core.ToolCall;
|
|
1822
|
+
usage: _perstack_core.Usage;
|
|
3096
1823
|
}) | ({
|
|
3097
1824
|
id: string;
|
|
3098
1825
|
expertKey: string;
|
|
@@ -3102,7 +1829,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3102
1829
|
} & {
|
|
3103
1830
|
type: "resolveToolResult";
|
|
3104
1831
|
} & {
|
|
3105
|
-
toolResult: ToolResult;
|
|
1832
|
+
toolResult: _perstack_core.ToolResult;
|
|
3106
1833
|
}) | ({
|
|
3107
1834
|
id: string;
|
|
3108
1835
|
expertKey: string;
|
|
@@ -3112,7 +1839,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3112
1839
|
} & {
|
|
3113
1840
|
type: "resolveThought";
|
|
3114
1841
|
} & {
|
|
3115
|
-
toolResult: ToolResult;
|
|
1842
|
+
toolResult: _perstack_core.ToolResult;
|
|
3116
1843
|
}) | ({
|
|
3117
1844
|
id: string;
|
|
3118
1845
|
expertKey: string;
|
|
@@ -3122,7 +1849,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3122
1849
|
} & {
|
|
3123
1850
|
type: "resolvePdfFile";
|
|
3124
1851
|
} & {
|
|
3125
|
-
toolResult: ToolResult;
|
|
1852
|
+
toolResult: _perstack_core.ToolResult;
|
|
3126
1853
|
}) | ({
|
|
3127
1854
|
id: string;
|
|
3128
1855
|
expertKey: string;
|
|
@@ -3132,7 +1859,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3132
1859
|
} & {
|
|
3133
1860
|
type: "resolveImageFile";
|
|
3134
1861
|
} & {
|
|
3135
|
-
toolResult: ToolResult;
|
|
1862
|
+
toolResult: _perstack_core.ToolResult;
|
|
3136
1863
|
}) | ({
|
|
3137
1864
|
id: string;
|
|
3138
1865
|
expertKey: string;
|
|
@@ -3142,7 +1869,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3142
1869
|
} & {
|
|
3143
1870
|
type: "attemptCompletion";
|
|
3144
1871
|
} & {
|
|
3145
|
-
toolResult: ToolResult;
|
|
1872
|
+
toolResult: _perstack_core.ToolResult;
|
|
3146
1873
|
}) | ({
|
|
3147
1874
|
id: string;
|
|
3148
1875
|
expertKey: string;
|
|
@@ -3152,7 +1879,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3152
1879
|
} & {
|
|
3153
1880
|
type: "finishToolCall";
|
|
3154
1881
|
} & {
|
|
3155
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
1882
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
3156
1883
|
}) | ({
|
|
3157
1884
|
id: string;
|
|
3158
1885
|
expertKey: string;
|
|
@@ -3210,7 +1937,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3210
1937
|
checkpoint: Checkpoint;
|
|
3211
1938
|
step: Step;
|
|
3212
1939
|
text: string;
|
|
3213
|
-
usage: Usage;
|
|
1940
|
+
usage: _perstack_core.Usage;
|
|
3214
1941
|
}), undefined, never, never, never, never, never>;
|
|
3215
1942
|
};
|
|
3216
1943
|
readonly callDelegate: {
|
|
@@ -3230,9 +1957,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3230
1957
|
} & {
|
|
3231
1958
|
type: "callDelegate";
|
|
3232
1959
|
} & {
|
|
3233
|
-
newMessage: ExpertMessage;
|
|
3234
|
-
toolCall: ToolCall;
|
|
3235
|
-
usage: Usage;
|
|
1960
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
1961
|
+
toolCall: _perstack_core.ToolCall;
|
|
1962
|
+
usage: _perstack_core.Usage;
|
|
3236
1963
|
}, ({
|
|
3237
1964
|
id: string;
|
|
3238
1965
|
expertKey: string;
|
|
@@ -3243,7 +1970,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3243
1970
|
type: "startRun";
|
|
3244
1971
|
} & {
|
|
3245
1972
|
initialCheckpoint: Checkpoint;
|
|
3246
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
1973
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
3247
1974
|
}) | ({
|
|
3248
1975
|
id: string;
|
|
3249
1976
|
expertKey: string;
|
|
@@ -3253,7 +1980,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3253
1980
|
} & {
|
|
3254
1981
|
type: "startGeneration";
|
|
3255
1982
|
} & {
|
|
3256
|
-
messages: Message[];
|
|
1983
|
+
messages: _perstack_core.Message[];
|
|
3257
1984
|
}) | ({
|
|
3258
1985
|
id: string;
|
|
3259
1986
|
expertKey: string;
|
|
@@ -3264,10 +1991,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3264
1991
|
type: "retry";
|
|
3265
1992
|
} & {
|
|
3266
1993
|
reason: string;
|
|
3267
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
3268
|
-
toolCall?: ToolCall;
|
|
3269
|
-
toolResult?: ToolResult;
|
|
3270
|
-
usage: Usage;
|
|
1994
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
1995
|
+
toolCall?: _perstack_core.ToolCall;
|
|
1996
|
+
toolResult?: _perstack_core.ToolResult;
|
|
1997
|
+
usage: _perstack_core.Usage;
|
|
3271
1998
|
}) | ({
|
|
3272
1999
|
id: string;
|
|
3273
2000
|
expertKey: string;
|
|
@@ -3277,9 +2004,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3277
2004
|
} & {
|
|
3278
2005
|
type: "callTool";
|
|
3279
2006
|
} & {
|
|
3280
|
-
newMessage: ExpertMessage;
|
|
3281
|
-
toolCall: ToolCall;
|
|
3282
|
-
usage: Usage;
|
|
2007
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2008
|
+
toolCall: _perstack_core.ToolCall;
|
|
2009
|
+
usage: _perstack_core.Usage;
|
|
3283
2010
|
}) | ({
|
|
3284
2011
|
id: string;
|
|
3285
2012
|
expertKey: string;
|
|
@@ -3289,9 +2016,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3289
2016
|
} & {
|
|
3290
2017
|
type: "callInteractiveTool";
|
|
3291
2018
|
} & {
|
|
3292
|
-
newMessage: ExpertMessage;
|
|
3293
|
-
toolCall: ToolCall;
|
|
3294
|
-
usage: Usage;
|
|
2019
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2020
|
+
toolCall: _perstack_core.ToolCall;
|
|
2021
|
+
usage: _perstack_core.Usage;
|
|
3295
2022
|
}) | ({
|
|
3296
2023
|
id: string;
|
|
3297
2024
|
expertKey: string;
|
|
@@ -3301,9 +2028,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3301
2028
|
} & {
|
|
3302
2029
|
type: "callDelegate";
|
|
3303
2030
|
} & {
|
|
3304
|
-
newMessage: ExpertMessage;
|
|
3305
|
-
toolCall: ToolCall;
|
|
3306
|
-
usage: Usage;
|
|
2031
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2032
|
+
toolCall: _perstack_core.ToolCall;
|
|
2033
|
+
usage: _perstack_core.Usage;
|
|
3307
2034
|
}) | ({
|
|
3308
2035
|
id: string;
|
|
3309
2036
|
expertKey: string;
|
|
@@ -3313,7 +2040,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3313
2040
|
} & {
|
|
3314
2041
|
type: "resolveToolResult";
|
|
3315
2042
|
} & {
|
|
3316
|
-
toolResult: ToolResult;
|
|
2043
|
+
toolResult: _perstack_core.ToolResult;
|
|
3317
2044
|
}) | ({
|
|
3318
2045
|
id: string;
|
|
3319
2046
|
expertKey: string;
|
|
@@ -3323,7 +2050,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3323
2050
|
} & {
|
|
3324
2051
|
type: "resolveThought";
|
|
3325
2052
|
} & {
|
|
3326
|
-
toolResult: ToolResult;
|
|
2053
|
+
toolResult: _perstack_core.ToolResult;
|
|
3327
2054
|
}) | ({
|
|
3328
2055
|
id: string;
|
|
3329
2056
|
expertKey: string;
|
|
@@ -3333,7 +2060,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3333
2060
|
} & {
|
|
3334
2061
|
type: "resolvePdfFile";
|
|
3335
2062
|
} & {
|
|
3336
|
-
toolResult: ToolResult;
|
|
2063
|
+
toolResult: _perstack_core.ToolResult;
|
|
3337
2064
|
}) | ({
|
|
3338
2065
|
id: string;
|
|
3339
2066
|
expertKey: string;
|
|
@@ -3343,7 +2070,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3343
2070
|
} & {
|
|
3344
2071
|
type: "resolveImageFile";
|
|
3345
2072
|
} & {
|
|
3346
|
-
toolResult: ToolResult;
|
|
2073
|
+
toolResult: _perstack_core.ToolResult;
|
|
3347
2074
|
}) | ({
|
|
3348
2075
|
id: string;
|
|
3349
2076
|
expertKey: string;
|
|
@@ -3353,7 +2080,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3353
2080
|
} & {
|
|
3354
2081
|
type: "attemptCompletion";
|
|
3355
2082
|
} & {
|
|
3356
|
-
toolResult: ToolResult;
|
|
2083
|
+
toolResult: _perstack_core.ToolResult;
|
|
3357
2084
|
}) | ({
|
|
3358
2085
|
id: string;
|
|
3359
2086
|
expertKey: string;
|
|
@@ -3363,7 +2090,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3363
2090
|
} & {
|
|
3364
2091
|
type: "finishToolCall";
|
|
3365
2092
|
} & {
|
|
3366
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
2093
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
3367
2094
|
}) | ({
|
|
3368
2095
|
id: string;
|
|
3369
2096
|
expertKey: string;
|
|
@@ -3421,7 +2148,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3421
2148
|
checkpoint: Checkpoint;
|
|
3422
2149
|
step: Step;
|
|
3423
2150
|
text: string;
|
|
3424
|
-
usage: Usage;
|
|
2151
|
+
usage: _perstack_core.Usage;
|
|
3425
2152
|
}), undefined, never, never, never, never, never>;
|
|
3426
2153
|
};
|
|
3427
2154
|
};
|
|
@@ -3445,7 +2172,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3445
2172
|
} & {
|
|
3446
2173
|
type: "resolveToolResult";
|
|
3447
2174
|
} & {
|
|
3448
|
-
toolResult: ToolResult;
|
|
2175
|
+
toolResult: _perstack_core.ToolResult;
|
|
3449
2176
|
}, ({
|
|
3450
2177
|
id: string;
|
|
3451
2178
|
expertKey: string;
|
|
@@ -3456,7 +2183,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3456
2183
|
type: "startRun";
|
|
3457
2184
|
} & {
|
|
3458
2185
|
initialCheckpoint: Checkpoint;
|
|
3459
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
2186
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
3460
2187
|
}) | ({
|
|
3461
2188
|
id: string;
|
|
3462
2189
|
expertKey: string;
|
|
@@ -3466,7 +2193,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3466
2193
|
} & {
|
|
3467
2194
|
type: "startGeneration";
|
|
3468
2195
|
} & {
|
|
3469
|
-
messages: Message[];
|
|
2196
|
+
messages: _perstack_core.Message[];
|
|
3470
2197
|
}) | ({
|
|
3471
2198
|
id: string;
|
|
3472
2199
|
expertKey: string;
|
|
@@ -3477,10 +2204,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3477
2204
|
type: "retry";
|
|
3478
2205
|
} & {
|
|
3479
2206
|
reason: string;
|
|
3480
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
3481
|
-
toolCall?: ToolCall;
|
|
3482
|
-
toolResult?: ToolResult;
|
|
3483
|
-
usage: Usage;
|
|
2207
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
2208
|
+
toolCall?: _perstack_core.ToolCall;
|
|
2209
|
+
toolResult?: _perstack_core.ToolResult;
|
|
2210
|
+
usage: _perstack_core.Usage;
|
|
3484
2211
|
}) | ({
|
|
3485
2212
|
id: string;
|
|
3486
2213
|
expertKey: string;
|
|
@@ -3490,9 +2217,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3490
2217
|
} & {
|
|
3491
2218
|
type: "callTool";
|
|
3492
2219
|
} & {
|
|
3493
|
-
newMessage: ExpertMessage;
|
|
3494
|
-
toolCall: ToolCall;
|
|
3495
|
-
usage: Usage;
|
|
2220
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2221
|
+
toolCall: _perstack_core.ToolCall;
|
|
2222
|
+
usage: _perstack_core.Usage;
|
|
3496
2223
|
}) | ({
|
|
3497
2224
|
id: string;
|
|
3498
2225
|
expertKey: string;
|
|
@@ -3502,9 +2229,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3502
2229
|
} & {
|
|
3503
2230
|
type: "callInteractiveTool";
|
|
3504
2231
|
} & {
|
|
3505
|
-
newMessage: ExpertMessage;
|
|
3506
|
-
toolCall: ToolCall;
|
|
3507
|
-
usage: Usage;
|
|
2232
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2233
|
+
toolCall: _perstack_core.ToolCall;
|
|
2234
|
+
usage: _perstack_core.Usage;
|
|
3508
2235
|
}) | ({
|
|
3509
2236
|
id: string;
|
|
3510
2237
|
expertKey: string;
|
|
@@ -3514,9 +2241,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3514
2241
|
} & {
|
|
3515
2242
|
type: "callDelegate";
|
|
3516
2243
|
} & {
|
|
3517
|
-
newMessage: ExpertMessage;
|
|
3518
|
-
toolCall: ToolCall;
|
|
3519
|
-
usage: Usage;
|
|
2244
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2245
|
+
toolCall: _perstack_core.ToolCall;
|
|
2246
|
+
usage: _perstack_core.Usage;
|
|
3520
2247
|
}) | ({
|
|
3521
2248
|
id: string;
|
|
3522
2249
|
expertKey: string;
|
|
@@ -3526,7 +2253,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3526
2253
|
} & {
|
|
3527
2254
|
type: "resolveToolResult";
|
|
3528
2255
|
} & {
|
|
3529
|
-
toolResult: ToolResult;
|
|
2256
|
+
toolResult: _perstack_core.ToolResult;
|
|
3530
2257
|
}) | ({
|
|
3531
2258
|
id: string;
|
|
3532
2259
|
expertKey: string;
|
|
@@ -3536,7 +2263,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3536
2263
|
} & {
|
|
3537
2264
|
type: "resolveThought";
|
|
3538
2265
|
} & {
|
|
3539
|
-
toolResult: ToolResult;
|
|
2266
|
+
toolResult: _perstack_core.ToolResult;
|
|
3540
2267
|
}) | ({
|
|
3541
2268
|
id: string;
|
|
3542
2269
|
expertKey: string;
|
|
@@ -3546,7 +2273,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3546
2273
|
} & {
|
|
3547
2274
|
type: "resolvePdfFile";
|
|
3548
2275
|
} & {
|
|
3549
|
-
toolResult: ToolResult;
|
|
2276
|
+
toolResult: _perstack_core.ToolResult;
|
|
3550
2277
|
}) | ({
|
|
3551
2278
|
id: string;
|
|
3552
2279
|
expertKey: string;
|
|
@@ -3556,7 +2283,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3556
2283
|
} & {
|
|
3557
2284
|
type: "resolveImageFile";
|
|
3558
2285
|
} & {
|
|
3559
|
-
toolResult: ToolResult;
|
|
2286
|
+
toolResult: _perstack_core.ToolResult;
|
|
3560
2287
|
}) | ({
|
|
3561
2288
|
id: string;
|
|
3562
2289
|
expertKey: string;
|
|
@@ -3566,7 +2293,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3566
2293
|
} & {
|
|
3567
2294
|
type: "attemptCompletion";
|
|
3568
2295
|
} & {
|
|
3569
|
-
toolResult: ToolResult;
|
|
2296
|
+
toolResult: _perstack_core.ToolResult;
|
|
3570
2297
|
}) | ({
|
|
3571
2298
|
id: string;
|
|
3572
2299
|
expertKey: string;
|
|
@@ -3576,7 +2303,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3576
2303
|
} & {
|
|
3577
2304
|
type: "finishToolCall";
|
|
3578
2305
|
} & {
|
|
3579
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
2306
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
3580
2307
|
}) | ({
|
|
3581
2308
|
id: string;
|
|
3582
2309
|
expertKey: string;
|
|
@@ -3634,7 +2361,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3634
2361
|
checkpoint: Checkpoint;
|
|
3635
2362
|
step: Step;
|
|
3636
2363
|
text: string;
|
|
3637
|
-
usage: Usage;
|
|
2364
|
+
usage: _perstack_core.Usage;
|
|
3638
2365
|
}), undefined, never, never, never, never, never>;
|
|
3639
2366
|
};
|
|
3640
2367
|
readonly resolveThought: {
|
|
@@ -3654,7 +2381,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3654
2381
|
} & {
|
|
3655
2382
|
type: "resolveThought";
|
|
3656
2383
|
} & {
|
|
3657
|
-
toolResult: ToolResult;
|
|
2384
|
+
toolResult: _perstack_core.ToolResult;
|
|
3658
2385
|
}, ({
|
|
3659
2386
|
id: string;
|
|
3660
2387
|
expertKey: string;
|
|
@@ -3665,7 +2392,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3665
2392
|
type: "startRun";
|
|
3666
2393
|
} & {
|
|
3667
2394
|
initialCheckpoint: Checkpoint;
|
|
3668
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
2395
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
3669
2396
|
}) | ({
|
|
3670
2397
|
id: string;
|
|
3671
2398
|
expertKey: string;
|
|
@@ -3675,7 +2402,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3675
2402
|
} & {
|
|
3676
2403
|
type: "startGeneration";
|
|
3677
2404
|
} & {
|
|
3678
|
-
messages: Message[];
|
|
2405
|
+
messages: _perstack_core.Message[];
|
|
3679
2406
|
}) | ({
|
|
3680
2407
|
id: string;
|
|
3681
2408
|
expertKey: string;
|
|
@@ -3686,10 +2413,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3686
2413
|
type: "retry";
|
|
3687
2414
|
} & {
|
|
3688
2415
|
reason: string;
|
|
3689
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
3690
|
-
toolCall?: ToolCall;
|
|
3691
|
-
toolResult?: ToolResult;
|
|
3692
|
-
usage: Usage;
|
|
2416
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
2417
|
+
toolCall?: _perstack_core.ToolCall;
|
|
2418
|
+
toolResult?: _perstack_core.ToolResult;
|
|
2419
|
+
usage: _perstack_core.Usage;
|
|
3693
2420
|
}) | ({
|
|
3694
2421
|
id: string;
|
|
3695
2422
|
expertKey: string;
|
|
@@ -3699,9 +2426,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3699
2426
|
} & {
|
|
3700
2427
|
type: "callTool";
|
|
3701
2428
|
} & {
|
|
3702
|
-
newMessage: ExpertMessage;
|
|
3703
|
-
toolCall: ToolCall;
|
|
3704
|
-
usage: Usage;
|
|
2429
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2430
|
+
toolCall: _perstack_core.ToolCall;
|
|
2431
|
+
usage: _perstack_core.Usage;
|
|
3705
2432
|
}) | ({
|
|
3706
2433
|
id: string;
|
|
3707
2434
|
expertKey: string;
|
|
@@ -3711,9 +2438,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3711
2438
|
} & {
|
|
3712
2439
|
type: "callInteractiveTool";
|
|
3713
2440
|
} & {
|
|
3714
|
-
newMessage: ExpertMessage;
|
|
3715
|
-
toolCall: ToolCall;
|
|
3716
|
-
usage: Usage;
|
|
2441
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2442
|
+
toolCall: _perstack_core.ToolCall;
|
|
2443
|
+
usage: _perstack_core.Usage;
|
|
3717
2444
|
}) | ({
|
|
3718
2445
|
id: string;
|
|
3719
2446
|
expertKey: string;
|
|
@@ -3723,9 +2450,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3723
2450
|
} & {
|
|
3724
2451
|
type: "callDelegate";
|
|
3725
2452
|
} & {
|
|
3726
|
-
newMessage: ExpertMessage;
|
|
3727
|
-
toolCall: ToolCall;
|
|
3728
|
-
usage: Usage;
|
|
2453
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2454
|
+
toolCall: _perstack_core.ToolCall;
|
|
2455
|
+
usage: _perstack_core.Usage;
|
|
3729
2456
|
}) | ({
|
|
3730
2457
|
id: string;
|
|
3731
2458
|
expertKey: string;
|
|
@@ -3735,7 +2462,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3735
2462
|
} & {
|
|
3736
2463
|
type: "resolveToolResult";
|
|
3737
2464
|
} & {
|
|
3738
|
-
toolResult: ToolResult;
|
|
2465
|
+
toolResult: _perstack_core.ToolResult;
|
|
3739
2466
|
}) | ({
|
|
3740
2467
|
id: string;
|
|
3741
2468
|
expertKey: string;
|
|
@@ -3745,7 +2472,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3745
2472
|
} & {
|
|
3746
2473
|
type: "resolveThought";
|
|
3747
2474
|
} & {
|
|
3748
|
-
toolResult: ToolResult;
|
|
2475
|
+
toolResult: _perstack_core.ToolResult;
|
|
3749
2476
|
}) | ({
|
|
3750
2477
|
id: string;
|
|
3751
2478
|
expertKey: string;
|
|
@@ -3755,7 +2482,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3755
2482
|
} & {
|
|
3756
2483
|
type: "resolvePdfFile";
|
|
3757
2484
|
} & {
|
|
3758
|
-
toolResult: ToolResult;
|
|
2485
|
+
toolResult: _perstack_core.ToolResult;
|
|
3759
2486
|
}) | ({
|
|
3760
2487
|
id: string;
|
|
3761
2488
|
expertKey: string;
|
|
@@ -3765,7 +2492,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3765
2492
|
} & {
|
|
3766
2493
|
type: "resolveImageFile";
|
|
3767
2494
|
} & {
|
|
3768
|
-
toolResult: ToolResult;
|
|
2495
|
+
toolResult: _perstack_core.ToolResult;
|
|
3769
2496
|
}) | ({
|
|
3770
2497
|
id: string;
|
|
3771
2498
|
expertKey: string;
|
|
@@ -3775,7 +2502,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3775
2502
|
} & {
|
|
3776
2503
|
type: "attemptCompletion";
|
|
3777
2504
|
} & {
|
|
3778
|
-
toolResult: ToolResult;
|
|
2505
|
+
toolResult: _perstack_core.ToolResult;
|
|
3779
2506
|
}) | ({
|
|
3780
2507
|
id: string;
|
|
3781
2508
|
expertKey: string;
|
|
@@ -3785,7 +2512,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3785
2512
|
} & {
|
|
3786
2513
|
type: "finishToolCall";
|
|
3787
2514
|
} & {
|
|
3788
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
2515
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
3789
2516
|
}) | ({
|
|
3790
2517
|
id: string;
|
|
3791
2518
|
expertKey: string;
|
|
@@ -3843,7 +2570,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3843
2570
|
checkpoint: Checkpoint;
|
|
3844
2571
|
step: Step;
|
|
3845
2572
|
text: string;
|
|
3846
|
-
usage: Usage;
|
|
2573
|
+
usage: _perstack_core.Usage;
|
|
3847
2574
|
}), undefined, never, never, never, never, never>;
|
|
3848
2575
|
};
|
|
3849
2576
|
readonly resolvePdfFile: {
|
|
@@ -3863,7 +2590,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3863
2590
|
} & {
|
|
3864
2591
|
type: "resolvePdfFile";
|
|
3865
2592
|
} & {
|
|
3866
|
-
toolResult: ToolResult;
|
|
2593
|
+
toolResult: _perstack_core.ToolResult;
|
|
3867
2594
|
}, ({
|
|
3868
2595
|
id: string;
|
|
3869
2596
|
expertKey: string;
|
|
@@ -3874,7 +2601,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3874
2601
|
type: "startRun";
|
|
3875
2602
|
} & {
|
|
3876
2603
|
initialCheckpoint: Checkpoint;
|
|
3877
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
2604
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
3878
2605
|
}) | ({
|
|
3879
2606
|
id: string;
|
|
3880
2607
|
expertKey: string;
|
|
@@ -3884,7 +2611,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3884
2611
|
} & {
|
|
3885
2612
|
type: "startGeneration";
|
|
3886
2613
|
} & {
|
|
3887
|
-
messages: Message[];
|
|
2614
|
+
messages: _perstack_core.Message[];
|
|
3888
2615
|
}) | ({
|
|
3889
2616
|
id: string;
|
|
3890
2617
|
expertKey: string;
|
|
@@ -3895,10 +2622,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3895
2622
|
type: "retry";
|
|
3896
2623
|
} & {
|
|
3897
2624
|
reason: string;
|
|
3898
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
3899
|
-
toolCall?: ToolCall;
|
|
3900
|
-
toolResult?: ToolResult;
|
|
3901
|
-
usage: Usage;
|
|
2625
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
2626
|
+
toolCall?: _perstack_core.ToolCall;
|
|
2627
|
+
toolResult?: _perstack_core.ToolResult;
|
|
2628
|
+
usage: _perstack_core.Usage;
|
|
3902
2629
|
}) | ({
|
|
3903
2630
|
id: string;
|
|
3904
2631
|
expertKey: string;
|
|
@@ -3908,9 +2635,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3908
2635
|
} & {
|
|
3909
2636
|
type: "callTool";
|
|
3910
2637
|
} & {
|
|
3911
|
-
newMessage: ExpertMessage;
|
|
3912
|
-
toolCall: ToolCall;
|
|
3913
|
-
usage: Usage;
|
|
2638
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2639
|
+
toolCall: _perstack_core.ToolCall;
|
|
2640
|
+
usage: _perstack_core.Usage;
|
|
3914
2641
|
}) | ({
|
|
3915
2642
|
id: string;
|
|
3916
2643
|
expertKey: string;
|
|
@@ -3920,9 +2647,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3920
2647
|
} & {
|
|
3921
2648
|
type: "callInteractiveTool";
|
|
3922
2649
|
} & {
|
|
3923
|
-
newMessage: ExpertMessage;
|
|
3924
|
-
toolCall: ToolCall;
|
|
3925
|
-
usage: Usage;
|
|
2650
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2651
|
+
toolCall: _perstack_core.ToolCall;
|
|
2652
|
+
usage: _perstack_core.Usage;
|
|
3926
2653
|
}) | ({
|
|
3927
2654
|
id: string;
|
|
3928
2655
|
expertKey: string;
|
|
@@ -3932,9 +2659,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3932
2659
|
} & {
|
|
3933
2660
|
type: "callDelegate";
|
|
3934
2661
|
} & {
|
|
3935
|
-
newMessage: ExpertMessage;
|
|
3936
|
-
toolCall: ToolCall;
|
|
3937
|
-
usage: Usage;
|
|
2662
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2663
|
+
toolCall: _perstack_core.ToolCall;
|
|
2664
|
+
usage: _perstack_core.Usage;
|
|
3938
2665
|
}) | ({
|
|
3939
2666
|
id: string;
|
|
3940
2667
|
expertKey: string;
|
|
@@ -3944,7 +2671,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3944
2671
|
} & {
|
|
3945
2672
|
type: "resolveToolResult";
|
|
3946
2673
|
} & {
|
|
3947
|
-
toolResult: ToolResult;
|
|
2674
|
+
toolResult: _perstack_core.ToolResult;
|
|
3948
2675
|
}) | ({
|
|
3949
2676
|
id: string;
|
|
3950
2677
|
expertKey: string;
|
|
@@ -3954,7 +2681,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3954
2681
|
} & {
|
|
3955
2682
|
type: "resolveThought";
|
|
3956
2683
|
} & {
|
|
3957
|
-
toolResult: ToolResult;
|
|
2684
|
+
toolResult: _perstack_core.ToolResult;
|
|
3958
2685
|
}) | ({
|
|
3959
2686
|
id: string;
|
|
3960
2687
|
expertKey: string;
|
|
@@ -3964,7 +2691,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3964
2691
|
} & {
|
|
3965
2692
|
type: "resolvePdfFile";
|
|
3966
2693
|
} & {
|
|
3967
|
-
toolResult: ToolResult;
|
|
2694
|
+
toolResult: _perstack_core.ToolResult;
|
|
3968
2695
|
}) | ({
|
|
3969
2696
|
id: string;
|
|
3970
2697
|
expertKey: string;
|
|
@@ -3974,7 +2701,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3974
2701
|
} & {
|
|
3975
2702
|
type: "resolveImageFile";
|
|
3976
2703
|
} & {
|
|
3977
|
-
toolResult: ToolResult;
|
|
2704
|
+
toolResult: _perstack_core.ToolResult;
|
|
3978
2705
|
}) | ({
|
|
3979
2706
|
id: string;
|
|
3980
2707
|
expertKey: string;
|
|
@@ -3984,7 +2711,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3984
2711
|
} & {
|
|
3985
2712
|
type: "attemptCompletion";
|
|
3986
2713
|
} & {
|
|
3987
|
-
toolResult: ToolResult;
|
|
2714
|
+
toolResult: _perstack_core.ToolResult;
|
|
3988
2715
|
}) | ({
|
|
3989
2716
|
id: string;
|
|
3990
2717
|
expertKey: string;
|
|
@@ -3994,7 +2721,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
3994
2721
|
} & {
|
|
3995
2722
|
type: "finishToolCall";
|
|
3996
2723
|
} & {
|
|
3997
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
2724
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
3998
2725
|
}) | ({
|
|
3999
2726
|
id: string;
|
|
4000
2727
|
expertKey: string;
|
|
@@ -4052,7 +2779,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4052
2779
|
checkpoint: Checkpoint;
|
|
4053
2780
|
step: Step;
|
|
4054
2781
|
text: string;
|
|
4055
|
-
usage: Usage;
|
|
2782
|
+
usage: _perstack_core.Usage;
|
|
4056
2783
|
}), undefined, never, never, never, never, never>;
|
|
4057
2784
|
};
|
|
4058
2785
|
readonly resolveImageFile: {
|
|
@@ -4072,7 +2799,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4072
2799
|
} & {
|
|
4073
2800
|
type: "resolveImageFile";
|
|
4074
2801
|
} & {
|
|
4075
|
-
toolResult: ToolResult;
|
|
2802
|
+
toolResult: _perstack_core.ToolResult;
|
|
4076
2803
|
}, ({
|
|
4077
2804
|
id: string;
|
|
4078
2805
|
expertKey: string;
|
|
@@ -4083,7 +2810,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4083
2810
|
type: "startRun";
|
|
4084
2811
|
} & {
|
|
4085
2812
|
initialCheckpoint: Checkpoint;
|
|
4086
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
2813
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4087
2814
|
}) | ({
|
|
4088
2815
|
id: string;
|
|
4089
2816
|
expertKey: string;
|
|
@@ -4093,7 +2820,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4093
2820
|
} & {
|
|
4094
2821
|
type: "startGeneration";
|
|
4095
2822
|
} & {
|
|
4096
|
-
messages: Message[];
|
|
2823
|
+
messages: _perstack_core.Message[];
|
|
4097
2824
|
}) | ({
|
|
4098
2825
|
id: string;
|
|
4099
2826
|
expertKey: string;
|
|
@@ -4104,10 +2831,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4104
2831
|
type: "retry";
|
|
4105
2832
|
} & {
|
|
4106
2833
|
reason: string;
|
|
4107
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
4108
|
-
toolCall?: ToolCall;
|
|
4109
|
-
toolResult?: ToolResult;
|
|
4110
|
-
usage: Usage;
|
|
2834
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
2835
|
+
toolCall?: _perstack_core.ToolCall;
|
|
2836
|
+
toolResult?: _perstack_core.ToolResult;
|
|
2837
|
+
usage: _perstack_core.Usage;
|
|
4111
2838
|
}) | ({
|
|
4112
2839
|
id: string;
|
|
4113
2840
|
expertKey: string;
|
|
@@ -4117,9 +2844,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4117
2844
|
} & {
|
|
4118
2845
|
type: "callTool";
|
|
4119
2846
|
} & {
|
|
4120
|
-
newMessage: ExpertMessage;
|
|
4121
|
-
toolCall: ToolCall;
|
|
4122
|
-
usage: Usage;
|
|
2847
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2848
|
+
toolCall: _perstack_core.ToolCall;
|
|
2849
|
+
usage: _perstack_core.Usage;
|
|
4123
2850
|
}) | ({
|
|
4124
2851
|
id: string;
|
|
4125
2852
|
expertKey: string;
|
|
@@ -4129,9 +2856,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4129
2856
|
} & {
|
|
4130
2857
|
type: "callInteractiveTool";
|
|
4131
2858
|
} & {
|
|
4132
|
-
newMessage: ExpertMessage;
|
|
4133
|
-
toolCall: ToolCall;
|
|
4134
|
-
usage: Usage;
|
|
2859
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2860
|
+
toolCall: _perstack_core.ToolCall;
|
|
2861
|
+
usage: _perstack_core.Usage;
|
|
4135
2862
|
}) | ({
|
|
4136
2863
|
id: string;
|
|
4137
2864
|
expertKey: string;
|
|
@@ -4141,9 +2868,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4141
2868
|
} & {
|
|
4142
2869
|
type: "callDelegate";
|
|
4143
2870
|
} & {
|
|
4144
|
-
newMessage: ExpertMessage;
|
|
4145
|
-
toolCall: ToolCall;
|
|
4146
|
-
usage: Usage;
|
|
2871
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
2872
|
+
toolCall: _perstack_core.ToolCall;
|
|
2873
|
+
usage: _perstack_core.Usage;
|
|
4147
2874
|
}) | ({
|
|
4148
2875
|
id: string;
|
|
4149
2876
|
expertKey: string;
|
|
@@ -4153,7 +2880,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4153
2880
|
} & {
|
|
4154
2881
|
type: "resolveToolResult";
|
|
4155
2882
|
} & {
|
|
4156
|
-
toolResult: ToolResult;
|
|
2883
|
+
toolResult: _perstack_core.ToolResult;
|
|
4157
2884
|
}) | ({
|
|
4158
2885
|
id: string;
|
|
4159
2886
|
expertKey: string;
|
|
@@ -4163,7 +2890,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4163
2890
|
} & {
|
|
4164
2891
|
type: "resolveThought";
|
|
4165
2892
|
} & {
|
|
4166
|
-
toolResult: ToolResult;
|
|
2893
|
+
toolResult: _perstack_core.ToolResult;
|
|
4167
2894
|
}) | ({
|
|
4168
2895
|
id: string;
|
|
4169
2896
|
expertKey: string;
|
|
@@ -4173,7 +2900,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4173
2900
|
} & {
|
|
4174
2901
|
type: "resolvePdfFile";
|
|
4175
2902
|
} & {
|
|
4176
|
-
toolResult: ToolResult;
|
|
2903
|
+
toolResult: _perstack_core.ToolResult;
|
|
4177
2904
|
}) | ({
|
|
4178
2905
|
id: string;
|
|
4179
2906
|
expertKey: string;
|
|
@@ -4183,7 +2910,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4183
2910
|
} & {
|
|
4184
2911
|
type: "resolveImageFile";
|
|
4185
2912
|
} & {
|
|
4186
|
-
toolResult: ToolResult;
|
|
2913
|
+
toolResult: _perstack_core.ToolResult;
|
|
4187
2914
|
}) | ({
|
|
4188
2915
|
id: string;
|
|
4189
2916
|
expertKey: string;
|
|
@@ -4193,7 +2920,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4193
2920
|
} & {
|
|
4194
2921
|
type: "attemptCompletion";
|
|
4195
2922
|
} & {
|
|
4196
|
-
toolResult: ToolResult;
|
|
2923
|
+
toolResult: _perstack_core.ToolResult;
|
|
4197
2924
|
}) | ({
|
|
4198
2925
|
id: string;
|
|
4199
2926
|
expertKey: string;
|
|
@@ -4203,7 +2930,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4203
2930
|
} & {
|
|
4204
2931
|
type: "finishToolCall";
|
|
4205
2932
|
} & {
|
|
4206
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
2933
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4207
2934
|
}) | ({
|
|
4208
2935
|
id: string;
|
|
4209
2936
|
expertKey: string;
|
|
@@ -4261,7 +2988,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4261
2988
|
checkpoint: Checkpoint;
|
|
4262
2989
|
step: Step;
|
|
4263
2990
|
text: string;
|
|
4264
|
-
usage: Usage;
|
|
2991
|
+
usage: _perstack_core.Usage;
|
|
4265
2992
|
}), undefined, never, never, never, never, never>;
|
|
4266
2993
|
};
|
|
4267
2994
|
readonly attemptCompletion: {
|
|
@@ -4281,7 +3008,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4281
3008
|
} & {
|
|
4282
3009
|
type: "attemptCompletion";
|
|
4283
3010
|
} & {
|
|
4284
|
-
toolResult: ToolResult;
|
|
3011
|
+
toolResult: _perstack_core.ToolResult;
|
|
4285
3012
|
}, ({
|
|
4286
3013
|
id: string;
|
|
4287
3014
|
expertKey: string;
|
|
@@ -4292,7 +3019,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4292
3019
|
type: "startRun";
|
|
4293
3020
|
} & {
|
|
4294
3021
|
initialCheckpoint: Checkpoint;
|
|
4295
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
3022
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4296
3023
|
}) | ({
|
|
4297
3024
|
id: string;
|
|
4298
3025
|
expertKey: string;
|
|
@@ -4302,7 +3029,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4302
3029
|
} & {
|
|
4303
3030
|
type: "startGeneration";
|
|
4304
3031
|
} & {
|
|
4305
|
-
messages: Message[];
|
|
3032
|
+
messages: _perstack_core.Message[];
|
|
4306
3033
|
}) | ({
|
|
4307
3034
|
id: string;
|
|
4308
3035
|
expertKey: string;
|
|
@@ -4313,10 +3040,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4313
3040
|
type: "retry";
|
|
4314
3041
|
} & {
|
|
4315
3042
|
reason: string;
|
|
4316
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
4317
|
-
toolCall?: ToolCall;
|
|
4318
|
-
toolResult?: ToolResult;
|
|
4319
|
-
usage: Usage;
|
|
3043
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
3044
|
+
toolCall?: _perstack_core.ToolCall;
|
|
3045
|
+
toolResult?: _perstack_core.ToolResult;
|
|
3046
|
+
usage: _perstack_core.Usage;
|
|
4320
3047
|
}) | ({
|
|
4321
3048
|
id: string;
|
|
4322
3049
|
expertKey: string;
|
|
@@ -4326,9 +3053,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4326
3053
|
} & {
|
|
4327
3054
|
type: "callTool";
|
|
4328
3055
|
} & {
|
|
4329
|
-
newMessage: ExpertMessage;
|
|
4330
|
-
toolCall: ToolCall;
|
|
4331
|
-
usage: Usage;
|
|
3056
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3057
|
+
toolCall: _perstack_core.ToolCall;
|
|
3058
|
+
usage: _perstack_core.Usage;
|
|
4332
3059
|
}) | ({
|
|
4333
3060
|
id: string;
|
|
4334
3061
|
expertKey: string;
|
|
@@ -4338,9 +3065,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4338
3065
|
} & {
|
|
4339
3066
|
type: "callInteractiveTool";
|
|
4340
3067
|
} & {
|
|
4341
|
-
newMessage: ExpertMessage;
|
|
4342
|
-
toolCall: ToolCall;
|
|
4343
|
-
usage: Usage;
|
|
3068
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3069
|
+
toolCall: _perstack_core.ToolCall;
|
|
3070
|
+
usage: _perstack_core.Usage;
|
|
4344
3071
|
}) | ({
|
|
4345
3072
|
id: string;
|
|
4346
3073
|
expertKey: string;
|
|
@@ -4350,9 +3077,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4350
3077
|
} & {
|
|
4351
3078
|
type: "callDelegate";
|
|
4352
3079
|
} & {
|
|
4353
|
-
newMessage: ExpertMessage;
|
|
4354
|
-
toolCall: ToolCall;
|
|
4355
|
-
usage: Usage;
|
|
3080
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3081
|
+
toolCall: _perstack_core.ToolCall;
|
|
3082
|
+
usage: _perstack_core.Usage;
|
|
4356
3083
|
}) | ({
|
|
4357
3084
|
id: string;
|
|
4358
3085
|
expertKey: string;
|
|
@@ -4362,7 +3089,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4362
3089
|
} & {
|
|
4363
3090
|
type: "resolveToolResult";
|
|
4364
3091
|
} & {
|
|
4365
|
-
toolResult: ToolResult;
|
|
3092
|
+
toolResult: _perstack_core.ToolResult;
|
|
4366
3093
|
}) | ({
|
|
4367
3094
|
id: string;
|
|
4368
3095
|
expertKey: string;
|
|
@@ -4372,7 +3099,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4372
3099
|
} & {
|
|
4373
3100
|
type: "resolveThought";
|
|
4374
3101
|
} & {
|
|
4375
|
-
toolResult: ToolResult;
|
|
3102
|
+
toolResult: _perstack_core.ToolResult;
|
|
4376
3103
|
}) | ({
|
|
4377
3104
|
id: string;
|
|
4378
3105
|
expertKey: string;
|
|
@@ -4382,7 +3109,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4382
3109
|
} & {
|
|
4383
3110
|
type: "resolvePdfFile";
|
|
4384
3111
|
} & {
|
|
4385
|
-
toolResult: ToolResult;
|
|
3112
|
+
toolResult: _perstack_core.ToolResult;
|
|
4386
3113
|
}) | ({
|
|
4387
3114
|
id: string;
|
|
4388
3115
|
expertKey: string;
|
|
@@ -4392,7 +3119,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4392
3119
|
} & {
|
|
4393
3120
|
type: "resolveImageFile";
|
|
4394
3121
|
} & {
|
|
4395
|
-
toolResult: ToolResult;
|
|
3122
|
+
toolResult: _perstack_core.ToolResult;
|
|
4396
3123
|
}) | ({
|
|
4397
3124
|
id: string;
|
|
4398
3125
|
expertKey: string;
|
|
@@ -4402,7 +3129,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4402
3129
|
} & {
|
|
4403
3130
|
type: "attemptCompletion";
|
|
4404
3131
|
} & {
|
|
4405
|
-
toolResult: ToolResult;
|
|
3132
|
+
toolResult: _perstack_core.ToolResult;
|
|
4406
3133
|
}) | ({
|
|
4407
3134
|
id: string;
|
|
4408
3135
|
expertKey: string;
|
|
@@ -4412,7 +3139,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4412
3139
|
} & {
|
|
4413
3140
|
type: "finishToolCall";
|
|
4414
3141
|
} & {
|
|
4415
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3142
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4416
3143
|
}) | ({
|
|
4417
3144
|
id: string;
|
|
4418
3145
|
expertKey: string;
|
|
@@ -4470,7 +3197,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4470
3197
|
checkpoint: Checkpoint;
|
|
4471
3198
|
step: Step;
|
|
4472
3199
|
text: string;
|
|
4473
|
-
usage: Usage;
|
|
3200
|
+
usage: _perstack_core.Usage;
|
|
4474
3201
|
}), undefined, never, never, never, never, never>;
|
|
4475
3202
|
};
|
|
4476
3203
|
};
|
|
@@ -4494,7 +3221,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4494
3221
|
} & {
|
|
4495
3222
|
type: "finishToolCall";
|
|
4496
3223
|
} & {
|
|
4497
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3224
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4498
3225
|
}, ({
|
|
4499
3226
|
id: string;
|
|
4500
3227
|
expertKey: string;
|
|
@@ -4505,7 +3232,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4505
3232
|
type: "startRun";
|
|
4506
3233
|
} & {
|
|
4507
3234
|
initialCheckpoint: Checkpoint;
|
|
4508
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
3235
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4509
3236
|
}) | ({
|
|
4510
3237
|
id: string;
|
|
4511
3238
|
expertKey: string;
|
|
@@ -4515,7 +3242,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4515
3242
|
} & {
|
|
4516
3243
|
type: "startGeneration";
|
|
4517
3244
|
} & {
|
|
4518
|
-
messages: Message[];
|
|
3245
|
+
messages: _perstack_core.Message[];
|
|
4519
3246
|
}) | ({
|
|
4520
3247
|
id: string;
|
|
4521
3248
|
expertKey: string;
|
|
@@ -4526,10 +3253,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4526
3253
|
type: "retry";
|
|
4527
3254
|
} & {
|
|
4528
3255
|
reason: string;
|
|
4529
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
4530
|
-
toolCall?: ToolCall;
|
|
4531
|
-
toolResult?: ToolResult;
|
|
4532
|
-
usage: Usage;
|
|
3256
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
3257
|
+
toolCall?: _perstack_core.ToolCall;
|
|
3258
|
+
toolResult?: _perstack_core.ToolResult;
|
|
3259
|
+
usage: _perstack_core.Usage;
|
|
4533
3260
|
}) | ({
|
|
4534
3261
|
id: string;
|
|
4535
3262
|
expertKey: string;
|
|
@@ -4539,9 +3266,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4539
3266
|
} & {
|
|
4540
3267
|
type: "callTool";
|
|
4541
3268
|
} & {
|
|
4542
|
-
newMessage: ExpertMessage;
|
|
4543
|
-
toolCall: ToolCall;
|
|
4544
|
-
usage: Usage;
|
|
3269
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3270
|
+
toolCall: _perstack_core.ToolCall;
|
|
3271
|
+
usage: _perstack_core.Usage;
|
|
4545
3272
|
}) | ({
|
|
4546
3273
|
id: string;
|
|
4547
3274
|
expertKey: string;
|
|
@@ -4551,9 +3278,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4551
3278
|
} & {
|
|
4552
3279
|
type: "callInteractiveTool";
|
|
4553
3280
|
} & {
|
|
4554
|
-
newMessage: ExpertMessage;
|
|
4555
|
-
toolCall: ToolCall;
|
|
4556
|
-
usage: Usage;
|
|
3281
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3282
|
+
toolCall: _perstack_core.ToolCall;
|
|
3283
|
+
usage: _perstack_core.Usage;
|
|
4557
3284
|
}) | ({
|
|
4558
3285
|
id: string;
|
|
4559
3286
|
expertKey: string;
|
|
@@ -4563,9 +3290,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4563
3290
|
} & {
|
|
4564
3291
|
type: "callDelegate";
|
|
4565
3292
|
} & {
|
|
4566
|
-
newMessage: ExpertMessage;
|
|
4567
|
-
toolCall: ToolCall;
|
|
4568
|
-
usage: Usage;
|
|
3293
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3294
|
+
toolCall: _perstack_core.ToolCall;
|
|
3295
|
+
usage: _perstack_core.Usage;
|
|
4569
3296
|
}) | ({
|
|
4570
3297
|
id: string;
|
|
4571
3298
|
expertKey: string;
|
|
@@ -4575,7 +3302,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4575
3302
|
} & {
|
|
4576
3303
|
type: "resolveToolResult";
|
|
4577
3304
|
} & {
|
|
4578
|
-
toolResult: ToolResult;
|
|
3305
|
+
toolResult: _perstack_core.ToolResult;
|
|
4579
3306
|
}) | ({
|
|
4580
3307
|
id: string;
|
|
4581
3308
|
expertKey: string;
|
|
@@ -4585,7 +3312,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4585
3312
|
} & {
|
|
4586
3313
|
type: "resolveThought";
|
|
4587
3314
|
} & {
|
|
4588
|
-
toolResult: ToolResult;
|
|
3315
|
+
toolResult: _perstack_core.ToolResult;
|
|
4589
3316
|
}) | ({
|
|
4590
3317
|
id: string;
|
|
4591
3318
|
expertKey: string;
|
|
@@ -4595,7 +3322,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4595
3322
|
} & {
|
|
4596
3323
|
type: "resolvePdfFile";
|
|
4597
3324
|
} & {
|
|
4598
|
-
toolResult: ToolResult;
|
|
3325
|
+
toolResult: _perstack_core.ToolResult;
|
|
4599
3326
|
}) | ({
|
|
4600
3327
|
id: string;
|
|
4601
3328
|
expertKey: string;
|
|
@@ -4605,7 +3332,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4605
3332
|
} & {
|
|
4606
3333
|
type: "resolveImageFile";
|
|
4607
3334
|
} & {
|
|
4608
|
-
toolResult: ToolResult;
|
|
3335
|
+
toolResult: _perstack_core.ToolResult;
|
|
4609
3336
|
}) | ({
|
|
4610
3337
|
id: string;
|
|
4611
3338
|
expertKey: string;
|
|
@@ -4615,7 +3342,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4615
3342
|
} & {
|
|
4616
3343
|
type: "attemptCompletion";
|
|
4617
3344
|
} & {
|
|
4618
|
-
toolResult: ToolResult;
|
|
3345
|
+
toolResult: _perstack_core.ToolResult;
|
|
4619
3346
|
}) | ({
|
|
4620
3347
|
id: string;
|
|
4621
3348
|
expertKey: string;
|
|
@@ -4625,7 +3352,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4625
3352
|
} & {
|
|
4626
3353
|
type: "finishToolCall";
|
|
4627
3354
|
} & {
|
|
4628
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3355
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4629
3356
|
}) | ({
|
|
4630
3357
|
id: string;
|
|
4631
3358
|
expertKey: string;
|
|
@@ -4683,7 +3410,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4683
3410
|
checkpoint: Checkpoint;
|
|
4684
3411
|
step: Step;
|
|
4685
3412
|
text: string;
|
|
4686
|
-
usage: Usage;
|
|
3413
|
+
usage: _perstack_core.Usage;
|
|
4687
3414
|
}), undefined, never, never, never, never, never>;
|
|
4688
3415
|
};
|
|
4689
3416
|
};
|
|
@@ -4707,7 +3434,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4707
3434
|
} & {
|
|
4708
3435
|
type: "finishToolCall";
|
|
4709
3436
|
} & {
|
|
4710
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3437
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4711
3438
|
}, ({
|
|
4712
3439
|
id: string;
|
|
4713
3440
|
expertKey: string;
|
|
@@ -4718,7 +3445,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4718
3445
|
type: "startRun";
|
|
4719
3446
|
} & {
|
|
4720
3447
|
initialCheckpoint: Checkpoint;
|
|
4721
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
3448
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4722
3449
|
}) | ({
|
|
4723
3450
|
id: string;
|
|
4724
3451
|
expertKey: string;
|
|
@@ -4728,7 +3455,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4728
3455
|
} & {
|
|
4729
3456
|
type: "startGeneration";
|
|
4730
3457
|
} & {
|
|
4731
|
-
messages: Message[];
|
|
3458
|
+
messages: _perstack_core.Message[];
|
|
4732
3459
|
}) | ({
|
|
4733
3460
|
id: string;
|
|
4734
3461
|
expertKey: string;
|
|
@@ -4739,10 +3466,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4739
3466
|
type: "retry";
|
|
4740
3467
|
} & {
|
|
4741
3468
|
reason: string;
|
|
4742
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
4743
|
-
toolCall?: ToolCall;
|
|
4744
|
-
toolResult?: ToolResult;
|
|
4745
|
-
usage: Usage;
|
|
3469
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
3470
|
+
toolCall?: _perstack_core.ToolCall;
|
|
3471
|
+
toolResult?: _perstack_core.ToolResult;
|
|
3472
|
+
usage: _perstack_core.Usage;
|
|
4746
3473
|
}) | ({
|
|
4747
3474
|
id: string;
|
|
4748
3475
|
expertKey: string;
|
|
@@ -4752,9 +3479,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4752
3479
|
} & {
|
|
4753
3480
|
type: "callTool";
|
|
4754
3481
|
} & {
|
|
4755
|
-
newMessage: ExpertMessage;
|
|
4756
|
-
toolCall: ToolCall;
|
|
4757
|
-
usage: Usage;
|
|
3482
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3483
|
+
toolCall: _perstack_core.ToolCall;
|
|
3484
|
+
usage: _perstack_core.Usage;
|
|
4758
3485
|
}) | ({
|
|
4759
3486
|
id: string;
|
|
4760
3487
|
expertKey: string;
|
|
@@ -4764,9 +3491,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4764
3491
|
} & {
|
|
4765
3492
|
type: "callInteractiveTool";
|
|
4766
3493
|
} & {
|
|
4767
|
-
newMessage: ExpertMessage;
|
|
4768
|
-
toolCall: ToolCall;
|
|
4769
|
-
usage: Usage;
|
|
3494
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3495
|
+
toolCall: _perstack_core.ToolCall;
|
|
3496
|
+
usage: _perstack_core.Usage;
|
|
4770
3497
|
}) | ({
|
|
4771
3498
|
id: string;
|
|
4772
3499
|
expertKey: string;
|
|
@@ -4776,9 +3503,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4776
3503
|
} & {
|
|
4777
3504
|
type: "callDelegate";
|
|
4778
3505
|
} & {
|
|
4779
|
-
newMessage: ExpertMessage;
|
|
4780
|
-
toolCall: ToolCall;
|
|
4781
|
-
usage: Usage;
|
|
3506
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3507
|
+
toolCall: _perstack_core.ToolCall;
|
|
3508
|
+
usage: _perstack_core.Usage;
|
|
4782
3509
|
}) | ({
|
|
4783
3510
|
id: string;
|
|
4784
3511
|
expertKey: string;
|
|
@@ -4788,7 +3515,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4788
3515
|
} & {
|
|
4789
3516
|
type: "resolveToolResult";
|
|
4790
3517
|
} & {
|
|
4791
|
-
toolResult: ToolResult;
|
|
3518
|
+
toolResult: _perstack_core.ToolResult;
|
|
4792
3519
|
}) | ({
|
|
4793
3520
|
id: string;
|
|
4794
3521
|
expertKey: string;
|
|
@@ -4798,7 +3525,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4798
3525
|
} & {
|
|
4799
3526
|
type: "resolveThought";
|
|
4800
3527
|
} & {
|
|
4801
|
-
toolResult: ToolResult;
|
|
3528
|
+
toolResult: _perstack_core.ToolResult;
|
|
4802
3529
|
}) | ({
|
|
4803
3530
|
id: string;
|
|
4804
3531
|
expertKey: string;
|
|
@@ -4808,7 +3535,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4808
3535
|
} & {
|
|
4809
3536
|
type: "resolvePdfFile";
|
|
4810
3537
|
} & {
|
|
4811
|
-
toolResult: ToolResult;
|
|
3538
|
+
toolResult: _perstack_core.ToolResult;
|
|
4812
3539
|
}) | ({
|
|
4813
3540
|
id: string;
|
|
4814
3541
|
expertKey: string;
|
|
@@ -4818,7 +3545,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4818
3545
|
} & {
|
|
4819
3546
|
type: "resolveImageFile";
|
|
4820
3547
|
} & {
|
|
4821
|
-
toolResult: ToolResult;
|
|
3548
|
+
toolResult: _perstack_core.ToolResult;
|
|
4822
3549
|
}) | ({
|
|
4823
3550
|
id: string;
|
|
4824
3551
|
expertKey: string;
|
|
@@ -4828,7 +3555,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4828
3555
|
} & {
|
|
4829
3556
|
type: "attemptCompletion";
|
|
4830
3557
|
} & {
|
|
4831
|
-
toolResult: ToolResult;
|
|
3558
|
+
toolResult: _perstack_core.ToolResult;
|
|
4832
3559
|
}) | ({
|
|
4833
3560
|
id: string;
|
|
4834
3561
|
expertKey: string;
|
|
@@ -4838,7 +3565,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4838
3565
|
} & {
|
|
4839
3566
|
type: "finishToolCall";
|
|
4840
3567
|
} & {
|
|
4841
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3568
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4842
3569
|
}) | ({
|
|
4843
3570
|
id: string;
|
|
4844
3571
|
expertKey: string;
|
|
@@ -4896,7 +3623,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4896
3623
|
checkpoint: Checkpoint;
|
|
4897
3624
|
step: Step;
|
|
4898
3625
|
text: string;
|
|
4899
|
-
usage: Usage;
|
|
3626
|
+
usage: _perstack_core.Usage;
|
|
4900
3627
|
}), undefined, never, never, never, never, never>;
|
|
4901
3628
|
};
|
|
4902
3629
|
};
|
|
@@ -4920,7 +3647,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4920
3647
|
} & {
|
|
4921
3648
|
type: "finishToolCall";
|
|
4922
3649
|
} & {
|
|
4923
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3650
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4924
3651
|
}, ({
|
|
4925
3652
|
id: string;
|
|
4926
3653
|
expertKey: string;
|
|
@@ -4931,7 +3658,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4931
3658
|
type: "startRun";
|
|
4932
3659
|
} & {
|
|
4933
3660
|
initialCheckpoint: Checkpoint;
|
|
4934
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
3661
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
4935
3662
|
}) | ({
|
|
4936
3663
|
id: string;
|
|
4937
3664
|
expertKey: string;
|
|
@@ -4941,7 +3668,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4941
3668
|
} & {
|
|
4942
3669
|
type: "startGeneration";
|
|
4943
3670
|
} & {
|
|
4944
|
-
messages: Message[];
|
|
3671
|
+
messages: _perstack_core.Message[];
|
|
4945
3672
|
}) | ({
|
|
4946
3673
|
id: string;
|
|
4947
3674
|
expertKey: string;
|
|
@@ -4952,10 +3679,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4952
3679
|
type: "retry";
|
|
4953
3680
|
} & {
|
|
4954
3681
|
reason: string;
|
|
4955
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
4956
|
-
toolCall?: ToolCall;
|
|
4957
|
-
toolResult?: ToolResult;
|
|
4958
|
-
usage: Usage;
|
|
3682
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
3683
|
+
toolCall?: _perstack_core.ToolCall;
|
|
3684
|
+
toolResult?: _perstack_core.ToolResult;
|
|
3685
|
+
usage: _perstack_core.Usage;
|
|
4959
3686
|
}) | ({
|
|
4960
3687
|
id: string;
|
|
4961
3688
|
expertKey: string;
|
|
@@ -4965,9 +3692,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4965
3692
|
} & {
|
|
4966
3693
|
type: "callTool";
|
|
4967
3694
|
} & {
|
|
4968
|
-
newMessage: ExpertMessage;
|
|
4969
|
-
toolCall: ToolCall;
|
|
4970
|
-
usage: Usage;
|
|
3695
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3696
|
+
toolCall: _perstack_core.ToolCall;
|
|
3697
|
+
usage: _perstack_core.Usage;
|
|
4971
3698
|
}) | ({
|
|
4972
3699
|
id: string;
|
|
4973
3700
|
expertKey: string;
|
|
@@ -4977,9 +3704,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4977
3704
|
} & {
|
|
4978
3705
|
type: "callInteractiveTool";
|
|
4979
3706
|
} & {
|
|
4980
|
-
newMessage: ExpertMessage;
|
|
4981
|
-
toolCall: ToolCall;
|
|
4982
|
-
usage: Usage;
|
|
3707
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3708
|
+
toolCall: _perstack_core.ToolCall;
|
|
3709
|
+
usage: _perstack_core.Usage;
|
|
4983
3710
|
}) | ({
|
|
4984
3711
|
id: string;
|
|
4985
3712
|
expertKey: string;
|
|
@@ -4989,9 +3716,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
4989
3716
|
} & {
|
|
4990
3717
|
type: "callDelegate";
|
|
4991
3718
|
} & {
|
|
4992
|
-
newMessage: ExpertMessage;
|
|
4993
|
-
toolCall: ToolCall;
|
|
4994
|
-
usage: Usage;
|
|
3719
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3720
|
+
toolCall: _perstack_core.ToolCall;
|
|
3721
|
+
usage: _perstack_core.Usage;
|
|
4995
3722
|
}) | ({
|
|
4996
3723
|
id: string;
|
|
4997
3724
|
expertKey: string;
|
|
@@ -5001,7 +3728,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5001
3728
|
} & {
|
|
5002
3729
|
type: "resolveToolResult";
|
|
5003
3730
|
} & {
|
|
5004
|
-
toolResult: ToolResult;
|
|
3731
|
+
toolResult: _perstack_core.ToolResult;
|
|
5005
3732
|
}) | ({
|
|
5006
3733
|
id: string;
|
|
5007
3734
|
expertKey: string;
|
|
@@ -5011,7 +3738,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5011
3738
|
} & {
|
|
5012
3739
|
type: "resolveThought";
|
|
5013
3740
|
} & {
|
|
5014
|
-
toolResult: ToolResult;
|
|
3741
|
+
toolResult: _perstack_core.ToolResult;
|
|
5015
3742
|
}) | ({
|
|
5016
3743
|
id: string;
|
|
5017
3744
|
expertKey: string;
|
|
@@ -5021,7 +3748,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5021
3748
|
} & {
|
|
5022
3749
|
type: "resolvePdfFile";
|
|
5023
3750
|
} & {
|
|
5024
|
-
toolResult: ToolResult;
|
|
3751
|
+
toolResult: _perstack_core.ToolResult;
|
|
5025
3752
|
}) | ({
|
|
5026
3753
|
id: string;
|
|
5027
3754
|
expertKey: string;
|
|
@@ -5031,7 +3758,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5031
3758
|
} & {
|
|
5032
3759
|
type: "resolveImageFile";
|
|
5033
3760
|
} & {
|
|
5034
|
-
toolResult: ToolResult;
|
|
3761
|
+
toolResult: _perstack_core.ToolResult;
|
|
5035
3762
|
}) | ({
|
|
5036
3763
|
id: string;
|
|
5037
3764
|
expertKey: string;
|
|
@@ -5041,7 +3768,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5041
3768
|
} & {
|
|
5042
3769
|
type: "attemptCompletion";
|
|
5043
3770
|
} & {
|
|
5044
|
-
toolResult: ToolResult;
|
|
3771
|
+
toolResult: _perstack_core.ToolResult;
|
|
5045
3772
|
}) | ({
|
|
5046
3773
|
id: string;
|
|
5047
3774
|
expertKey: string;
|
|
@@ -5051,7 +3778,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5051
3778
|
} & {
|
|
5052
3779
|
type: "finishToolCall";
|
|
5053
3780
|
} & {
|
|
5054
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3781
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
5055
3782
|
}) | ({
|
|
5056
3783
|
id: string;
|
|
5057
3784
|
expertKey: string;
|
|
@@ -5109,7 +3836,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5109
3836
|
checkpoint: Checkpoint;
|
|
5110
3837
|
step: Step;
|
|
5111
3838
|
text: string;
|
|
5112
|
-
usage: Usage;
|
|
3839
|
+
usage: _perstack_core.Usage;
|
|
5113
3840
|
}), undefined, never, never, never, never, never>;
|
|
5114
3841
|
};
|
|
5115
3842
|
};
|
|
@@ -5133,7 +3860,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5133
3860
|
} & {
|
|
5134
3861
|
type: "finishToolCall";
|
|
5135
3862
|
} & {
|
|
5136
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3863
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
5137
3864
|
}, ({
|
|
5138
3865
|
id: string;
|
|
5139
3866
|
expertKey: string;
|
|
@@ -5144,7 +3871,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5144
3871
|
type: "startRun";
|
|
5145
3872
|
} & {
|
|
5146
3873
|
initialCheckpoint: Checkpoint;
|
|
5147
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
3874
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
5148
3875
|
}) | ({
|
|
5149
3876
|
id: string;
|
|
5150
3877
|
expertKey: string;
|
|
@@ -5154,7 +3881,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5154
3881
|
} & {
|
|
5155
3882
|
type: "startGeneration";
|
|
5156
3883
|
} & {
|
|
5157
|
-
messages: Message[];
|
|
3884
|
+
messages: _perstack_core.Message[];
|
|
5158
3885
|
}) | ({
|
|
5159
3886
|
id: string;
|
|
5160
3887
|
expertKey: string;
|
|
@@ -5165,10 +3892,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5165
3892
|
type: "retry";
|
|
5166
3893
|
} & {
|
|
5167
3894
|
reason: string;
|
|
5168
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
5169
|
-
toolCall?: ToolCall;
|
|
5170
|
-
toolResult?: ToolResult;
|
|
5171
|
-
usage: Usage;
|
|
3895
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
3896
|
+
toolCall?: _perstack_core.ToolCall;
|
|
3897
|
+
toolResult?: _perstack_core.ToolResult;
|
|
3898
|
+
usage: _perstack_core.Usage;
|
|
5172
3899
|
}) | ({
|
|
5173
3900
|
id: string;
|
|
5174
3901
|
expertKey: string;
|
|
@@ -5178,9 +3905,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5178
3905
|
} & {
|
|
5179
3906
|
type: "callTool";
|
|
5180
3907
|
} & {
|
|
5181
|
-
newMessage: ExpertMessage;
|
|
5182
|
-
toolCall: ToolCall;
|
|
5183
|
-
usage: Usage;
|
|
3908
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3909
|
+
toolCall: _perstack_core.ToolCall;
|
|
3910
|
+
usage: _perstack_core.Usage;
|
|
5184
3911
|
}) | ({
|
|
5185
3912
|
id: string;
|
|
5186
3913
|
expertKey: string;
|
|
@@ -5190,9 +3917,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5190
3917
|
} & {
|
|
5191
3918
|
type: "callInteractiveTool";
|
|
5192
3919
|
} & {
|
|
5193
|
-
newMessage: ExpertMessage;
|
|
5194
|
-
toolCall: ToolCall;
|
|
5195
|
-
usage: Usage;
|
|
3920
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3921
|
+
toolCall: _perstack_core.ToolCall;
|
|
3922
|
+
usage: _perstack_core.Usage;
|
|
5196
3923
|
}) | ({
|
|
5197
3924
|
id: string;
|
|
5198
3925
|
expertKey: string;
|
|
@@ -5202,9 +3929,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5202
3929
|
} & {
|
|
5203
3930
|
type: "callDelegate";
|
|
5204
3931
|
} & {
|
|
5205
|
-
newMessage: ExpertMessage;
|
|
5206
|
-
toolCall: ToolCall;
|
|
5207
|
-
usage: Usage;
|
|
3932
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
3933
|
+
toolCall: _perstack_core.ToolCall;
|
|
3934
|
+
usage: _perstack_core.Usage;
|
|
5208
3935
|
}) | ({
|
|
5209
3936
|
id: string;
|
|
5210
3937
|
expertKey: string;
|
|
@@ -5214,7 +3941,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5214
3941
|
} & {
|
|
5215
3942
|
type: "resolveToolResult";
|
|
5216
3943
|
} & {
|
|
5217
|
-
toolResult: ToolResult;
|
|
3944
|
+
toolResult: _perstack_core.ToolResult;
|
|
5218
3945
|
}) | ({
|
|
5219
3946
|
id: string;
|
|
5220
3947
|
expertKey: string;
|
|
@@ -5224,7 +3951,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5224
3951
|
} & {
|
|
5225
3952
|
type: "resolveThought";
|
|
5226
3953
|
} & {
|
|
5227
|
-
toolResult: ToolResult;
|
|
3954
|
+
toolResult: _perstack_core.ToolResult;
|
|
5228
3955
|
}) | ({
|
|
5229
3956
|
id: string;
|
|
5230
3957
|
expertKey: string;
|
|
@@ -5234,7 +3961,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5234
3961
|
} & {
|
|
5235
3962
|
type: "resolvePdfFile";
|
|
5236
3963
|
} & {
|
|
5237
|
-
toolResult: ToolResult;
|
|
3964
|
+
toolResult: _perstack_core.ToolResult;
|
|
5238
3965
|
}) | ({
|
|
5239
3966
|
id: string;
|
|
5240
3967
|
expertKey: string;
|
|
@@ -5244,7 +3971,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5244
3971
|
} & {
|
|
5245
3972
|
type: "resolveImageFile";
|
|
5246
3973
|
} & {
|
|
5247
|
-
toolResult: ToolResult;
|
|
3974
|
+
toolResult: _perstack_core.ToolResult;
|
|
5248
3975
|
}) | ({
|
|
5249
3976
|
id: string;
|
|
5250
3977
|
expertKey: string;
|
|
@@ -5254,7 +3981,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5254
3981
|
} & {
|
|
5255
3982
|
type: "attemptCompletion";
|
|
5256
3983
|
} & {
|
|
5257
|
-
toolResult: ToolResult;
|
|
3984
|
+
toolResult: _perstack_core.ToolResult;
|
|
5258
3985
|
}) | ({
|
|
5259
3986
|
id: string;
|
|
5260
3987
|
expertKey: string;
|
|
@@ -5264,7 +3991,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5264
3991
|
} & {
|
|
5265
3992
|
type: "finishToolCall";
|
|
5266
3993
|
} & {
|
|
5267
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
3994
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
5268
3995
|
}) | ({
|
|
5269
3996
|
id: string;
|
|
5270
3997
|
expertKey: string;
|
|
@@ -5322,7 +4049,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5322
4049
|
checkpoint: Checkpoint;
|
|
5323
4050
|
step: Step;
|
|
5324
4051
|
text: string;
|
|
5325
|
-
usage: Usage;
|
|
4052
|
+
usage: _perstack_core.Usage;
|
|
5326
4053
|
}), undefined, never, never, never, never, never>;
|
|
5327
4054
|
};
|
|
5328
4055
|
};
|
|
@@ -5347,10 +4074,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5347
4074
|
type: "retry";
|
|
5348
4075
|
} & {
|
|
5349
4076
|
reason: string;
|
|
5350
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
5351
|
-
toolCall?: ToolCall;
|
|
5352
|
-
toolResult?: ToolResult;
|
|
5353
|
-
usage: Usage;
|
|
4077
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
4078
|
+
toolCall?: _perstack_core.ToolCall;
|
|
4079
|
+
toolResult?: _perstack_core.ToolResult;
|
|
4080
|
+
usage: _perstack_core.Usage;
|
|
5354
4081
|
}, ({
|
|
5355
4082
|
id: string;
|
|
5356
4083
|
expertKey: string;
|
|
@@ -5361,7 +4088,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5361
4088
|
type: "startRun";
|
|
5362
4089
|
} & {
|
|
5363
4090
|
initialCheckpoint: Checkpoint;
|
|
5364
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
4091
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
5365
4092
|
}) | ({
|
|
5366
4093
|
id: string;
|
|
5367
4094
|
expertKey: string;
|
|
@@ -5371,7 +4098,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5371
4098
|
} & {
|
|
5372
4099
|
type: "startGeneration";
|
|
5373
4100
|
} & {
|
|
5374
|
-
messages: Message[];
|
|
4101
|
+
messages: _perstack_core.Message[];
|
|
5375
4102
|
}) | ({
|
|
5376
4103
|
id: string;
|
|
5377
4104
|
expertKey: string;
|
|
@@ -5382,10 +4109,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5382
4109
|
type: "retry";
|
|
5383
4110
|
} & {
|
|
5384
4111
|
reason: string;
|
|
5385
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
5386
|
-
toolCall?: ToolCall;
|
|
5387
|
-
toolResult?: ToolResult;
|
|
5388
|
-
usage: Usage;
|
|
4112
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
4113
|
+
toolCall?: _perstack_core.ToolCall;
|
|
4114
|
+
toolResult?: _perstack_core.ToolResult;
|
|
4115
|
+
usage: _perstack_core.Usage;
|
|
5389
4116
|
}) | ({
|
|
5390
4117
|
id: string;
|
|
5391
4118
|
expertKey: string;
|
|
@@ -5395,9 +4122,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5395
4122
|
} & {
|
|
5396
4123
|
type: "callTool";
|
|
5397
4124
|
} & {
|
|
5398
|
-
newMessage: ExpertMessage;
|
|
5399
|
-
toolCall: ToolCall;
|
|
5400
|
-
usage: Usage;
|
|
4125
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4126
|
+
toolCall: _perstack_core.ToolCall;
|
|
4127
|
+
usage: _perstack_core.Usage;
|
|
5401
4128
|
}) | ({
|
|
5402
4129
|
id: string;
|
|
5403
4130
|
expertKey: string;
|
|
@@ -5407,9 +4134,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5407
4134
|
} & {
|
|
5408
4135
|
type: "callInteractiveTool";
|
|
5409
4136
|
} & {
|
|
5410
|
-
newMessage: ExpertMessage;
|
|
5411
|
-
toolCall: ToolCall;
|
|
5412
|
-
usage: Usage;
|
|
4137
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4138
|
+
toolCall: _perstack_core.ToolCall;
|
|
4139
|
+
usage: _perstack_core.Usage;
|
|
5413
4140
|
}) | ({
|
|
5414
4141
|
id: string;
|
|
5415
4142
|
expertKey: string;
|
|
@@ -5419,9 +4146,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5419
4146
|
} & {
|
|
5420
4147
|
type: "callDelegate";
|
|
5421
4148
|
} & {
|
|
5422
|
-
newMessage: ExpertMessage;
|
|
5423
|
-
toolCall: ToolCall;
|
|
5424
|
-
usage: Usage;
|
|
4149
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4150
|
+
toolCall: _perstack_core.ToolCall;
|
|
4151
|
+
usage: _perstack_core.Usage;
|
|
5425
4152
|
}) | ({
|
|
5426
4153
|
id: string;
|
|
5427
4154
|
expertKey: string;
|
|
@@ -5431,7 +4158,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5431
4158
|
} & {
|
|
5432
4159
|
type: "resolveToolResult";
|
|
5433
4160
|
} & {
|
|
5434
|
-
toolResult: ToolResult;
|
|
4161
|
+
toolResult: _perstack_core.ToolResult;
|
|
5435
4162
|
}) | ({
|
|
5436
4163
|
id: string;
|
|
5437
4164
|
expertKey: string;
|
|
@@ -5441,7 +4168,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5441
4168
|
} & {
|
|
5442
4169
|
type: "resolveThought";
|
|
5443
4170
|
} & {
|
|
5444
|
-
toolResult: ToolResult;
|
|
4171
|
+
toolResult: _perstack_core.ToolResult;
|
|
5445
4172
|
}) | ({
|
|
5446
4173
|
id: string;
|
|
5447
4174
|
expertKey: string;
|
|
@@ -5451,7 +4178,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5451
4178
|
} & {
|
|
5452
4179
|
type: "resolvePdfFile";
|
|
5453
4180
|
} & {
|
|
5454
|
-
toolResult: ToolResult;
|
|
4181
|
+
toolResult: _perstack_core.ToolResult;
|
|
5455
4182
|
}) | ({
|
|
5456
4183
|
id: string;
|
|
5457
4184
|
expertKey: string;
|
|
@@ -5461,7 +4188,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5461
4188
|
} & {
|
|
5462
4189
|
type: "resolveImageFile";
|
|
5463
4190
|
} & {
|
|
5464
|
-
toolResult: ToolResult;
|
|
4191
|
+
toolResult: _perstack_core.ToolResult;
|
|
5465
4192
|
}) | ({
|
|
5466
4193
|
id: string;
|
|
5467
4194
|
expertKey: string;
|
|
@@ -5471,7 +4198,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5471
4198
|
} & {
|
|
5472
4199
|
type: "attemptCompletion";
|
|
5473
4200
|
} & {
|
|
5474
|
-
toolResult: ToolResult;
|
|
4201
|
+
toolResult: _perstack_core.ToolResult;
|
|
5475
4202
|
}) | ({
|
|
5476
4203
|
id: string;
|
|
5477
4204
|
expertKey: string;
|
|
@@ -5481,7 +4208,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5481
4208
|
} & {
|
|
5482
4209
|
type: "finishToolCall";
|
|
5483
4210
|
} & {
|
|
5484
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
4211
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
5485
4212
|
}) | ({
|
|
5486
4213
|
id: string;
|
|
5487
4214
|
expertKey: string;
|
|
@@ -5539,7 +4266,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5539
4266
|
checkpoint: Checkpoint;
|
|
5540
4267
|
step: Step;
|
|
5541
4268
|
text: string;
|
|
5542
|
-
usage: Usage;
|
|
4269
|
+
usage: _perstack_core.Usage;
|
|
5543
4270
|
}), undefined, never, never, never, never, never>;
|
|
5544
4271
|
};
|
|
5545
4272
|
readonly completeRun: {
|
|
@@ -5562,7 +4289,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5562
4289
|
checkpoint: Checkpoint;
|
|
5563
4290
|
step: Step;
|
|
5564
4291
|
text: string;
|
|
5565
|
-
usage: Usage;
|
|
4292
|
+
usage: _perstack_core.Usage;
|
|
5566
4293
|
}, ({
|
|
5567
4294
|
id: string;
|
|
5568
4295
|
expertKey: string;
|
|
@@ -5573,7 +4300,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5573
4300
|
type: "startRun";
|
|
5574
4301
|
} & {
|
|
5575
4302
|
initialCheckpoint: Checkpoint;
|
|
5576
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
4303
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
5577
4304
|
}) | ({
|
|
5578
4305
|
id: string;
|
|
5579
4306
|
expertKey: string;
|
|
@@ -5583,7 +4310,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5583
4310
|
} & {
|
|
5584
4311
|
type: "startGeneration";
|
|
5585
4312
|
} & {
|
|
5586
|
-
messages: Message[];
|
|
4313
|
+
messages: _perstack_core.Message[];
|
|
5587
4314
|
}) | ({
|
|
5588
4315
|
id: string;
|
|
5589
4316
|
expertKey: string;
|
|
@@ -5594,10 +4321,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5594
4321
|
type: "retry";
|
|
5595
4322
|
} & {
|
|
5596
4323
|
reason: string;
|
|
5597
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
5598
|
-
toolCall?: ToolCall;
|
|
5599
|
-
toolResult?: ToolResult;
|
|
5600
|
-
usage: Usage;
|
|
4324
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
4325
|
+
toolCall?: _perstack_core.ToolCall;
|
|
4326
|
+
toolResult?: _perstack_core.ToolResult;
|
|
4327
|
+
usage: _perstack_core.Usage;
|
|
5601
4328
|
}) | ({
|
|
5602
4329
|
id: string;
|
|
5603
4330
|
expertKey: string;
|
|
@@ -5607,9 +4334,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5607
4334
|
} & {
|
|
5608
4335
|
type: "callTool";
|
|
5609
4336
|
} & {
|
|
5610
|
-
newMessage: ExpertMessage;
|
|
5611
|
-
toolCall: ToolCall;
|
|
5612
|
-
usage: Usage;
|
|
4337
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4338
|
+
toolCall: _perstack_core.ToolCall;
|
|
4339
|
+
usage: _perstack_core.Usage;
|
|
5613
4340
|
}) | ({
|
|
5614
4341
|
id: string;
|
|
5615
4342
|
expertKey: string;
|
|
@@ -5619,9 +4346,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5619
4346
|
} & {
|
|
5620
4347
|
type: "callInteractiveTool";
|
|
5621
4348
|
} & {
|
|
5622
|
-
newMessage: ExpertMessage;
|
|
5623
|
-
toolCall: ToolCall;
|
|
5624
|
-
usage: Usage;
|
|
4349
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4350
|
+
toolCall: _perstack_core.ToolCall;
|
|
4351
|
+
usage: _perstack_core.Usage;
|
|
5625
4352
|
}) | ({
|
|
5626
4353
|
id: string;
|
|
5627
4354
|
expertKey: string;
|
|
@@ -5631,9 +4358,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5631
4358
|
} & {
|
|
5632
4359
|
type: "callDelegate";
|
|
5633
4360
|
} & {
|
|
5634
|
-
newMessage: ExpertMessage;
|
|
5635
|
-
toolCall: ToolCall;
|
|
5636
|
-
usage: Usage;
|
|
4361
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4362
|
+
toolCall: _perstack_core.ToolCall;
|
|
4363
|
+
usage: _perstack_core.Usage;
|
|
5637
4364
|
}) | ({
|
|
5638
4365
|
id: string;
|
|
5639
4366
|
expertKey: string;
|
|
@@ -5643,7 +4370,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5643
4370
|
} & {
|
|
5644
4371
|
type: "resolveToolResult";
|
|
5645
4372
|
} & {
|
|
5646
|
-
toolResult: ToolResult;
|
|
4373
|
+
toolResult: _perstack_core.ToolResult;
|
|
5647
4374
|
}) | ({
|
|
5648
4375
|
id: string;
|
|
5649
4376
|
expertKey: string;
|
|
@@ -5653,7 +4380,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5653
4380
|
} & {
|
|
5654
4381
|
type: "resolveThought";
|
|
5655
4382
|
} & {
|
|
5656
|
-
toolResult: ToolResult;
|
|
4383
|
+
toolResult: _perstack_core.ToolResult;
|
|
5657
4384
|
}) | ({
|
|
5658
4385
|
id: string;
|
|
5659
4386
|
expertKey: string;
|
|
@@ -5663,7 +4390,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5663
4390
|
} & {
|
|
5664
4391
|
type: "resolvePdfFile";
|
|
5665
4392
|
} & {
|
|
5666
|
-
toolResult: ToolResult;
|
|
4393
|
+
toolResult: _perstack_core.ToolResult;
|
|
5667
4394
|
}) | ({
|
|
5668
4395
|
id: string;
|
|
5669
4396
|
expertKey: string;
|
|
@@ -5673,7 +4400,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5673
4400
|
} & {
|
|
5674
4401
|
type: "resolveImageFile";
|
|
5675
4402
|
} & {
|
|
5676
|
-
toolResult: ToolResult;
|
|
4403
|
+
toolResult: _perstack_core.ToolResult;
|
|
5677
4404
|
}) | ({
|
|
5678
4405
|
id: string;
|
|
5679
4406
|
expertKey: string;
|
|
@@ -5683,7 +4410,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5683
4410
|
} & {
|
|
5684
4411
|
type: "attemptCompletion";
|
|
5685
4412
|
} & {
|
|
5686
|
-
toolResult: ToolResult;
|
|
4413
|
+
toolResult: _perstack_core.ToolResult;
|
|
5687
4414
|
}) | ({
|
|
5688
4415
|
id: string;
|
|
5689
4416
|
expertKey: string;
|
|
@@ -5693,7 +4420,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5693
4420
|
} & {
|
|
5694
4421
|
type: "finishToolCall";
|
|
5695
4422
|
} & {
|
|
5696
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
4423
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
5697
4424
|
}) | ({
|
|
5698
4425
|
id: string;
|
|
5699
4426
|
expertKey: string;
|
|
@@ -5751,7 +4478,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5751
4478
|
checkpoint: Checkpoint;
|
|
5752
4479
|
step: Step;
|
|
5753
4480
|
text: string;
|
|
5754
|
-
usage: Usage;
|
|
4481
|
+
usage: _perstack_core.Usage;
|
|
5755
4482
|
}), undefined, never, never, never, never, never>;
|
|
5756
4483
|
};
|
|
5757
4484
|
};
|
|
@@ -5787,7 +4514,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5787
4514
|
type: "startRun";
|
|
5788
4515
|
} & {
|
|
5789
4516
|
initialCheckpoint: Checkpoint;
|
|
5790
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
4517
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
5791
4518
|
}) | ({
|
|
5792
4519
|
id: string;
|
|
5793
4520
|
expertKey: string;
|
|
@@ -5797,7 +4524,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5797
4524
|
} & {
|
|
5798
4525
|
type: "startGeneration";
|
|
5799
4526
|
} & {
|
|
5800
|
-
messages: Message[];
|
|
4527
|
+
messages: _perstack_core.Message[];
|
|
5801
4528
|
}) | ({
|
|
5802
4529
|
id: string;
|
|
5803
4530
|
expertKey: string;
|
|
@@ -5808,10 +4535,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5808
4535
|
type: "retry";
|
|
5809
4536
|
} & {
|
|
5810
4537
|
reason: string;
|
|
5811
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
5812
|
-
toolCall?: ToolCall;
|
|
5813
|
-
toolResult?: ToolResult;
|
|
5814
|
-
usage: Usage;
|
|
4538
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
4539
|
+
toolCall?: _perstack_core.ToolCall;
|
|
4540
|
+
toolResult?: _perstack_core.ToolResult;
|
|
4541
|
+
usage: _perstack_core.Usage;
|
|
5815
4542
|
}) | ({
|
|
5816
4543
|
id: string;
|
|
5817
4544
|
expertKey: string;
|
|
@@ -5821,9 +4548,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5821
4548
|
} & {
|
|
5822
4549
|
type: "callTool";
|
|
5823
4550
|
} & {
|
|
5824
|
-
newMessage: ExpertMessage;
|
|
5825
|
-
toolCall: ToolCall;
|
|
5826
|
-
usage: Usage;
|
|
4551
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4552
|
+
toolCall: _perstack_core.ToolCall;
|
|
4553
|
+
usage: _perstack_core.Usage;
|
|
5827
4554
|
}) | ({
|
|
5828
4555
|
id: string;
|
|
5829
4556
|
expertKey: string;
|
|
@@ -5833,9 +4560,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5833
4560
|
} & {
|
|
5834
4561
|
type: "callInteractiveTool";
|
|
5835
4562
|
} & {
|
|
5836
|
-
newMessage: ExpertMessage;
|
|
5837
|
-
toolCall: ToolCall;
|
|
5838
|
-
usage: Usage;
|
|
4563
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4564
|
+
toolCall: _perstack_core.ToolCall;
|
|
4565
|
+
usage: _perstack_core.Usage;
|
|
5839
4566
|
}) | ({
|
|
5840
4567
|
id: string;
|
|
5841
4568
|
expertKey: string;
|
|
@@ -5845,9 +4572,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5845
4572
|
} & {
|
|
5846
4573
|
type: "callDelegate";
|
|
5847
4574
|
} & {
|
|
5848
|
-
newMessage: ExpertMessage;
|
|
5849
|
-
toolCall: ToolCall;
|
|
5850
|
-
usage: Usage;
|
|
4575
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4576
|
+
toolCall: _perstack_core.ToolCall;
|
|
4577
|
+
usage: _perstack_core.Usage;
|
|
5851
4578
|
}) | ({
|
|
5852
4579
|
id: string;
|
|
5853
4580
|
expertKey: string;
|
|
@@ -5857,7 +4584,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5857
4584
|
} & {
|
|
5858
4585
|
type: "resolveToolResult";
|
|
5859
4586
|
} & {
|
|
5860
|
-
toolResult: ToolResult;
|
|
4587
|
+
toolResult: _perstack_core.ToolResult;
|
|
5861
4588
|
}) | ({
|
|
5862
4589
|
id: string;
|
|
5863
4590
|
expertKey: string;
|
|
@@ -5867,7 +4594,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5867
4594
|
} & {
|
|
5868
4595
|
type: "resolveThought";
|
|
5869
4596
|
} & {
|
|
5870
|
-
toolResult: ToolResult;
|
|
4597
|
+
toolResult: _perstack_core.ToolResult;
|
|
5871
4598
|
}) | ({
|
|
5872
4599
|
id: string;
|
|
5873
4600
|
expertKey: string;
|
|
@@ -5877,7 +4604,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5877
4604
|
} & {
|
|
5878
4605
|
type: "resolvePdfFile";
|
|
5879
4606
|
} & {
|
|
5880
|
-
toolResult: ToolResult;
|
|
4607
|
+
toolResult: _perstack_core.ToolResult;
|
|
5881
4608
|
}) | ({
|
|
5882
4609
|
id: string;
|
|
5883
4610
|
expertKey: string;
|
|
@@ -5887,7 +4614,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5887
4614
|
} & {
|
|
5888
4615
|
type: "resolveImageFile";
|
|
5889
4616
|
} & {
|
|
5890
|
-
toolResult: ToolResult;
|
|
4617
|
+
toolResult: _perstack_core.ToolResult;
|
|
5891
4618
|
}) | ({
|
|
5892
4619
|
id: string;
|
|
5893
4620
|
expertKey: string;
|
|
@@ -5897,7 +4624,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5897
4624
|
} & {
|
|
5898
4625
|
type: "attemptCompletion";
|
|
5899
4626
|
} & {
|
|
5900
|
-
toolResult: ToolResult;
|
|
4627
|
+
toolResult: _perstack_core.ToolResult;
|
|
5901
4628
|
}) | ({
|
|
5902
4629
|
id: string;
|
|
5903
4630
|
expertKey: string;
|
|
@@ -5907,7 +4634,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5907
4634
|
} & {
|
|
5908
4635
|
type: "finishToolCall";
|
|
5909
4636
|
} & {
|
|
5910
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
4637
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
5911
4638
|
}) | ({
|
|
5912
4639
|
id: string;
|
|
5913
4640
|
expertKey: string;
|
|
@@ -5965,7 +4692,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
5965
4692
|
checkpoint: Checkpoint;
|
|
5966
4693
|
step: Step;
|
|
5967
4694
|
text: string;
|
|
5968
|
-
usage: Usage;
|
|
4695
|
+
usage: _perstack_core.Usage;
|
|
5969
4696
|
}), undefined, never, never, never, never, never>;
|
|
5970
4697
|
};
|
|
5971
4698
|
};
|
|
@@ -6001,7 +4728,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6001
4728
|
type: "startRun";
|
|
6002
4729
|
} & {
|
|
6003
4730
|
initialCheckpoint: Checkpoint;
|
|
6004
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
4731
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
6005
4732
|
}) | ({
|
|
6006
4733
|
id: string;
|
|
6007
4734
|
expertKey: string;
|
|
@@ -6011,7 +4738,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6011
4738
|
} & {
|
|
6012
4739
|
type: "startGeneration";
|
|
6013
4740
|
} & {
|
|
6014
|
-
messages: Message[];
|
|
4741
|
+
messages: _perstack_core.Message[];
|
|
6015
4742
|
}) | ({
|
|
6016
4743
|
id: string;
|
|
6017
4744
|
expertKey: string;
|
|
@@ -6022,10 +4749,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6022
4749
|
type: "retry";
|
|
6023
4750
|
} & {
|
|
6024
4751
|
reason: string;
|
|
6025
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
6026
|
-
toolCall?: ToolCall;
|
|
6027
|
-
toolResult?: ToolResult;
|
|
6028
|
-
usage: Usage;
|
|
4752
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
4753
|
+
toolCall?: _perstack_core.ToolCall;
|
|
4754
|
+
toolResult?: _perstack_core.ToolResult;
|
|
4755
|
+
usage: _perstack_core.Usage;
|
|
6029
4756
|
}) | ({
|
|
6030
4757
|
id: string;
|
|
6031
4758
|
expertKey: string;
|
|
@@ -6035,9 +4762,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6035
4762
|
} & {
|
|
6036
4763
|
type: "callTool";
|
|
6037
4764
|
} & {
|
|
6038
|
-
newMessage: ExpertMessage;
|
|
6039
|
-
toolCall: ToolCall;
|
|
6040
|
-
usage: Usage;
|
|
4765
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4766
|
+
toolCall: _perstack_core.ToolCall;
|
|
4767
|
+
usage: _perstack_core.Usage;
|
|
6041
4768
|
}) | ({
|
|
6042
4769
|
id: string;
|
|
6043
4770
|
expertKey: string;
|
|
@@ -6047,9 +4774,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6047
4774
|
} & {
|
|
6048
4775
|
type: "callInteractiveTool";
|
|
6049
4776
|
} & {
|
|
6050
|
-
newMessage: ExpertMessage;
|
|
6051
|
-
toolCall: ToolCall;
|
|
6052
|
-
usage: Usage;
|
|
4777
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4778
|
+
toolCall: _perstack_core.ToolCall;
|
|
4779
|
+
usage: _perstack_core.Usage;
|
|
6053
4780
|
}) | ({
|
|
6054
4781
|
id: string;
|
|
6055
4782
|
expertKey: string;
|
|
@@ -6059,9 +4786,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6059
4786
|
} & {
|
|
6060
4787
|
type: "callDelegate";
|
|
6061
4788
|
} & {
|
|
6062
|
-
newMessage: ExpertMessage;
|
|
6063
|
-
toolCall: ToolCall;
|
|
6064
|
-
usage: Usage;
|
|
4789
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4790
|
+
toolCall: _perstack_core.ToolCall;
|
|
4791
|
+
usage: _perstack_core.Usage;
|
|
6065
4792
|
}) | ({
|
|
6066
4793
|
id: string;
|
|
6067
4794
|
expertKey: string;
|
|
@@ -6071,7 +4798,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6071
4798
|
} & {
|
|
6072
4799
|
type: "resolveToolResult";
|
|
6073
4800
|
} & {
|
|
6074
|
-
toolResult: ToolResult;
|
|
4801
|
+
toolResult: _perstack_core.ToolResult;
|
|
6075
4802
|
}) | ({
|
|
6076
4803
|
id: string;
|
|
6077
4804
|
expertKey: string;
|
|
@@ -6081,7 +4808,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6081
4808
|
} & {
|
|
6082
4809
|
type: "resolveThought";
|
|
6083
4810
|
} & {
|
|
6084
|
-
toolResult: ToolResult;
|
|
4811
|
+
toolResult: _perstack_core.ToolResult;
|
|
6085
4812
|
}) | ({
|
|
6086
4813
|
id: string;
|
|
6087
4814
|
expertKey: string;
|
|
@@ -6091,7 +4818,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6091
4818
|
} & {
|
|
6092
4819
|
type: "resolvePdfFile";
|
|
6093
4820
|
} & {
|
|
6094
|
-
toolResult: ToolResult;
|
|
4821
|
+
toolResult: _perstack_core.ToolResult;
|
|
6095
4822
|
}) | ({
|
|
6096
4823
|
id: string;
|
|
6097
4824
|
expertKey: string;
|
|
@@ -6101,7 +4828,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6101
4828
|
} & {
|
|
6102
4829
|
type: "resolveImageFile";
|
|
6103
4830
|
} & {
|
|
6104
|
-
toolResult: ToolResult;
|
|
4831
|
+
toolResult: _perstack_core.ToolResult;
|
|
6105
4832
|
}) | ({
|
|
6106
4833
|
id: string;
|
|
6107
4834
|
expertKey: string;
|
|
@@ -6111,7 +4838,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6111
4838
|
} & {
|
|
6112
4839
|
type: "attemptCompletion";
|
|
6113
4840
|
} & {
|
|
6114
|
-
toolResult: ToolResult;
|
|
4841
|
+
toolResult: _perstack_core.ToolResult;
|
|
6115
4842
|
}) | ({
|
|
6116
4843
|
id: string;
|
|
6117
4844
|
expertKey: string;
|
|
@@ -6121,7 +4848,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6121
4848
|
} & {
|
|
6122
4849
|
type: "finishToolCall";
|
|
6123
4850
|
} & {
|
|
6124
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
4851
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
6125
4852
|
}) | ({
|
|
6126
4853
|
id: string;
|
|
6127
4854
|
expertKey: string;
|
|
@@ -6179,7 +4906,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6179
4906
|
checkpoint: Checkpoint;
|
|
6180
4907
|
step: Step;
|
|
6181
4908
|
text: string;
|
|
6182
|
-
usage: Usage;
|
|
4909
|
+
usage: _perstack_core.Usage;
|
|
6183
4910
|
}), undefined, never, never, never, never, never>;
|
|
6184
4911
|
};
|
|
6185
4912
|
};
|
|
@@ -6216,7 +4943,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6216
4943
|
type: "startRun";
|
|
6217
4944
|
} & {
|
|
6218
4945
|
initialCheckpoint: Checkpoint;
|
|
6219
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
4946
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
6220
4947
|
}) | ({
|
|
6221
4948
|
id: string;
|
|
6222
4949
|
expertKey: string;
|
|
@@ -6226,7 +4953,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6226
4953
|
} & {
|
|
6227
4954
|
type: "startGeneration";
|
|
6228
4955
|
} & {
|
|
6229
|
-
messages: Message[];
|
|
4956
|
+
messages: _perstack_core.Message[];
|
|
6230
4957
|
}) | ({
|
|
6231
4958
|
id: string;
|
|
6232
4959
|
expertKey: string;
|
|
@@ -6237,10 +4964,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6237
4964
|
type: "retry";
|
|
6238
4965
|
} & {
|
|
6239
4966
|
reason: string;
|
|
6240
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
6241
|
-
toolCall?: ToolCall;
|
|
6242
|
-
toolResult?: ToolResult;
|
|
6243
|
-
usage: Usage;
|
|
4967
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
4968
|
+
toolCall?: _perstack_core.ToolCall;
|
|
4969
|
+
toolResult?: _perstack_core.ToolResult;
|
|
4970
|
+
usage: _perstack_core.Usage;
|
|
6244
4971
|
}) | ({
|
|
6245
4972
|
id: string;
|
|
6246
4973
|
expertKey: string;
|
|
@@ -6250,9 +4977,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6250
4977
|
} & {
|
|
6251
4978
|
type: "callTool";
|
|
6252
4979
|
} & {
|
|
6253
|
-
newMessage: ExpertMessage;
|
|
6254
|
-
toolCall: ToolCall;
|
|
6255
|
-
usage: Usage;
|
|
4980
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4981
|
+
toolCall: _perstack_core.ToolCall;
|
|
4982
|
+
usage: _perstack_core.Usage;
|
|
6256
4983
|
}) | ({
|
|
6257
4984
|
id: string;
|
|
6258
4985
|
expertKey: string;
|
|
@@ -6262,9 +4989,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6262
4989
|
} & {
|
|
6263
4990
|
type: "callInteractiveTool";
|
|
6264
4991
|
} & {
|
|
6265
|
-
newMessage: ExpertMessage;
|
|
6266
|
-
toolCall: ToolCall;
|
|
6267
|
-
usage: Usage;
|
|
4992
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
4993
|
+
toolCall: _perstack_core.ToolCall;
|
|
4994
|
+
usage: _perstack_core.Usage;
|
|
6268
4995
|
}) | ({
|
|
6269
4996
|
id: string;
|
|
6270
4997
|
expertKey: string;
|
|
@@ -6274,9 +5001,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6274
5001
|
} & {
|
|
6275
5002
|
type: "callDelegate";
|
|
6276
5003
|
} & {
|
|
6277
|
-
newMessage: ExpertMessage;
|
|
6278
|
-
toolCall: ToolCall;
|
|
6279
|
-
usage: Usage;
|
|
5004
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
5005
|
+
toolCall: _perstack_core.ToolCall;
|
|
5006
|
+
usage: _perstack_core.Usage;
|
|
6280
5007
|
}) | ({
|
|
6281
5008
|
id: string;
|
|
6282
5009
|
expertKey: string;
|
|
@@ -6286,7 +5013,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6286
5013
|
} & {
|
|
6287
5014
|
type: "resolveToolResult";
|
|
6288
5015
|
} & {
|
|
6289
|
-
toolResult: ToolResult;
|
|
5016
|
+
toolResult: _perstack_core.ToolResult;
|
|
6290
5017
|
}) | ({
|
|
6291
5018
|
id: string;
|
|
6292
5019
|
expertKey: string;
|
|
@@ -6296,7 +5023,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6296
5023
|
} & {
|
|
6297
5024
|
type: "resolveThought";
|
|
6298
5025
|
} & {
|
|
6299
|
-
toolResult: ToolResult;
|
|
5026
|
+
toolResult: _perstack_core.ToolResult;
|
|
6300
5027
|
}) | ({
|
|
6301
5028
|
id: string;
|
|
6302
5029
|
expertKey: string;
|
|
@@ -6306,7 +5033,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6306
5033
|
} & {
|
|
6307
5034
|
type: "resolvePdfFile";
|
|
6308
5035
|
} & {
|
|
6309
|
-
toolResult: ToolResult;
|
|
5036
|
+
toolResult: _perstack_core.ToolResult;
|
|
6310
5037
|
}) | ({
|
|
6311
5038
|
id: string;
|
|
6312
5039
|
expertKey: string;
|
|
@@ -6316,7 +5043,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6316
5043
|
} & {
|
|
6317
5044
|
type: "resolveImageFile";
|
|
6318
5045
|
} & {
|
|
6319
|
-
toolResult: ToolResult;
|
|
5046
|
+
toolResult: _perstack_core.ToolResult;
|
|
6320
5047
|
}) | ({
|
|
6321
5048
|
id: string;
|
|
6322
5049
|
expertKey: string;
|
|
@@ -6326,7 +5053,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6326
5053
|
} & {
|
|
6327
5054
|
type: "attemptCompletion";
|
|
6328
5055
|
} & {
|
|
6329
|
-
toolResult: ToolResult;
|
|
5056
|
+
toolResult: _perstack_core.ToolResult;
|
|
6330
5057
|
}) | ({
|
|
6331
5058
|
id: string;
|
|
6332
5059
|
expertKey: string;
|
|
@@ -6336,7 +5063,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6336
5063
|
} & {
|
|
6337
5064
|
type: "finishToolCall";
|
|
6338
5065
|
} & {
|
|
6339
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
5066
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
6340
5067
|
}) | ({
|
|
6341
5068
|
id: string;
|
|
6342
5069
|
expertKey: string;
|
|
@@ -6394,7 +5121,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6394
5121
|
checkpoint: Checkpoint;
|
|
6395
5122
|
step: Step;
|
|
6396
5123
|
text: string;
|
|
6397
|
-
usage: Usage;
|
|
5124
|
+
usage: _perstack_core.Usage;
|
|
6398
5125
|
}), undefined, never, never, never, never, never>;
|
|
6399
5126
|
readonly reenter: true;
|
|
6400
5127
|
};
|
|
@@ -6427,7 +5154,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6427
5154
|
type: "startRun";
|
|
6428
5155
|
} & {
|
|
6429
5156
|
initialCheckpoint: Checkpoint;
|
|
6430
|
-
inputMessages: (InstructionMessage | UserMessage | ToolMessage)[];
|
|
5157
|
+
inputMessages: (_perstack_core.InstructionMessage | _perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
6431
5158
|
}) | ({
|
|
6432
5159
|
id: string;
|
|
6433
5160
|
expertKey: string;
|
|
@@ -6437,7 +5164,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6437
5164
|
} & {
|
|
6438
5165
|
type: "startGeneration";
|
|
6439
5166
|
} & {
|
|
6440
|
-
messages: Message[];
|
|
5167
|
+
messages: _perstack_core.Message[];
|
|
6441
5168
|
}) | ({
|
|
6442
5169
|
id: string;
|
|
6443
5170
|
expertKey: string;
|
|
@@ -6448,10 +5175,10 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6448
5175
|
type: "retry";
|
|
6449
5176
|
} & {
|
|
6450
5177
|
reason: string;
|
|
6451
|
-
newMessages: (UserMessage | ExpertMessage | ToolMessage)[];
|
|
6452
|
-
toolCall?: ToolCall;
|
|
6453
|
-
toolResult?: ToolResult;
|
|
6454
|
-
usage: Usage;
|
|
5178
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ExpertMessage | _perstack_core.ToolMessage)[];
|
|
5179
|
+
toolCall?: _perstack_core.ToolCall;
|
|
5180
|
+
toolResult?: _perstack_core.ToolResult;
|
|
5181
|
+
usage: _perstack_core.Usage;
|
|
6455
5182
|
}) | ({
|
|
6456
5183
|
id: string;
|
|
6457
5184
|
expertKey: string;
|
|
@@ -6461,9 +5188,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6461
5188
|
} & {
|
|
6462
5189
|
type: "callTool";
|
|
6463
5190
|
} & {
|
|
6464
|
-
newMessage: ExpertMessage;
|
|
6465
|
-
toolCall: ToolCall;
|
|
6466
|
-
usage: Usage;
|
|
5191
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
5192
|
+
toolCall: _perstack_core.ToolCall;
|
|
5193
|
+
usage: _perstack_core.Usage;
|
|
6467
5194
|
}) | ({
|
|
6468
5195
|
id: string;
|
|
6469
5196
|
expertKey: string;
|
|
@@ -6473,9 +5200,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6473
5200
|
} & {
|
|
6474
5201
|
type: "callInteractiveTool";
|
|
6475
5202
|
} & {
|
|
6476
|
-
newMessage: ExpertMessage;
|
|
6477
|
-
toolCall: ToolCall;
|
|
6478
|
-
usage: Usage;
|
|
5203
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
5204
|
+
toolCall: _perstack_core.ToolCall;
|
|
5205
|
+
usage: _perstack_core.Usage;
|
|
6479
5206
|
}) | ({
|
|
6480
5207
|
id: string;
|
|
6481
5208
|
expertKey: string;
|
|
@@ -6485,9 +5212,9 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6485
5212
|
} & {
|
|
6486
5213
|
type: "callDelegate";
|
|
6487
5214
|
} & {
|
|
6488
|
-
newMessage: ExpertMessage;
|
|
6489
|
-
toolCall: ToolCall;
|
|
6490
|
-
usage: Usage;
|
|
5215
|
+
newMessage: _perstack_core.ExpertMessage;
|
|
5216
|
+
toolCall: _perstack_core.ToolCall;
|
|
5217
|
+
usage: _perstack_core.Usage;
|
|
6491
5218
|
}) | ({
|
|
6492
5219
|
id: string;
|
|
6493
5220
|
expertKey: string;
|
|
@@ -6497,7 +5224,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6497
5224
|
} & {
|
|
6498
5225
|
type: "resolveToolResult";
|
|
6499
5226
|
} & {
|
|
6500
|
-
toolResult: ToolResult;
|
|
5227
|
+
toolResult: _perstack_core.ToolResult;
|
|
6501
5228
|
}) | ({
|
|
6502
5229
|
id: string;
|
|
6503
5230
|
expertKey: string;
|
|
@@ -6507,7 +5234,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6507
5234
|
} & {
|
|
6508
5235
|
type: "resolveThought";
|
|
6509
5236
|
} & {
|
|
6510
|
-
toolResult: ToolResult;
|
|
5237
|
+
toolResult: _perstack_core.ToolResult;
|
|
6511
5238
|
}) | ({
|
|
6512
5239
|
id: string;
|
|
6513
5240
|
expertKey: string;
|
|
@@ -6517,7 +5244,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6517
5244
|
} & {
|
|
6518
5245
|
type: "resolvePdfFile";
|
|
6519
5246
|
} & {
|
|
6520
|
-
toolResult: ToolResult;
|
|
5247
|
+
toolResult: _perstack_core.ToolResult;
|
|
6521
5248
|
}) | ({
|
|
6522
5249
|
id: string;
|
|
6523
5250
|
expertKey: string;
|
|
@@ -6527,7 +5254,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6527
5254
|
} & {
|
|
6528
5255
|
type: "resolveImageFile";
|
|
6529
5256
|
} & {
|
|
6530
|
-
toolResult: ToolResult;
|
|
5257
|
+
toolResult: _perstack_core.ToolResult;
|
|
6531
5258
|
}) | ({
|
|
6532
5259
|
id: string;
|
|
6533
5260
|
expertKey: string;
|
|
@@ -6537,7 +5264,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6537
5264
|
} & {
|
|
6538
5265
|
type: "attemptCompletion";
|
|
6539
5266
|
} & {
|
|
6540
|
-
toolResult: ToolResult;
|
|
5267
|
+
toolResult: _perstack_core.ToolResult;
|
|
6541
5268
|
}) | ({
|
|
6542
5269
|
id: string;
|
|
6543
5270
|
expertKey: string;
|
|
@@ -6547,7 +5274,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6547
5274
|
} & {
|
|
6548
5275
|
type: "finishToolCall";
|
|
6549
5276
|
} & {
|
|
6550
|
-
newMessages: (UserMessage | ToolMessage)[];
|
|
5277
|
+
newMessages: (_perstack_core.UserMessage | _perstack_core.ToolMessage)[];
|
|
6551
5278
|
}) | ({
|
|
6552
5279
|
id: string;
|
|
6553
5280
|
expertKey: string;
|
|
@@ -6605,7 +5332,7 @@ declare const runtimeStateMachine: xstate.StateMachine<{
|
|
|
6605
5332
|
checkpoint: Checkpoint;
|
|
6606
5333
|
step: Step;
|
|
6607
5334
|
text: string;
|
|
6608
|
-
usage: Usage;
|
|
5335
|
+
usage: _perstack_core.Usage;
|
|
6609
5336
|
}), undefined, never, never, never, never, never>;
|
|
6610
5337
|
};
|
|
6611
5338
|
};
|
|
@@ -6619,79 +5346,18 @@ declare const StateMachineLogics: Record<Exclude<RunSnapshot["value"], "Stopped"
|
|
|
6619
5346
|
type RunActor = ActorRefFrom<typeof runtimeStateMachine>;
|
|
6620
5347
|
type RunSnapshot = SnapshotFrom<typeof runtimeStateMachine>;
|
|
6621
5348
|
|
|
6622
|
-
declare
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
instruction: z.ZodString;
|
|
6630
|
-
skills: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6631
|
-
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
6632
|
-
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6633
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6634
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
6635
|
-
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6636
|
-
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6637
|
-
command: z.ZodString;
|
|
6638
|
-
packageName: z.ZodOptional<z.ZodString>;
|
|
6639
|
-
requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6640
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6641
|
-
type: z.ZodLiteral<"mcpSseSkill">;
|
|
6642
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6643
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
6644
|
-
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6645
|
-
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6646
|
-
endpoint: z.ZodString;
|
|
6647
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6648
|
-
type: z.ZodLiteral<"interactiveSkill">;
|
|
6649
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6650
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
6651
|
-
tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6652
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6653
|
-
inputJsonSchema: z.ZodString;
|
|
6654
|
-
}, z.core.$strip>>, z.ZodTransform<{
|
|
6655
|
-
[k: string]: {
|
|
6656
|
-
name: string;
|
|
6657
|
-
inputJsonSchema: string;
|
|
6658
|
-
description?: string | undefined;
|
|
6659
|
-
};
|
|
6660
|
-
}, Record<string, {
|
|
6661
|
-
inputJsonSchema: string;
|
|
6662
|
-
description?: string | undefined;
|
|
6663
|
-
}>>>;
|
|
6664
|
-
}, z.core.$strip>]>>;
|
|
6665
|
-
delegates: z.ZodArray<z.ZodString>;
|
|
6666
|
-
tags: z.ZodArray<z.ZodString>;
|
|
6667
|
-
status: z.ZodString;
|
|
6668
|
-
owner: z.ZodObject<{
|
|
6669
|
-
name: z.ZodString;
|
|
6670
|
-
}, z.core.$strip>;
|
|
6671
|
-
createdAt: z.ZodISODateTime;
|
|
6672
|
-
updatedAt: z.ZodISODateTime;
|
|
6673
|
-
}, z.core.$strip>;
|
|
6674
|
-
}, z.core.$strip>;
|
|
6675
|
-
}, z.core.$strip>;
|
|
6676
|
-
type RegistryV1ExpertsGetResponse = z.infer<typeof RegistryV1ExpertsGetResponseSchema>;
|
|
5349
|
+
declare function run(runInput: RunParamsInput, options?: {
|
|
5350
|
+
shouldContinueRun?: (setting: RunSetting, checkpoint: Checkpoint, step: Step) => Promise<boolean>;
|
|
5351
|
+
retrieveCheckpoint?: (checkpointId: string) => Promise<Checkpoint>;
|
|
5352
|
+
storeCheckpoint?: (checkpoint: Checkpoint, timestamp: number) => Promise<void>;
|
|
5353
|
+
eventListener?: (event: RunEvent) => Promise<void>;
|
|
5354
|
+
}): Promise<Checkpoint>;
|
|
5355
|
+
declare function getRunDir(runId: string): string;
|
|
6677
5356
|
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
declare const RunInputSchema: z.ZodObject<{
|
|
6682
|
-
expertKey: z.ZodString;
|
|
6683
|
-
query: z.ZodString;
|
|
6684
|
-
options: z.ZodObject<{
|
|
6685
|
-
config: z.ZodOptional<z.ZodString>;
|
|
6686
|
-
model: z.ZodOptional<z.ZodString>;
|
|
6687
|
-
temperature: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | undefined, string | undefined>>;
|
|
6688
|
-
maxSteps: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | undefined, string | undefined>>;
|
|
6689
|
-
maxRetries: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | undefined, string | undefined>>;
|
|
6690
|
-
timeout: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | undefined, string | undefined>>;
|
|
6691
|
-
runId: z.ZodOptional<z.ZodString>;
|
|
6692
|
-
}, z.core.$strip>;
|
|
6693
|
-
}, z.core.$strip>;
|
|
5357
|
+
declare function getModel(modelId: string, providerConfig: ProviderConfig): LanguageModel;
|
|
5358
|
+
declare function getContextWindow(providerName: ProviderName, modelId: string): number | undefined;
|
|
5359
|
+
declare function calculateContextWindowUsage(usage: Usage, contextWindow: number): number;
|
|
6694
5360
|
|
|
6695
5361
|
declare function defaultEventListener(e: RunEvent): Promise<void>;
|
|
6696
5362
|
|
|
6697
|
-
export { type
|
|
5363
|
+
export { type RunActor, type RunSnapshot, StateMachineLogics, calculateContextWindowUsage, defaultEventListener, getContextWindow, getModel, getRunDir, run, runtimeStateMachine };
|