@deepagents/agent 7.0.1 → 7.1.0
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 +78 -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 +7 -7
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,8 +66,9 @@ 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
|
}): ({
|
|
71
|
+
deferLoading?: boolean;
|
|
66
72
|
title?: string;
|
|
67
73
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
68
74
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -70,21 +76,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
70
76
|
input: string;
|
|
71
77
|
output?: string | undefined;
|
|
72
78
|
}>;
|
|
73
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
79
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
74
80
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
75
81
|
input: string;
|
|
76
82
|
output?: string | undefined;
|
|
77
|
-
}, NoInfer<
|
|
78
|
-
onInputStart?: ((options:
|
|
83
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
84
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
79
85
|
onInputDelta?: ((options: {
|
|
80
86
|
inputTextDelta: string;
|
|
81
|
-
} &
|
|
87
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
82
88
|
onInputAvailable?: ((options: {
|
|
83
89
|
input: {
|
|
84
90
|
input: string;
|
|
85
91
|
output?: string | undefined;
|
|
86
92
|
};
|
|
87
|
-
} &
|
|
93
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
88
94
|
toModelOutput?: ((options: {
|
|
89
95
|
toolCallId: string;
|
|
90
96
|
input: {
|
|
@@ -98,10 +104,10 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
98
104
|
execute: import("ai").ToolExecuteFunction<{
|
|
99
105
|
input: string;
|
|
100
106
|
output?: string | undefined;
|
|
101
|
-
}, string, NoInfer<
|
|
107
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
102
108
|
} & {
|
|
103
109
|
description?: string | ((options: {
|
|
104
|
-
context: NoInfer<
|
|
110
|
+
context: NoInfer<CIn & SwarmContext>;
|
|
105
111
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
106
112
|
}) => string) | undefined;
|
|
107
113
|
strict?: boolean;
|
|
@@ -121,8 +127,9 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
121
127
|
execute: import("ai").ToolExecuteFunction<{
|
|
122
128
|
input: string;
|
|
123
129
|
output?: string | undefined;
|
|
124
|
-
}, string, NoInfer<
|
|
130
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
125
131
|
}) | ({
|
|
132
|
+
deferLoading?: boolean;
|
|
126
133
|
title?: string;
|
|
127
134
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
128
135
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -130,21 +137,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
130
137
|
input: string;
|
|
131
138
|
output?: string | undefined;
|
|
132
139
|
}>;
|
|
133
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
140
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
134
141
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
135
142
|
input: string;
|
|
136
143
|
output?: string | undefined;
|
|
137
|
-
}, NoInfer<
|
|
138
|
-
onInputStart?: ((options:
|
|
144
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
145
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
139
146
|
onInputDelta?: ((options: {
|
|
140
147
|
inputTextDelta: string;
|
|
141
|
-
} &
|
|
148
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
142
149
|
onInputAvailable?: ((options: {
|
|
143
150
|
input: {
|
|
144
151
|
input: string;
|
|
145
152
|
output?: string | undefined;
|
|
146
153
|
};
|
|
147
|
-
} &
|
|
154
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
148
155
|
toModelOutput?: ((options: {
|
|
149
156
|
toolCallId: string;
|
|
150
157
|
input: {
|
|
@@ -158,10 +165,10 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
158
165
|
execute: import("ai").ToolExecuteFunction<{
|
|
159
166
|
input: string;
|
|
160
167
|
output?: string | undefined;
|
|
161
|
-
}, string, NoInfer<
|
|
168
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
162
169
|
} & {
|
|
163
170
|
description?: string | ((options: {
|
|
164
|
-
context: NoInfer<
|
|
171
|
+
context: NoInfer<CIn & SwarmContext>;
|
|
165
172
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
166
173
|
}) => string) | undefined;
|
|
167
174
|
strict?: boolean;
|
|
@@ -181,8 +188,9 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
181
188
|
execute: import("ai").ToolExecuteFunction<{
|
|
182
189
|
input: string;
|
|
183
190
|
output?: string | undefined;
|
|
184
|
-
}, string, NoInfer<
|
|
191
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
185
192
|
}) | ({
|
|
193
|
+
deferLoading?: boolean;
|
|
186
194
|
title?: string;
|
|
187
195
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
188
196
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -190,21 +198,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
190
198
|
input: string;
|
|
191
199
|
output?: string | undefined;
|
|
192
200
|
}>;
|
|
193
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
201
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
194
202
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
195
203
|
input: string;
|
|
196
204
|
output?: string | undefined;
|
|
197
|
-
}, NoInfer<
|
|
198
|
-
onInputStart?: ((options:
|
|
205
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
206
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
199
207
|
onInputDelta?: ((options: {
|
|
200
208
|
inputTextDelta: string;
|
|
201
|
-
} &
|
|
209
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
202
210
|
onInputAvailable?: ((options: {
|
|
203
211
|
input: {
|
|
204
212
|
input: string;
|
|
205
213
|
output?: string | undefined;
|
|
206
214
|
};
|
|
207
|
-
} &
|
|
215
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
208
216
|
toModelOutput?: ((options: {
|
|
209
217
|
toolCallId: string;
|
|
210
218
|
input: {
|
|
@@ -218,7 +226,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
218
226
|
execute: import("ai").ToolExecuteFunction<{
|
|
219
227
|
input: string;
|
|
220
228
|
output?: string | undefined;
|
|
221
|
-
}, string, NoInfer<
|
|
229
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
222
230
|
} & {
|
|
223
231
|
type: "provider";
|
|
224
232
|
id: `${string}.${string}`;
|
|
@@ -233,8 +241,9 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
233
241
|
execute: import("ai").ToolExecuteFunction<{
|
|
234
242
|
input: string;
|
|
235
243
|
output?: string | undefined;
|
|
236
|
-
}, string, NoInfer<
|
|
244
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
237
245
|
}) | ({
|
|
246
|
+
deferLoading?: boolean;
|
|
238
247
|
title?: string;
|
|
239
248
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
240
249
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -242,21 +251,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
242
251
|
input: string;
|
|
243
252
|
output?: string | undefined;
|
|
244
253
|
}>;
|
|
245
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
254
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
246
255
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
247
256
|
input: string;
|
|
248
257
|
output?: string | undefined;
|
|
249
|
-
}, NoInfer<
|
|
250
|
-
onInputStart?: ((options:
|
|
258
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
259
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
251
260
|
onInputDelta?: ((options: {
|
|
252
261
|
inputTextDelta: string;
|
|
253
|
-
} &
|
|
262
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
254
263
|
onInputAvailable?: ((options: {
|
|
255
264
|
input: {
|
|
256
265
|
input: string;
|
|
257
266
|
output?: string | undefined;
|
|
258
267
|
};
|
|
259
|
-
} &
|
|
268
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
260
269
|
toModelOutput?: ((options: {
|
|
261
270
|
toolCallId: string;
|
|
262
271
|
input: {
|
|
@@ -270,7 +279,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
270
279
|
execute: import("ai").ToolExecuteFunction<{
|
|
271
280
|
input: string;
|
|
272
281
|
output?: string | undefined;
|
|
273
|
-
}, string, NoInfer<
|
|
282
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
274
283
|
} & {
|
|
275
284
|
type: "provider";
|
|
276
285
|
id: `${string}.${string}`;
|
|
@@ -285,13 +294,14 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
285
294
|
execute: import("ai").ToolExecuteFunction<{
|
|
286
295
|
input: string;
|
|
287
296
|
output?: string | undefined;
|
|
288
|
-
}, string, NoInfer<
|
|
297
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
289
298
|
});
|
|
290
299
|
toTool(props?: {
|
|
291
300
|
toolDescription?: string;
|
|
292
|
-
outputExtractor?: OutputExtractorFn
|
|
301
|
+
outputExtractor?: OutputExtractorFn<Output>;
|
|
293
302
|
}): {
|
|
294
303
|
[x: string]: ({
|
|
304
|
+
deferLoading?: boolean;
|
|
295
305
|
title?: string;
|
|
296
306
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
297
307
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -299,21 +309,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
299
309
|
input: string;
|
|
300
310
|
output?: string | undefined;
|
|
301
311
|
}>;
|
|
302
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
312
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
303
313
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
304
314
|
input: string;
|
|
305
315
|
output?: string | undefined;
|
|
306
|
-
}, NoInfer<
|
|
307
|
-
onInputStart?: ((options:
|
|
316
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
317
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
308
318
|
onInputDelta?: ((options: {
|
|
309
319
|
inputTextDelta: string;
|
|
310
|
-
} &
|
|
320
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
311
321
|
onInputAvailable?: ((options: {
|
|
312
322
|
input: {
|
|
313
323
|
input: string;
|
|
314
324
|
output?: string | undefined;
|
|
315
325
|
};
|
|
316
|
-
} &
|
|
326
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
317
327
|
toModelOutput?: ((options: {
|
|
318
328
|
toolCallId: string;
|
|
319
329
|
input: {
|
|
@@ -327,10 +337,10 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
327
337
|
execute: import("ai").ToolExecuteFunction<{
|
|
328
338
|
input: string;
|
|
329
339
|
output?: string | undefined;
|
|
330
|
-
}, string, NoInfer<
|
|
340
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
331
341
|
} & {
|
|
332
342
|
description?: string | ((options: {
|
|
333
|
-
context: NoInfer<
|
|
343
|
+
context: NoInfer<CIn & SwarmContext>;
|
|
334
344
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
335
345
|
}) => string) | undefined;
|
|
336
346
|
strict?: boolean;
|
|
@@ -350,8 +360,9 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
350
360
|
execute: import("ai").ToolExecuteFunction<{
|
|
351
361
|
input: string;
|
|
352
362
|
output?: string | undefined;
|
|
353
|
-
}, string, NoInfer<
|
|
363
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
354
364
|
}) | ({
|
|
365
|
+
deferLoading?: boolean;
|
|
355
366
|
title?: string;
|
|
356
367
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
357
368
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -359,21 +370,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
359
370
|
input: string;
|
|
360
371
|
output?: string | undefined;
|
|
361
372
|
}>;
|
|
362
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
373
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
363
374
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
364
375
|
input: string;
|
|
365
376
|
output?: string | undefined;
|
|
366
|
-
}, NoInfer<
|
|
367
|
-
onInputStart?: ((options:
|
|
377
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
378
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
368
379
|
onInputDelta?: ((options: {
|
|
369
380
|
inputTextDelta: string;
|
|
370
|
-
} &
|
|
381
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
371
382
|
onInputAvailable?: ((options: {
|
|
372
383
|
input: {
|
|
373
384
|
input: string;
|
|
374
385
|
output?: string | undefined;
|
|
375
386
|
};
|
|
376
|
-
} &
|
|
387
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
377
388
|
toModelOutput?: ((options: {
|
|
378
389
|
toolCallId: string;
|
|
379
390
|
input: {
|
|
@@ -387,10 +398,10 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
387
398
|
execute: import("ai").ToolExecuteFunction<{
|
|
388
399
|
input: string;
|
|
389
400
|
output?: string | undefined;
|
|
390
|
-
}, string, NoInfer<
|
|
401
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
391
402
|
} & {
|
|
392
403
|
description?: string | ((options: {
|
|
393
|
-
context: NoInfer<
|
|
404
|
+
context: NoInfer<CIn & SwarmContext>;
|
|
394
405
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
395
406
|
}) => string) | undefined;
|
|
396
407
|
strict?: boolean;
|
|
@@ -410,8 +421,9 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
410
421
|
execute: import("ai").ToolExecuteFunction<{
|
|
411
422
|
input: string;
|
|
412
423
|
output?: string | undefined;
|
|
413
|
-
}, string, NoInfer<
|
|
424
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
414
425
|
}) | ({
|
|
426
|
+
deferLoading?: boolean;
|
|
415
427
|
title?: string;
|
|
416
428
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
417
429
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -419,21 +431,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
419
431
|
input: string;
|
|
420
432
|
output?: string | undefined;
|
|
421
433
|
}>;
|
|
422
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
434
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
423
435
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
424
436
|
input: string;
|
|
425
437
|
output?: string | undefined;
|
|
426
|
-
}, NoInfer<
|
|
427
|
-
onInputStart?: ((options:
|
|
438
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
439
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
428
440
|
onInputDelta?: ((options: {
|
|
429
441
|
inputTextDelta: string;
|
|
430
|
-
} &
|
|
442
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
431
443
|
onInputAvailable?: ((options: {
|
|
432
444
|
input: {
|
|
433
445
|
input: string;
|
|
434
446
|
output?: string | undefined;
|
|
435
447
|
};
|
|
436
|
-
} &
|
|
448
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
437
449
|
toModelOutput?: ((options: {
|
|
438
450
|
toolCallId: string;
|
|
439
451
|
input: {
|
|
@@ -447,7 +459,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
447
459
|
execute: import("ai").ToolExecuteFunction<{
|
|
448
460
|
input: string;
|
|
449
461
|
output?: string | undefined;
|
|
450
|
-
}, string, NoInfer<
|
|
462
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
451
463
|
} & {
|
|
452
464
|
type: "provider";
|
|
453
465
|
id: `${string}.${string}`;
|
|
@@ -462,8 +474,9 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
462
474
|
execute: import("ai").ToolExecuteFunction<{
|
|
463
475
|
input: string;
|
|
464
476
|
output?: string | undefined;
|
|
465
|
-
}, string, NoInfer<
|
|
477
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
466
478
|
}) | ({
|
|
479
|
+
deferLoading?: boolean;
|
|
467
480
|
title?: string;
|
|
468
481
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
469
482
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -471,21 +484,21 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
471
484
|
input: string;
|
|
472
485
|
output?: string | undefined;
|
|
473
486
|
}>;
|
|
474
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
487
|
+
contextSchema?: import("ai").FlexibleSchema<CIn & SwarmContext> | undefined;
|
|
475
488
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
476
489
|
input: string;
|
|
477
490
|
output?: string | undefined;
|
|
478
|
-
}, NoInfer<
|
|
479
|
-
onInputStart?: ((options:
|
|
491
|
+
}, NoInfer<CIn & SwarmContext>> | undefined;
|
|
492
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
480
493
|
onInputDelta?: ((options: {
|
|
481
494
|
inputTextDelta: string;
|
|
482
|
-
} &
|
|
495
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
483
496
|
onInputAvailable?: ((options: {
|
|
484
497
|
input: {
|
|
485
498
|
input: string;
|
|
486
499
|
output?: string | undefined;
|
|
487
500
|
};
|
|
488
|
-
} &
|
|
501
|
+
} & ToolExecutionOptions<NoInfer<CIn & SwarmContext>>) => void | PromiseLike<void>) | undefined;
|
|
489
502
|
toModelOutput?: ((options: {
|
|
490
503
|
toolCallId: string;
|
|
491
504
|
input: {
|
|
@@ -499,7 +512,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
499
512
|
execute: import("ai").ToolExecuteFunction<{
|
|
500
513
|
input: string;
|
|
501
514
|
output?: string | undefined;
|
|
502
|
-
}, string, NoInfer<
|
|
515
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
503
516
|
} & {
|
|
504
517
|
type: "provider";
|
|
505
518
|
id: `${string}.${string}`;
|
|
@@ -514,7 +527,7 @@ export declare class Agent<Output = unknown, CIn = ContextVariables, COut = CIn>
|
|
|
514
527
|
execute: import("ai").ToolExecuteFunction<{
|
|
515
528
|
input: string;
|
|
516
529
|
output?: string | undefined;
|
|
517
|
-
}, string, NoInfer<
|
|
530
|
+
}, string, NoInfer<CIn & SwarmContext>>;
|
|
518
531
|
});
|
|
519
532
|
};
|
|
520
533
|
debug(): void;
|
|
@@ -535,14 +548,5 @@ export declare namespace instructions {
|
|
|
535
548
|
var supervisor: ({ purpose, routine, }: PurposeRoutineInstructions) => string;
|
|
536
549
|
var supervisor_subagent: ({ purpose, routine, }: PurposeRoutineInstructions) => string;
|
|
537
550
|
}
|
|
538
|
-
type TransferResult = {
|
|
539
|
-
lastActiveAgent: string;
|
|
540
|
-
currentActiveAgent: string;
|
|
541
|
-
};
|
|
542
|
-
export type TransferTool = {
|
|
543
|
-
output: TransferResult;
|
|
544
|
-
};
|
|
545
|
-
export declare function isTransferToolResult(call: unknown | undefined): call is TransferTool;
|
|
546
|
-
export declare function lastTransferResult(messages: ResponseMessage[]): TransferResult | undefined;
|
|
547
551
|
export {};
|
|
548
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,CAAC,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,OAAO,CAAC;CAChB;AACD,MAAM,MAAM,QAAQ,CAAC,GAAG,EAAE,IAAI,IAAI,CAChC,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAC9D,EAAE,CAAC;AAEJ,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI,CAC3B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EACjB,QAAQ,EAAE,YAAY,EAAE,KACrB,OAAO,CAAC,CAAC,CAAC,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ib/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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@@ -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","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,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,OAAO,EAEb,MAAM,IAAI,CAAC;AAaZ,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,iBAM9C;AAyCD,eAAO,MAAM,OAAO;6BAER,cAAc,CACpB,mBAAmB,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAC9D,YACS;QAAE,SAAS,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE;uBAe7D,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,YACnC;QAAE,SAAS,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE;;;;CAkB1E,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAW7D;AACD,eAAO,MAAM,IAAI,2BAAqB,CAAC;AAEvC,wBAAsB,KAAK,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAUlE;AAED,wBAAsB,OAAO,CAC3B,OAAO,EAAE,MAAM,EACf,YAAY,UAAO,GAClB,OAAO,CAAC,OAAO,CAAC,CA8BlB;AAED,wBAAsB,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,QAAQ,SAAK,2BAGtE;AACD,wBAAsB,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,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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,EAC/B,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,EAC9B,gBAAgB,EAAE,GAAG,GAAG,YAAY,EACpC,WAAW,CAAC,EAAE,WAAW,8FAyE1B;AAED,wBAAsB,YAAY,CAAC,GAAG,EACpC,YAAY,EAAE,UAAU,EACxB,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,EAC/B,QAAQ,EAAE,YAAY,EAAE,EACxB,gBAAgB,CAAC,EAAE,GAAG,GACrB,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAc9C"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|