@deepagents/agent 7.0.2 → 7.1.1
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/README.md +13 -14
- package/dist/index.js +61 -67
- package/dist/index.js.map +3 -3
- package/dist/lib/agent.d.ts +70 -74
- package/dist/lib/agent.d.ts.map +1 -1
- package/dist/lib/blog/docker.d.ts.map +1 -1
- package/dist/lib/blog/research.d.ts.map +1 -1
- package/dist/lib/examples/planner.d.ts.map +1 -1
- package/dist/lib/patterns/plan_and_act/plan_and_act.d.ts.map +1 -1
- package/dist/lib/patterns/plan_and_execute/plan_and_execute.d.ts.map +1 -1
- package/dist/lib/patterns/plan_and_execute/plan_and_execute_os.d.ts.map +1 -1
- package/dist/lib/patterns/rewoo/rewoo.d.ts.map +1 -1
- package/dist/lib/patterns/supervisor.d.ts.map +1 -1
- package/dist/lib/stream_utils.d.ts +1 -2
- package/dist/lib/stream_utils.d.ts.map +1 -1
- package/dist/lib/swarm.d.ts +20 -8
- package/dist/lib/swarm.d.ts.map +1 -1
- package/dist/lib/tool-output.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/lib/agent.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type LanguageModelV4 } from '@ai-sdk/provider';
|
|
2
|
-
import { type GenerateTextResult, type ModelMessage, type StreamTextResult, type ToolCallRepairFunction, type ToolChoice, type ToolSet, type UIDataTypes, type UIMessage, type UITools, generateText } from 'ai';
|
|
2
|
+
import { type DeepPartial, type GenerateTextResult, type ModelMessage, Output, type StreamTextResult, type ToolCallRepairFunction, type ToolChoice, type ToolExecutionOptions, type ToolSet, type UIDataTypes, type UIMessage, type UITools, generateText } from 'ai';
|
|
3
3
|
import z from 'zod';
|
|
4
|
+
import { type SwarmContext } from './swarm.ts';
|
|
4
5
|
export interface Handoff<CIn> {
|
|
5
6
|
name: string;
|
|
6
7
|
instructions: Instruction<CIn>;
|
|
@@ -14,12 +15,16 @@ export type ContextVariables = Record<string, unknown>;
|
|
|
14
15
|
export declare function agent<Output, CIn = ContextVariables, COut = CIn>(config: CreateAgent<Output, CIn, COut>): Agent<Output, CIn, COut>;
|
|
15
16
|
export type ResponseMessage = UIMessage<unknown, UIDataTypes, UITools>;
|
|
16
17
|
export type AgentModel = LanguageModelV4;
|
|
17
|
-
|
|
18
|
+
/** The AI SDK output spec of an agent whose structured output is `O`. */
|
|
19
|
+
export type AgentOutput<O> = Output.Output<O, DeepPartial<O>, never>;
|
|
20
|
+
export type OutputExtractorFn<O = unknown> = (output: Omit<GenerateTextResult<ToolSet, any, any>, 'output'> & {
|
|
21
|
+
readonly output: O;
|
|
22
|
+
}) => string | Promise<string>;
|
|
18
23
|
export type PrepareHandoffFn = (messages: ModelMessage[]) => void | Promise<void>;
|
|
19
24
|
export type PrepareEndFn<C, _O = unknown> = (config: {
|
|
20
25
|
messages: ResponseMessage[];
|
|
21
26
|
responseMessage: ResponseMessage;
|
|
22
|
-
contextVariables: C;
|
|
27
|
+
contextVariables: C & SwarmContext;
|
|
23
28
|
abortSignal?: AbortSignal;
|
|
24
29
|
}) => StreamTextResult<ToolSet, any, any> | Promise<StreamTextResult<ToolSet, any, any>> | undefined | void;
|
|
25
30
|
export interface CreateAgent<Output, CIn, COut = CIn> {
|
|
@@ -61,7 +66,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
61
66
|
toHandoffs(): Agent<unknown, CIn, COut>[];
|
|
62
67
|
asTool(props?: {
|
|
63
68
|
toolDescription?: string;
|
|
64
|
-
outputExtractor?: OutputExtractorFn
|
|
69
|
+
outputExtractor?: OutputExtractorFn<Output>;
|
|
65
70
|
}): ({
|
|
66
71
|
deferLoading?: boolean;
|
|
67
72
|
title?: string;
|
|
@@ -71,21 +76,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
71
76
|
input: string;
|
|
72
77
|
output?: string | undefined;
|
|
73
78
|
}>;
|
|
74
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
79
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
75
80
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
76
81
|
input: string;
|
|
77
82
|
output?: string | undefined;
|
|
78
|
-
}, NoInfer<
|
|
79
|
-
onInputStart?: ((options:
|
|
83
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
84
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
80
85
|
onInputDelta?: ((options: {
|
|
81
86
|
inputTextDelta: string;
|
|
82
|
-
} &
|
|
87
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
83
88
|
onInputAvailable?: ((options: {
|
|
84
89
|
input: {
|
|
85
90
|
input: string;
|
|
86
91
|
output?: string | undefined;
|
|
87
92
|
};
|
|
88
|
-
} &
|
|
93
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
89
94
|
toModelOutput?: ((options: {
|
|
90
95
|
toolCallId: string;
|
|
91
96
|
input: {
|
|
@@ -99,10 +104,10 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
99
104
|
execute: import("ai").ToolExecuteFunction<{
|
|
100
105
|
input: string;
|
|
101
106
|
output?: string | undefined;
|
|
102
|
-
}, string, NoInfer<
|
|
107
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
103
108
|
} & {
|
|
104
109
|
description?: string | ((options: {
|
|
105
|
-
context: NoInfer<
|
|
110
|
+
context: NoInfer<CIn & SwarmContext>;
|
|
106
111
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
107
112
|
}) => string) | undefined;
|
|
108
113
|
strict?: boolean;
|
|
@@ -122,7 +127,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
122
127
|
execute: import("ai").ToolExecuteFunction<{
|
|
123
128
|
input: string;
|
|
124
129
|
output?: string | undefined;
|
|
125
|
-
}, string, NoInfer<
|
|
130
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
126
131
|
}) | ({
|
|
127
132
|
deferLoading?: boolean;
|
|
128
133
|
title?: string;
|
|
@@ -132,21 +137,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
132
137
|
input: string;
|
|
133
138
|
output?: string | undefined;
|
|
134
139
|
}>;
|
|
135
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
140
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
136
141
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
137
142
|
input: string;
|
|
138
143
|
output?: string | undefined;
|
|
139
|
-
}, NoInfer<
|
|
140
|
-
onInputStart?: ((options:
|
|
144
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
145
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
141
146
|
onInputDelta?: ((options: {
|
|
142
147
|
inputTextDelta: string;
|
|
143
|
-
} &
|
|
148
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
144
149
|
onInputAvailable?: ((options: {
|
|
145
150
|
input: {
|
|
146
151
|
input: string;
|
|
147
152
|
output?: string | undefined;
|
|
148
153
|
};
|
|
149
|
-
} &
|
|
154
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
150
155
|
toModelOutput?: ((options: {
|
|
151
156
|
toolCallId: string;
|
|
152
157
|
input: {
|
|
@@ -160,10 +165,10 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
160
165
|
execute: import("ai").ToolExecuteFunction<{
|
|
161
166
|
input: string;
|
|
162
167
|
output?: string | undefined;
|
|
163
|
-
}, string, NoInfer<
|
|
168
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
164
169
|
} & {
|
|
165
170
|
description?: string | ((options: {
|
|
166
|
-
context: NoInfer<
|
|
171
|
+
context: NoInfer<CIn & SwarmContext>;
|
|
167
172
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
168
173
|
}) => string) | undefined;
|
|
169
174
|
strict?: boolean;
|
|
@@ -183,7 +188,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
183
188
|
execute: import("ai").ToolExecuteFunction<{
|
|
184
189
|
input: string;
|
|
185
190
|
output?: string | undefined;
|
|
186
|
-
}, string, NoInfer<
|
|
191
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
187
192
|
}) | ({
|
|
188
193
|
deferLoading?: boolean;
|
|
189
194
|
title?: string;
|
|
@@ -193,21 +198,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
193
198
|
input: string;
|
|
194
199
|
output?: string | undefined;
|
|
195
200
|
}>;
|
|
196
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
201
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
197
202
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
198
203
|
input: string;
|
|
199
204
|
output?: string | undefined;
|
|
200
|
-
}, NoInfer<
|
|
201
|
-
onInputStart?: ((options:
|
|
205
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
206
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
202
207
|
onInputDelta?: ((options: {
|
|
203
208
|
inputTextDelta: string;
|
|
204
|
-
} &
|
|
209
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
205
210
|
onInputAvailable?: ((options: {
|
|
206
211
|
input: {
|
|
207
212
|
input: string;
|
|
208
213
|
output?: string | undefined;
|
|
209
214
|
};
|
|
210
|
-
} &
|
|
215
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
211
216
|
toModelOutput?: ((options: {
|
|
212
217
|
toolCallId: string;
|
|
213
218
|
input: {
|
|
@@ -221,7 +226,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
221
226
|
execute: import("ai").ToolExecuteFunction<{
|
|
222
227
|
input: string;
|
|
223
228
|
output?: string | undefined;
|
|
224
|
-
}, string, NoInfer<
|
|
229
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
225
230
|
} & {
|
|
226
231
|
type: "provider";
|
|
227
232
|
id: `${string}.${string}`;
|
|
@@ -236,7 +241,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
236
241
|
execute: import("ai").ToolExecuteFunction<{
|
|
237
242
|
input: string;
|
|
238
243
|
output?: string | undefined;
|
|
239
|
-
}, string, NoInfer<
|
|
244
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
240
245
|
}) | ({
|
|
241
246
|
deferLoading?: boolean;
|
|
242
247
|
title?: string;
|
|
@@ -246,21 +251,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
246
251
|
input: string;
|
|
247
252
|
output?: string | undefined;
|
|
248
253
|
}>;
|
|
249
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
254
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
250
255
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
251
256
|
input: string;
|
|
252
257
|
output?: string | undefined;
|
|
253
|
-
}, NoInfer<
|
|
254
|
-
onInputStart?: ((options:
|
|
258
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
259
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
255
260
|
onInputDelta?: ((options: {
|
|
256
261
|
inputTextDelta: string;
|
|
257
|
-
} &
|
|
262
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
258
263
|
onInputAvailable?: ((options: {
|
|
259
264
|
input: {
|
|
260
265
|
input: string;
|
|
261
266
|
output?: string | undefined;
|
|
262
267
|
};
|
|
263
|
-
} &
|
|
268
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
264
269
|
toModelOutput?: ((options: {
|
|
265
270
|
toolCallId: string;
|
|
266
271
|
input: {
|
|
@@ -274,7 +279,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
274
279
|
execute: import("ai").ToolExecuteFunction<{
|
|
275
280
|
input: string;
|
|
276
281
|
output?: string | undefined;
|
|
277
|
-
}, string, NoInfer<
|
|
282
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
278
283
|
} & {
|
|
279
284
|
type: "provider";
|
|
280
285
|
id: `${string}.${string}`;
|
|
@@ -289,11 +294,11 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
289
294
|
execute: import("ai").ToolExecuteFunction<{
|
|
290
295
|
input: string;
|
|
291
296
|
output?: string | undefined;
|
|
292
|
-
}, string, NoInfer<
|
|
297
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
293
298
|
});
|
|
294
299
|
toTool(props?: {
|
|
295
300
|
toolDescription?: string;
|
|
296
|
-
outputExtractor?: OutputExtractorFn
|
|
301
|
+
outputExtractor?: OutputExtractorFn<Output>;
|
|
297
302
|
}): {
|
|
298
303
|
[x: string]: ({
|
|
299
304
|
deferLoading?: boolean;
|
|
@@ -304,21 +309,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
304
309
|
input: string;
|
|
305
310
|
output?: string | undefined;
|
|
306
311
|
}>;
|
|
307
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
312
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
308
313
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
309
314
|
input: string;
|
|
310
315
|
output?: string | undefined;
|
|
311
|
-
}, NoInfer<
|
|
312
|
-
onInputStart?: ((options:
|
|
316
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
317
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
313
318
|
onInputDelta?: ((options: {
|
|
314
319
|
inputTextDelta: string;
|
|
315
|
-
} &
|
|
320
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
316
321
|
onInputAvailable?: ((options: {
|
|
317
322
|
input: {
|
|
318
323
|
input: string;
|
|
319
324
|
output?: string | undefined;
|
|
320
325
|
};
|
|
321
|
-
} &
|
|
326
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
322
327
|
toModelOutput?: ((options: {
|
|
323
328
|
toolCallId: string;
|
|
324
329
|
input: {
|
|
@@ -332,10 +337,10 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
332
337
|
execute: import("ai").ToolExecuteFunction<{
|
|
333
338
|
input: string;
|
|
334
339
|
output?: string | undefined;
|
|
335
|
-
}, string, NoInfer<
|
|
340
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
336
341
|
} & {
|
|
337
342
|
description?: string | ((options: {
|
|
338
|
-
context: NoInfer<
|
|
343
|
+
context: NoInfer<CIn & SwarmContext>;
|
|
339
344
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
340
345
|
}) => string) | undefined;
|
|
341
346
|
strict?: boolean;
|
|
@@ -355,7 +360,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
355
360
|
execute: import("ai").ToolExecuteFunction<{
|
|
356
361
|
input: string;
|
|
357
362
|
output?: string | undefined;
|
|
358
|
-
}, string, NoInfer<
|
|
363
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
359
364
|
}) | ({
|
|
360
365
|
deferLoading?: boolean;
|
|
361
366
|
title?: string;
|
|
@@ -365,21 +370,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
365
370
|
input: string;
|
|
366
371
|
output?: string | undefined;
|
|
367
372
|
}>;
|
|
368
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
373
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
369
374
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
370
375
|
input: string;
|
|
371
376
|
output?: string | undefined;
|
|
372
|
-
}, NoInfer<
|
|
373
|
-
onInputStart?: ((options:
|
|
377
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
378
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
374
379
|
onInputDelta?: ((options: {
|
|
375
380
|
inputTextDelta: string;
|
|
376
|
-
} &
|
|
381
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
377
382
|
onInputAvailable?: ((options: {
|
|
378
383
|
input: {
|
|
379
384
|
input: string;
|
|
380
385
|
output?: string | undefined;
|
|
381
386
|
};
|
|
382
|
-
} &
|
|
387
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
383
388
|
toModelOutput?: ((options: {
|
|
384
389
|
toolCallId: string;
|
|
385
390
|
input: {
|
|
@@ -393,10 +398,10 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
393
398
|
execute: import("ai").ToolExecuteFunction<{
|
|
394
399
|
input: string;
|
|
395
400
|
output?: string | undefined;
|
|
396
|
-
}, string, NoInfer<
|
|
401
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
397
402
|
} & {
|
|
398
403
|
description?: string | ((options: {
|
|
399
|
-
context: NoInfer<
|
|
404
|
+
context: NoInfer<CIn & SwarmContext>;
|
|
400
405
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
401
406
|
}) => string) | undefined;
|
|
402
407
|
strict?: boolean;
|
|
@@ -416,7 +421,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
416
421
|
execute: import("ai").ToolExecuteFunction<{
|
|
417
422
|
input: string;
|
|
418
423
|
output?: string | undefined;
|
|
419
|
-
}, string, NoInfer<
|
|
424
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
420
425
|
}) | ({
|
|
421
426
|
deferLoading?: boolean;
|
|
422
427
|
title?: string;
|
|
@@ -426,21 +431,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
426
431
|
input: string;
|
|
427
432
|
output?: string | undefined;
|
|
428
433
|
}>;
|
|
429
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
434
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
430
435
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
431
436
|
input: string;
|
|
432
437
|
output?: string | undefined;
|
|
433
|
-
}, NoInfer<
|
|
434
|
-
onInputStart?: ((options:
|
|
438
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
439
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
435
440
|
onInputDelta?: ((options: {
|
|
436
441
|
inputTextDelta: string;
|
|
437
|
-
} &
|
|
442
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
438
443
|
onInputAvailable?: ((options: {
|
|
439
444
|
input: {
|
|
440
445
|
input: string;
|
|
441
446
|
output?: string | undefined;
|
|
442
447
|
};
|
|
443
|
-
} &
|
|
448
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
444
449
|
toModelOutput?: ((options: {
|
|
445
450
|
toolCallId: string;
|
|
446
451
|
input: {
|
|
@@ -454,7 +459,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
454
459
|
execute: import("ai").ToolExecuteFunction<{
|
|
455
460
|
input: string;
|
|
456
461
|
output?: string | undefined;
|
|
457
|
-
}, string, NoInfer<
|
|
462
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
458
463
|
} & {
|
|
459
464
|
type: "provider";
|
|
460
465
|
id: `${string}.${string}`;
|
|
@@ -469,7 +474,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
469
474
|
execute: import("ai").ToolExecuteFunction<{
|
|
470
475
|
input: string;
|
|
471
476
|
output?: string | undefined;
|
|
472
|
-
}, string, NoInfer<
|
|
477
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
473
478
|
}) | ({
|
|
474
479
|
deferLoading?: boolean;
|
|
475
480
|
title?: string;
|
|
@@ -479,21 +484,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
479
484
|
input: string;
|
|
480
485
|
output?: string | undefined;
|
|
481
486
|
}>;
|
|
482
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
487
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
483
488
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
484
489
|
input: string;
|
|
485
490
|
output?: string | undefined;
|
|
486
|
-
}, NoInfer<
|
|
487
|
-
onInputStart?: ((options:
|
|
491
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
492
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
488
493
|
onInputDelta?: ((options: {
|
|
489
494
|
inputTextDelta: string;
|
|
490
|
-
} &
|
|
495
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
491
496
|
onInputAvailable?: ((options: {
|
|
492
497
|
input: {
|
|
493
498
|
input: string;
|
|
494
499
|
output?: string | undefined;
|
|
495
500
|
};
|
|
496
|
-
} &
|
|
501
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
497
502
|
toModelOutput?: ((options: {
|
|
498
503
|
toolCallId: string;
|
|
499
504
|
input: {
|
|
@@ -507,7 +512,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
507
512
|
execute: import("ai").ToolExecuteFunction<{
|
|
508
513
|
input: string;
|
|
509
514
|
output?: string | undefined;
|
|
510
|
-
}, string, NoInfer<
|
|
515
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
511
516
|
} & {
|
|
512
517
|
type: "provider";
|
|
513
518
|
id: `${string}.${string}`;
|
|
@@ -522,7 +527,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
522
527
|
execute: import("ai").ToolExecuteFunction<{
|
|
523
528
|
input: string;
|
|
524
529
|
output?: string | undefined;
|
|
525
|
-
}, string, NoInfer<
|
|
530
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
526
531
|
});
|
|
527
532
|
};
|
|
528
533
|
debug(): void;
|
|
@@ -543,14 +548,5 @@ export declare namespace instructions {
|
|
|
543
548
|
var supervisor: ({ purpose, routine, }: PurposeRoutineInstructions) => string;
|
|
544
549
|
var supervisor_subagent: ({ purpose, routine, }: PurposeRoutineInstructions) => string;
|
|
545
550
|
}
|
|
546
|
-
type TransferResult = {
|
|
547
|
-
lastActiveAgent: string;
|
|
548
|
-
currentActiveAgent: string;
|
|
549
|
-
};
|
|
550
|
-
export type TransferTool = {
|
|
551
|
-
output: TransferResult;
|
|
552
|
-
};
|
|
553
|
-
export declare function isTransferToolResult(call: unknown | undefined): call is TransferTool;
|
|
554
|
-
export declare function lastTransferResult(messages: ResponseMessage[]): TransferResult | undefined;
|
|
555
551
|
export {};
|
|
556
552
|
//# sourceMappingURL=agent.d.ts.map
|
package/dist/lib/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/lib/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/lib/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,OAAO,EAEZ,YAAY,EAIb,MAAM,IAAI,CAAC;AAGZ,OAAO,CAAC,MAAM,KAAK,CAAC;AAQpB,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,YAAY,CAAC;AAG/E,MAAM,WAAW,OAAO,CAAC,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,WAAW,CAAC,GAAG,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M,MAAM,WAAW,CAAC,CAAC,IACvB,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,CAAC,gBAAgB,CAAC,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;AAEzD,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,0BAA0B,UAkB5E;yBAlBe,YAAY;sCAoBgB,0BAA0B;4CA0BnE,0BAA0B;qDA0B1B,0BAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docker.d.ts","sourceRoot":"","sources":["../../../src/lib/blog/docker.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAuB,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,aAAa,QAIlB,CAAC;
|
|
1
|
+
{"version":3,"file":"docker.d.ts","sourceRoot":"","sources":["../../../src/lib/blog/docker.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAuB,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,aAAa,QAIlB,CAAC;AAgeT,eAAO,MAAM,mBAAmB,EAAE,KAyBhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../../src/lib/blog/research.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAuB,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,sBAAsB,QAI3B,CAAC;
|
|
1
|
+
{"version":3,"file":"research.d.ts","sourceRoot":"","sources":["../../../src/lib/blog/research.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAuB,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,sBAAsB,QAI3B,CAAC;AA0FT,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,UAAU,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,+CA8BrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planner.d.ts","sourceRoot":"","sources":["../../../src/lib/examples/planner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"planner.d.ts","sourceRoot":"","sources":["../../../src/lib/examples/planner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;CAqB5B,CAAC;AAEF,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE,mCAM7D;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;;EAYpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan_and_act.d.ts","sourceRoot":"","sources":["../../../../src/lib/patterns/plan_and_act/plan_and_act.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,QAAA,MAAM,sBAAsB;;;;;;;;;;iBAY1B,CAAC;AAGH,QAAA,MAAM,qBAAqB;;;;;iBASzB,CAAC;AAGH,QAAA,MAAM,wBAAwB;;;;;;;;;;;iBAuB5B,CAAC;AAGH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO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AAgB,EAAE,KAAK,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,eAAe,CAAC;QAC3B,QAAQ,EAAE,kBAAkB,CAAC;KAC9B,CAAC,CAAC;IACH,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAgFD;;;GAGG;AACH,wBAAsB,aAAa,CACjC,KAAK,EAAE,MAAM,EACb,aAAa,SAAK,GACjB,OAAO,CAAC;IACT,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC;IAC7C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CA+ID"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan_and_execute.d.ts","sourceRoot":"","sources":["../../../../src/lib/patterns/plan_and_execute/plan_and_execute.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plan_and_execute.d.ts","sourceRoot":"","sources":["../../../../src/lib/patterns/plan_and_execute/plan_and_execute.ts"],"names":[],"mappings":"AAmGA,eAAO,MAAM,MAAM,+HAUjB,CAAC;AAGH,wBAAsB,cAAc,CAClC,SAAS,EAAE,MAAM,EACjB,WAAW,UAAQ,GAClB,OAAO,CAAC,MAAM,CAAC,CAmFjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan_and_execute_os.d.ts","sourceRoot":"","sources":["../../../../src/lib/patterns/plan_and_execute/plan_and_execute_os.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plan_and_execute_os.d.ts","sourceRoot":"","sources":["../../../../src/lib/patterns/plan_and_execute/plan_and_execute_os.ts"],"names":[],"mappings":"AAoGA,wBAAsB,cAAc,CAClC,SAAS,EAAE,MAAM,EACjB,WAAW,UAAQ,GAClB,OAAO,CAAC,MAAM,CAAC,CAmFjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewoo.d.ts","sourceRoot":"","sources":["../../../../src/lib/patterns/rewoo/rewoo.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAcpB,QAAA,MAAM,cAAc;;;;EAAoC,CAAC;AAiBzD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;iBAa1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AASF,eAAO,MAAM,YAAY;;;;;;;;;;;;wFAoBvB,CAAC;AA+BH,eAAO,MAAM,WAAW,+HAgBtB,CAAC;AAMH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"rewoo.d.ts","sourceRoot":"","sources":["../../../../src/lib/patterns/rewoo/rewoo.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAcpB,QAAA,MAAM,cAAc;;;;EAAoC,CAAC;AAiBzD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;iBAa1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AASF,eAAO,MAAM,YAAY;;;;;;;;;;;;wFAoBvB,CAAC;AA+BH,eAAO,MAAM,WAAW,+HAgBtB,CAAC;AAMH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;GAmC3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supervisor.d.ts","sourceRoot":"","sources":["../../../src/lib/patterns/supervisor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,IAAI,CAAC;AAElC,OAAO,EACL,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,WAAW,EAGjB,MAAM,aAAa,CAAC;AAKrB,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,KAAK,EAAE;IACzC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACvB,SAAS,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,CAAC,EAAE,cAAc,GAAG,cAAc,CAAC;IAC7C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,
|
|
1
|
+
{"version":3,"file":"supervisor.d.ts","sourceRoot":"","sources":["../../../src/lib/patterns/supervisor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,IAAI,CAAC;AAElC,OAAO,EACL,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,WAAW,EAGjB,MAAM,aAAa,CAAC;AAKrB,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,KAAK,EAAE;IACzC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACvB,SAAS,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,CAAC,EAAE,cAAc,GAAG,cAAc,CAAC;IAC7C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,wBA+EA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type GenerateTextResult, type InferUIMessageChunk, type Output, type StreamTextResult, type
|
|
1
|
+
import { type GenerateTextResult, type InferUIMessageChunk, type Output, type StreamTextResult, type ToolSet, type UIDataTypes, type UIMessage, type UITools } from 'ai';
|
|
2
2
|
export declare function streamWrite(response: StreamTextResult<ToolSet, any, any>): Promise<void>;
|
|
3
3
|
export declare const printer: {
|
|
4
4
|
readableStream: (stream: ReadableStream<InferUIMessageChunk<UIMessage<unknown, UIDataTypes, UITools>>>, options?: {
|
|
@@ -22,7 +22,6 @@ export declare function confirm(message: string, defaultValue?: boolean): Promis
|
|
|
22
22
|
export declare function last<T>(iterable: AsyncIterable<T>, position?: number): Promise<NonNullable<T>>;
|
|
23
23
|
export declare function finished<T>(iterable: AsyncIterable<T>): Promise<void>;
|
|
24
24
|
export declare function toOutput<T extends Output.Output>(result: Promise<GenerateTextResult<ToolSet, any, T>> | StreamTextResult<ToolSet, any, T>): Promise<import("ai").InferGenerateOutput<T>> | Promise<NonNullable<import("ai").InferStreamOutput<T>>>;
|
|
25
|
-
export declare function toState<C>(options: ToolExecutionOptions<any>): C;
|
|
26
25
|
export declare function toToolsContext<C>(tools: ToolSet, context: C): {
|
|
27
26
|
[k: string]: C;
|
|
28
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream_utils.d.ts","sourceRoot":"","sources":["../../src/lib/stream_utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,
|
|
1
|
+
{"version":3,"file":"stream_utils.d.ts","source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AAC,iBAE3D;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAC9C,MAAM,EACF,OAAO,CAAC,kBAAkB,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,GAC5C,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,0GAKtC;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;;EAI3D"}
|
package/dist/lib/swarm.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
import { type GenerateTextResult, type ModelMessage, type PrepareStepFunction, type PrepareStepResult, type StreamTextResult, type StreamTextTransform, type ToolSet, type UIDataTypes, type UIMessage, type UITools, generateText, streamText } from 'ai';
|
|
2
|
-
import { type Agent, type AgentModel } from './agent.ts';
|
|
1
|
+
import { type GenerateTextResult, type ModelMessage, type PrepareStepFunction, type PrepareStepResult, type StreamTextResult, type StreamTextTransform, type Tool, type ToolSet, type UIDataTypes, type UIMessage, type UITools, generateText, streamText } from 'ai';
|
|
2
|
+
import { type Agent, type AgentModel, type AgentOutput } from './agent.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Handoff state the swarm keeps on the context variables: a transfer tool
|
|
5
|
+
* writes the agent it hands off to, and prepareStep reads it on the next step.
|
|
6
|
+
*/
|
|
7
|
+
export type SwarmContext = {
|
|
8
|
+
currentActiveAgent?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* An agent's tools as the swarm runs them: every tool receives the swarm's
|
|
12
|
+
* context variables. Input and output stay `any`, as in the SDK's ToolSet.
|
|
13
|
+
*/
|
|
14
|
+
export type SwarmToolSet = Record<string, Tool<any, any, SwarmContext>>;
|
|
3
15
|
export type OutputMode = 'full_history' | 'last_message';
|
|
4
16
|
export interface ExecuteOptions {
|
|
5
17
|
contextVariables?: Record<string, unknown>;
|
|
@@ -7,17 +19,17 @@ export interface ExecuteOptions {
|
|
|
7
19
|
abortSignal?: AbortSignal;
|
|
8
20
|
outputMode?: OutputMode;
|
|
9
21
|
}
|
|
10
|
-
export declare function generate<O, CIn, COut = CIn>(agent: Agent<O, CIn, COut>, messages: UIMessage[] | string, contextVariables: CIn, config?: {
|
|
22
|
+
export declare function generate<O, CIn, COut = CIn>(agent: Agent<O, CIn, COut>, messages: UIMessage[] | string, contextVariables: CIn & SwarmContext, config?: {
|
|
11
23
|
abortSignal?: AbortSignal;
|
|
12
24
|
providerOptions?: Parameters<typeof generateText>[0]['providerOptions'];
|
|
13
|
-
}): Promise<GenerateTextResult<ToolSet, any,
|
|
14
|
-
export declare function execute<O, CIn, COut = CIn>(agent: Agent<O, CIn, COut>, messages: UIMessage[] | string, contextVariables: CIn, config?: {
|
|
25
|
+
}): Promise<GenerateTextResult<ToolSet, any, AgentOutput<O>>>;
|
|
26
|
+
export declare function execute<O, CIn, COut = CIn>(agent: Agent<O, CIn, COut>, messages: UIMessage[] | string, contextVariables: CIn & SwarmContext, config?: {
|
|
15
27
|
abortSignal?: AbortSignal;
|
|
16
28
|
providerOptions?: Parameters<typeof streamText>[0]['providerOptions'];
|
|
17
29
|
transform?: StreamTextTransform<ToolSet> | StreamTextTransform<ToolSet>[];
|
|
18
|
-
}): Promise<StreamTextResult<ToolSet, any,
|
|
30
|
+
}): Promise<StreamTextResult<ToolSet, any, AgentOutput<O>>>;
|
|
19
31
|
export declare const stream: typeof execute;
|
|
20
|
-
export declare const prepareStep: <CIn>(agent: Agent<unknown, CIn, any>, model: AgentModel, contextVariables: CIn) => PrepareStepFunction<NoInfer<ToolSet>>;
|
|
21
|
-
export declare function swarm<CIn>(agent: Agent<unknown, CIn, any>, messages: UIMessage[] | string, contextVariables: CIn, abortSignal?: AbortSignal): ReadableStream<import("ai").InferUIMessageChunk<UIMessage<unknown, UIDataTypes, UITools>>>;
|
|
32
|
+
export declare const prepareStep: <CIn>(agent: Agent<unknown, CIn, any>, model: AgentModel, contextVariables: CIn & SwarmContext) => PrepareStepFunction<NoInfer<ToolSet>>;
|
|
33
|
+
export declare function swarm<CIn>(agent: Agent<unknown, CIn, any>, messages: UIMessage[] | string, contextVariables: CIn & SwarmContext, abortSignal?: AbortSignal): ReadableStream<import("ai").InferUIMessageChunk<UIMessage<unknown, UIDataTypes, UITools>>>;
|
|
22
34
|
export declare function prepareAgent<CIn>(defaultModel: AgentModel, agent: Agent<unknown, CIn, any>, messages: ModelMessage[], contextVariables?: CIn): Promise<PrepareStepResult<NoInfer<ToolSet>>>;
|
|
23
35
|
//# sourceMappingURL=swarm.d.ts.map
|
package/dist/lib/swarm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swarm.d.ts","sourceRoot":"","sources":["../../src/lib/swarm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EAEjB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"swarm.d.ts","sourceRoot":"","sources":["../../src/lib/swarm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EAEjB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,IAAI,EACT,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,OAAO,EAIZ,YAAY,EAGZ,UAAU,EAEX,MAAM,IAAI,CAAC;AAGZ,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAQ3E;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,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ClD,IAAI,IAAI,MAAM,KAAK,GAAG,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;CACxD,CAAC;AAEF,8EAA8E;AAC9E,wBAAgB,wBAAwB,CAAC,KAAK,SAAS,OAAO,EAC5D,KAAK,EAAE,KAAK,GACX,sBAAsB,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"tool-output.d.ts","sourceRoot":"","sources":["../../src/lib/tool-output.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAElC,KAAK,mBAAmB,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG;IACxD,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;CAChD,CAAC;AAEF,KAAK,sBAAsB,CAAC,KAAK,SAAS,OAAO,IAAI;KAClD,IAAI,IAAI,MAAM,KAAK,GAAG,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;CACxD,CAAC;AAEF,8EAA8E;AAC9E,wBAAgB,wBAAwB,CAAC,KAAK,SAAS,OAAO,EAC5D,KAAK,EAAE,KAAK,GACX,sBAAsB,CAAC,KAAK,CAAC,CAyB/B"}
|