deepagentsdk 0.13.0 → 0.14.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/dist/adapters/elements/index.cjs +321 -81
- package/dist/adapters/elements/index.cjs.map +1 -1
- package/dist/adapters/elements/index.d.cts +28 -3
- package/dist/adapters/elements/index.d.mts +28 -3
- package/dist/adapters/elements/index.mjs +321 -82
- package/dist/adapters/elements/index.mjs.map +1 -1
- package/dist/{agent-BDM-PIu8.d.mts → agent-D0bKkNI-.d.mts} +26 -26
- package/dist/{agent-DToEVxs-.d.cts → agent-DwAj5emJ.d.cts} +26 -26
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as ai3 from "ai";
|
|
2
2
|
import { LanguageModel, LanguageModel as LanguageModel$2, LanguageModelMiddleware, ModelMessage, ModelMessage as ModelMessage$1, StopCondition, ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
@@ -256,7 +256,7 @@ declare function createWebSearchTool(state: DeepAgentState, options: {
|
|
|
256
256
|
onEvent?: EventCallback;
|
|
257
257
|
toolResultEvictionLimit?: number;
|
|
258
258
|
tavilyApiKey: string;
|
|
259
|
-
}):
|
|
259
|
+
}): ai3.Tool<{
|
|
260
260
|
query: string;
|
|
261
261
|
max_results: number;
|
|
262
262
|
topic: "general" | "news" | "finance";
|
|
@@ -270,7 +270,7 @@ declare function createHttpRequestTool(state: DeepAgentState, options: {
|
|
|
270
270
|
onEvent?: EventCallback;
|
|
271
271
|
toolResultEvictionLimit?: number;
|
|
272
272
|
defaultTimeout: number;
|
|
273
|
-
}):
|
|
273
|
+
}): ai3.Tool<{
|
|
274
274
|
timeout: number;
|
|
275
275
|
url: string;
|
|
276
276
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
@@ -286,7 +286,7 @@ declare function createFetchUrlTool(state: DeepAgentState, options: {
|
|
|
286
286
|
onEvent?: EventCallback;
|
|
287
287
|
toolResultEvictionLimit?: number;
|
|
288
288
|
defaultTimeout: number;
|
|
289
|
-
}):
|
|
289
|
+
}): ai3.Tool<{
|
|
290
290
|
timeout: number;
|
|
291
291
|
url: string;
|
|
292
292
|
extract_article: boolean;
|
|
@@ -323,13 +323,13 @@ declare const fetch_url: typeof createFetchUrlTool;
|
|
|
323
323
|
/**
|
|
324
324
|
* Create the ls tool.
|
|
325
325
|
*/
|
|
326
|
-
declare function createLsTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback):
|
|
326
|
+
declare function createLsTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback): ai3.Tool<{
|
|
327
327
|
path: string;
|
|
328
328
|
}, string>;
|
|
329
329
|
/**
|
|
330
330
|
* Create the read_file tool.
|
|
331
331
|
*/
|
|
332
|
-
declare function createReadFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, evictionLimit?: number, onEvent?: EventCallback):
|
|
332
|
+
declare function createReadFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, evictionLimit?: number, onEvent?: EventCallback): ai3.Tool<{
|
|
333
333
|
file_path: string;
|
|
334
334
|
offset: number;
|
|
335
335
|
limit: number;
|
|
@@ -337,14 +337,14 @@ declare function createReadFileTool(state: DeepAgentState, backend: BackendProto
|
|
|
337
337
|
/**
|
|
338
338
|
* Create the write_file tool.
|
|
339
339
|
*/
|
|
340
|
-
declare function createWriteFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback):
|
|
341
|
-
file_path: string;
|
|
340
|
+
declare function createWriteFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback): ai3.Tool<{
|
|
342
341
|
content: string;
|
|
342
|
+
file_path: string;
|
|
343
343
|
}, string>;
|
|
344
344
|
/**
|
|
345
345
|
* Create the edit_file tool.
|
|
346
346
|
*/
|
|
347
|
-
declare function createEditFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback):
|
|
347
|
+
declare function createEditFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback): ai3.Tool<{
|
|
348
348
|
file_path: string;
|
|
349
349
|
old_string: string;
|
|
350
350
|
new_string: string;
|
|
@@ -353,14 +353,14 @@ declare function createEditFileTool(state: DeepAgentState, backend: BackendProto
|
|
|
353
353
|
/**
|
|
354
354
|
* Create the glob tool.
|
|
355
355
|
*/
|
|
356
|
-
declare function createGlobTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback):
|
|
356
|
+
declare function createGlobTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback): ai3.Tool<{
|
|
357
357
|
path: string;
|
|
358
358
|
pattern: string;
|
|
359
359
|
}, string>;
|
|
360
360
|
/**
|
|
361
361
|
* Create the grep tool.
|
|
362
362
|
*/
|
|
363
|
-
declare function createGrepTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, evictionLimit?: number, onEvent?: EventCallback):
|
|
363
|
+
declare function createGrepTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, evictionLimit?: number, onEvent?: EventCallback): ai3.Tool<{
|
|
364
364
|
path: string;
|
|
365
365
|
pattern: string;
|
|
366
366
|
glob?: string | null | undefined;
|
|
@@ -383,29 +383,29 @@ interface CreateFilesystemToolsOptions {
|
|
|
383
383
|
* @param onEvent - Optional callback for emitting events (deprecated, use options)
|
|
384
384
|
*/
|
|
385
385
|
declare function createFilesystemTools(state: DeepAgentState, backendOrOptions?: BackendProtocol | BackendFactory | CreateFilesystemToolsOptions, onEvent?: EventCallback): {
|
|
386
|
-
ls:
|
|
386
|
+
ls: ai3.Tool<{
|
|
387
387
|
path: string;
|
|
388
388
|
}, string>;
|
|
389
|
-
read_file:
|
|
389
|
+
read_file: ai3.Tool<{
|
|
390
390
|
file_path: string;
|
|
391
391
|
offset: number;
|
|
392
392
|
limit: number;
|
|
393
393
|
}, string>;
|
|
394
|
-
write_file:
|
|
395
|
-
file_path: string;
|
|
394
|
+
write_file: ai3.Tool<{
|
|
396
395
|
content: string;
|
|
396
|
+
file_path: string;
|
|
397
397
|
}, string>;
|
|
398
|
-
edit_file:
|
|
398
|
+
edit_file: ai3.Tool<{
|
|
399
399
|
file_path: string;
|
|
400
400
|
old_string: string;
|
|
401
401
|
new_string: string;
|
|
402
402
|
replace_all: boolean;
|
|
403
403
|
}, string>;
|
|
404
|
-
glob:
|
|
404
|
+
glob: ai3.Tool<{
|
|
405
405
|
path: string;
|
|
406
406
|
pattern: string;
|
|
407
407
|
}, string>;
|
|
408
|
-
grep:
|
|
408
|
+
grep: ai3.Tool<{
|
|
409
409
|
path: string;
|
|
410
410
|
pattern: string;
|
|
411
411
|
glob?: string | null | undefined;
|
|
@@ -428,7 +428,7 @@ declare const grep: typeof createGrepTool;
|
|
|
428
428
|
* @param state - The shared agent state
|
|
429
429
|
* @param onEvent - Optional callback for emitting events
|
|
430
430
|
*/
|
|
431
|
-
declare function createTodosTool(state: DeepAgentState, onEvent?: EventCallback):
|
|
431
|
+
declare function createTodosTool(state: DeepAgentState, onEvent?: EventCallback): ai3.Tool<{
|
|
432
432
|
todos: {
|
|
433
433
|
status: "pending" | "in_progress" | "completed" | "cancelled";
|
|
434
434
|
id: string;
|
|
@@ -489,7 +489,7 @@ interface CreateExecuteToolOptions {
|
|
|
489
489
|
* });
|
|
490
490
|
* ```
|
|
491
491
|
*/
|
|
492
|
-
declare function createExecuteTool(options: CreateExecuteToolOptions):
|
|
492
|
+
declare function createExecuteTool(options: CreateExecuteToolOptions): ai3.Tool<{
|
|
493
493
|
command: string;
|
|
494
494
|
}, string>;
|
|
495
495
|
/**
|
|
@@ -507,7 +507,7 @@ declare function createExecuteTool(options: CreateExecuteToolOptions): ai2.Tool<
|
|
|
507
507
|
* };
|
|
508
508
|
* ```
|
|
509
509
|
*/
|
|
510
|
-
declare function createExecuteToolFromBackend(backend: SandboxBackendProtocol):
|
|
510
|
+
declare function createExecuteToolFromBackend(backend: SandboxBackendProtocol): ai3.Tool<{
|
|
511
511
|
command: string;
|
|
512
512
|
}, string>;
|
|
513
513
|
/**
|
|
@@ -641,7 +641,7 @@ interface PrepareStepArgs {
|
|
|
641
641
|
stepNumber: number;
|
|
642
642
|
steps: unknown[];
|
|
643
643
|
model: LanguageModel$2;
|
|
644
|
-
messages:
|
|
644
|
+
messages: ai3.ModelMessage[];
|
|
645
645
|
experimental_context?: unknown;
|
|
646
646
|
}
|
|
647
647
|
/**
|
|
@@ -1224,7 +1224,7 @@ declare class DeepAgent {
|
|
|
1224
1224
|
generate(options: {
|
|
1225
1225
|
prompt: string;
|
|
1226
1226
|
maxSteps?: number;
|
|
1227
|
-
}): Promise<
|
|
1227
|
+
}): Promise<ai3.GenerateTextResult<{}, never> & {
|
|
1228
1228
|
state: DeepAgentState;
|
|
1229
1229
|
}>;
|
|
1230
1230
|
/**
|
|
@@ -1233,7 +1233,7 @@ declare class DeepAgent {
|
|
|
1233
1233
|
stream(options: {
|
|
1234
1234
|
prompt: string;
|
|
1235
1235
|
maxSteps?: number;
|
|
1236
|
-
}): Promise<
|
|
1236
|
+
}): Promise<ai3.StreamTextResult<{}, never> & {
|
|
1237
1237
|
state: DeepAgentState;
|
|
1238
1238
|
}>;
|
|
1239
1239
|
/**
|
|
@@ -1243,7 +1243,7 @@ declare class DeepAgent {
|
|
|
1243
1243
|
prompt: string;
|
|
1244
1244
|
state: DeepAgentState;
|
|
1245
1245
|
maxSteps?: number;
|
|
1246
|
-
}): Promise<
|
|
1246
|
+
}): Promise<ai3.GenerateTextResult<{}, never> & {
|
|
1247
1247
|
state: DeepAgentState;
|
|
1248
1248
|
}>;
|
|
1249
1249
|
/**
|
|
@@ -1497,4 +1497,4 @@ declare class DeepAgent {
|
|
|
1497
1497
|
declare function createDeepAgent(params: CreateDeepAgentParams): DeepAgent;
|
|
1498
1498
|
//#endregion
|
|
1499
1499
|
export { createLsTool as $, TextEvent as A, CheckpointSaverOptions as At, DynamicApprovalConfig as B, FileWrittenEvent as C, FileInfo as Ct, StepStartEvent as D, isSandboxBackend as Dt, StepFinishEvent as E, WriteResult as Et, WebSearchStartEvent as F, createExecuteToolFromBackend as G, SubAgent as H, AgentMemoryOptions as I, write_todos as J, execute as K, CreateDeepAgentParams as L, ToolCallEvent as M, ResumeDecision as Mt, ToolResultEvent as N, ResumeOptions as Nt, SubagentFinishEvent as O, BaseCheckpointSaver as Ot, WebSearchFinishEvent as P, createGrepTool as Q, SummarizationConfig as R, FileWriteStartEvent as S, FileData as St, HttpRequestStartEvent as T, SandboxBackendProtocol as Tt, CreateExecuteToolOptions as U, InterruptOnConfig as V, createExecuteTool as W, createFilesystemTools as X, createEditFileTool as Y, createGlobTool as Z, ExecuteFinishEvent as _, BackendFactory as _t, eventHasStructuredOutput as a, ls as at, FetchUrlStartEvent as b, EditResult as bt, hasStructuredOutput as c, CreateWebToolsOptions as ct, CheckpointLoadedEvent as d, createWebSearchTool as dt, createReadFileTool as et, CheckpointSavedEvent as f, createWebTools as ft, EventCallback as g, web_search as gt, ErrorEvent as h, http_request as ht, StructuredAgentResult as i, grep as it, TodosChangedEvent as j, InterruptData as jt, SubagentStartEvent as k, Checkpoint as kt, ApprovalRequestedEvent as l, createFetchUrlTool as lt, DoneEvent as m, htmlToMarkdown as mt, createDeepAgent as n, edit_file as nt, getEventOutput as o, read_file as ot, DeepAgentEvent as p, fetch_url as pt, createTodosTool as q, ModelMessage$1 as r, glob as rt, getStructuredOutput as s, write_file as st, DeepAgent as t, createWriteFileTool as tt, ApprovalResponseEvent as u, createHttpRequestTool as ut, ExecuteStartEvent as v, BackendProtocol as vt, HttpRequestFinishEvent as w, GrepMatch as wt, FileEditedEvent as x, ExecuteResponse as xt, FetchUrlFinishEvent as y, DeepAgentState as yt, TodoItem as z };
|
|
1500
|
-
//# sourceMappingURL=agent-
|
|
1500
|
+
//# sourceMappingURL=agent-D0bKkNI-.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as ai18 from "ai";
|
|
2
2
|
import { LanguageModel, LanguageModel as LanguageModel$2, LanguageModelMiddleware, ModelMessage, ModelMessage as ModelMessage$1, StopCondition, ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
@@ -256,7 +256,7 @@ declare function createWebSearchTool(state: DeepAgentState, options: {
|
|
|
256
256
|
onEvent?: EventCallback;
|
|
257
257
|
toolResultEvictionLimit?: number;
|
|
258
258
|
tavilyApiKey: string;
|
|
259
|
-
}):
|
|
259
|
+
}): ai18.Tool<{
|
|
260
260
|
query: string;
|
|
261
261
|
max_results: number;
|
|
262
262
|
topic: "general" | "news" | "finance";
|
|
@@ -270,7 +270,7 @@ declare function createHttpRequestTool(state: DeepAgentState, options: {
|
|
|
270
270
|
onEvent?: EventCallback;
|
|
271
271
|
toolResultEvictionLimit?: number;
|
|
272
272
|
defaultTimeout: number;
|
|
273
|
-
}):
|
|
273
|
+
}): ai18.Tool<{
|
|
274
274
|
timeout: number;
|
|
275
275
|
url: string;
|
|
276
276
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
@@ -286,7 +286,7 @@ declare function createFetchUrlTool(state: DeepAgentState, options: {
|
|
|
286
286
|
onEvent?: EventCallback;
|
|
287
287
|
toolResultEvictionLimit?: number;
|
|
288
288
|
defaultTimeout: number;
|
|
289
|
-
}):
|
|
289
|
+
}): ai18.Tool<{
|
|
290
290
|
timeout: number;
|
|
291
291
|
url: string;
|
|
292
292
|
extract_article: boolean;
|
|
@@ -323,13 +323,13 @@ declare const fetch_url: typeof createFetchUrlTool;
|
|
|
323
323
|
/**
|
|
324
324
|
* Create the ls tool.
|
|
325
325
|
*/
|
|
326
|
-
declare function createLsTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback):
|
|
326
|
+
declare function createLsTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback): ai18.Tool<{
|
|
327
327
|
path: string;
|
|
328
328
|
}, string>;
|
|
329
329
|
/**
|
|
330
330
|
* Create the read_file tool.
|
|
331
331
|
*/
|
|
332
|
-
declare function createReadFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, evictionLimit?: number, onEvent?: EventCallback):
|
|
332
|
+
declare function createReadFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, evictionLimit?: number, onEvent?: EventCallback): ai18.Tool<{
|
|
333
333
|
file_path: string;
|
|
334
334
|
offset: number;
|
|
335
335
|
limit: number;
|
|
@@ -337,14 +337,14 @@ declare function createReadFileTool(state: DeepAgentState, backend: BackendProto
|
|
|
337
337
|
/**
|
|
338
338
|
* Create the write_file tool.
|
|
339
339
|
*/
|
|
340
|
-
declare function createWriteFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback):
|
|
341
|
-
file_path: string;
|
|
340
|
+
declare function createWriteFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback): ai18.Tool<{
|
|
342
341
|
content: string;
|
|
342
|
+
file_path: string;
|
|
343
343
|
}, string>;
|
|
344
344
|
/**
|
|
345
345
|
* Create the edit_file tool.
|
|
346
346
|
*/
|
|
347
|
-
declare function createEditFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback):
|
|
347
|
+
declare function createEditFileTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback): ai18.Tool<{
|
|
348
348
|
file_path: string;
|
|
349
349
|
old_string: string;
|
|
350
350
|
new_string: string;
|
|
@@ -353,14 +353,14 @@ declare function createEditFileTool(state: DeepAgentState, backend: BackendProto
|
|
|
353
353
|
/**
|
|
354
354
|
* Create the glob tool.
|
|
355
355
|
*/
|
|
356
|
-
declare function createGlobTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback):
|
|
356
|
+
declare function createGlobTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, onEvent?: EventCallback): ai18.Tool<{
|
|
357
357
|
path: string;
|
|
358
358
|
pattern: string;
|
|
359
359
|
}, string>;
|
|
360
360
|
/**
|
|
361
361
|
* Create the grep tool.
|
|
362
362
|
*/
|
|
363
|
-
declare function createGrepTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, evictionLimit?: number, onEvent?: EventCallback):
|
|
363
|
+
declare function createGrepTool(state: DeepAgentState, backend: BackendProtocol | BackendFactory, evictionLimit?: number, onEvent?: EventCallback): ai18.Tool<{
|
|
364
364
|
path: string;
|
|
365
365
|
pattern: string;
|
|
366
366
|
glob?: string | null | undefined;
|
|
@@ -383,29 +383,29 @@ interface CreateFilesystemToolsOptions {
|
|
|
383
383
|
* @param onEvent - Optional callback for emitting events (deprecated, use options)
|
|
384
384
|
*/
|
|
385
385
|
declare function createFilesystemTools(state: DeepAgentState, backendOrOptions?: BackendProtocol | BackendFactory | CreateFilesystemToolsOptions, onEvent?: EventCallback): {
|
|
386
|
-
ls:
|
|
386
|
+
ls: ai18.Tool<{
|
|
387
387
|
path: string;
|
|
388
388
|
}, string>;
|
|
389
|
-
read_file:
|
|
389
|
+
read_file: ai18.Tool<{
|
|
390
390
|
file_path: string;
|
|
391
391
|
offset: number;
|
|
392
392
|
limit: number;
|
|
393
393
|
}, string>;
|
|
394
|
-
write_file:
|
|
395
|
-
file_path: string;
|
|
394
|
+
write_file: ai18.Tool<{
|
|
396
395
|
content: string;
|
|
396
|
+
file_path: string;
|
|
397
397
|
}, string>;
|
|
398
|
-
edit_file:
|
|
398
|
+
edit_file: ai18.Tool<{
|
|
399
399
|
file_path: string;
|
|
400
400
|
old_string: string;
|
|
401
401
|
new_string: string;
|
|
402
402
|
replace_all: boolean;
|
|
403
403
|
}, string>;
|
|
404
|
-
glob:
|
|
404
|
+
glob: ai18.Tool<{
|
|
405
405
|
path: string;
|
|
406
406
|
pattern: string;
|
|
407
407
|
}, string>;
|
|
408
|
-
grep:
|
|
408
|
+
grep: ai18.Tool<{
|
|
409
409
|
path: string;
|
|
410
410
|
pattern: string;
|
|
411
411
|
glob?: string | null | undefined;
|
|
@@ -428,7 +428,7 @@ declare const grep: typeof createGrepTool;
|
|
|
428
428
|
* @param state - The shared agent state
|
|
429
429
|
* @param onEvent - Optional callback for emitting events
|
|
430
430
|
*/
|
|
431
|
-
declare function createTodosTool(state: DeepAgentState, onEvent?: EventCallback):
|
|
431
|
+
declare function createTodosTool(state: DeepAgentState, onEvent?: EventCallback): ai18.Tool<{
|
|
432
432
|
todos: {
|
|
433
433
|
status: "pending" | "in_progress" | "completed" | "cancelled";
|
|
434
434
|
id: string;
|
|
@@ -489,7 +489,7 @@ interface CreateExecuteToolOptions {
|
|
|
489
489
|
* });
|
|
490
490
|
* ```
|
|
491
491
|
*/
|
|
492
|
-
declare function createExecuteTool(options: CreateExecuteToolOptions):
|
|
492
|
+
declare function createExecuteTool(options: CreateExecuteToolOptions): ai18.Tool<{
|
|
493
493
|
command: string;
|
|
494
494
|
}, string>;
|
|
495
495
|
/**
|
|
@@ -507,7 +507,7 @@ declare function createExecuteTool(options: CreateExecuteToolOptions): ai2.Tool<
|
|
|
507
507
|
* };
|
|
508
508
|
* ```
|
|
509
509
|
*/
|
|
510
|
-
declare function createExecuteToolFromBackend(backend: SandboxBackendProtocol):
|
|
510
|
+
declare function createExecuteToolFromBackend(backend: SandboxBackendProtocol): ai18.Tool<{
|
|
511
511
|
command: string;
|
|
512
512
|
}, string>;
|
|
513
513
|
/**
|
|
@@ -641,7 +641,7 @@ interface PrepareStepArgs {
|
|
|
641
641
|
stepNumber: number;
|
|
642
642
|
steps: unknown[];
|
|
643
643
|
model: LanguageModel$2;
|
|
644
|
-
messages:
|
|
644
|
+
messages: ai18.ModelMessage[];
|
|
645
645
|
experimental_context?: unknown;
|
|
646
646
|
}
|
|
647
647
|
/**
|
|
@@ -1224,7 +1224,7 @@ declare class DeepAgent {
|
|
|
1224
1224
|
generate(options: {
|
|
1225
1225
|
prompt: string;
|
|
1226
1226
|
maxSteps?: number;
|
|
1227
|
-
}): Promise<
|
|
1227
|
+
}): Promise<ai18.GenerateTextResult<{}, never> & {
|
|
1228
1228
|
state: DeepAgentState;
|
|
1229
1229
|
}>;
|
|
1230
1230
|
/**
|
|
@@ -1233,7 +1233,7 @@ declare class DeepAgent {
|
|
|
1233
1233
|
stream(options: {
|
|
1234
1234
|
prompt: string;
|
|
1235
1235
|
maxSteps?: number;
|
|
1236
|
-
}): Promise<
|
|
1236
|
+
}): Promise<ai18.StreamTextResult<{}, never> & {
|
|
1237
1237
|
state: DeepAgentState;
|
|
1238
1238
|
}>;
|
|
1239
1239
|
/**
|
|
@@ -1243,7 +1243,7 @@ declare class DeepAgent {
|
|
|
1243
1243
|
prompt: string;
|
|
1244
1244
|
state: DeepAgentState;
|
|
1245
1245
|
maxSteps?: number;
|
|
1246
|
-
}): Promise<
|
|
1246
|
+
}): Promise<ai18.GenerateTextResult<{}, never> & {
|
|
1247
1247
|
state: DeepAgentState;
|
|
1248
1248
|
}>;
|
|
1249
1249
|
/**
|
|
@@ -1497,4 +1497,4 @@ declare class DeepAgent {
|
|
|
1497
1497
|
declare function createDeepAgent(params: CreateDeepAgentParams): DeepAgent;
|
|
1498
1498
|
//#endregion
|
|
1499
1499
|
export { createLsTool as $, TextEvent as A, CheckpointSaverOptions as At, DynamicApprovalConfig as B, FileWrittenEvent as C, FileInfo as Ct, StepStartEvent as D, isSandboxBackend as Dt, StepFinishEvent as E, WriteResult as Et, WebSearchStartEvent as F, createExecuteToolFromBackend as G, SubAgent as H, AgentMemoryOptions as I, write_todos as J, execute as K, CreateDeepAgentParams as L, ToolCallEvent as M, ResumeDecision as Mt, ToolResultEvent as N, ResumeOptions as Nt, SubagentFinishEvent as O, BaseCheckpointSaver as Ot, WebSearchFinishEvent as P, createGrepTool as Q, SummarizationConfig as R, FileWriteStartEvent as S, FileData as St, HttpRequestStartEvent as T, SandboxBackendProtocol as Tt, CreateExecuteToolOptions as U, InterruptOnConfig as V, createExecuteTool as W, createFilesystemTools as X, createEditFileTool as Y, createGlobTool as Z, ExecuteFinishEvent as _, BackendFactory as _t, eventHasStructuredOutput as a, ls as at, FetchUrlStartEvent as b, EditResult as bt, hasStructuredOutput as c, CreateWebToolsOptions as ct, CheckpointLoadedEvent as d, createWebSearchTool as dt, createReadFileTool as et, CheckpointSavedEvent as f, createWebTools as ft, EventCallback as g, web_search as gt, ErrorEvent as h, http_request as ht, StructuredAgentResult as i, grep as it, TodosChangedEvent as j, InterruptData as jt, SubagentStartEvent as k, Checkpoint as kt, ApprovalRequestedEvent as l, createFetchUrlTool as lt, DoneEvent as m, htmlToMarkdown as mt, createDeepAgent as n, edit_file as nt, getEventOutput as o, read_file as ot, DeepAgentEvent as p, fetch_url as pt, createTodosTool as q, ModelMessage$1 as r, glob as rt, getStructuredOutput as s, write_file as st, DeepAgent as t, createWriteFileTool as tt, ApprovalResponseEvent as u, createHttpRequestTool as ut, ExecuteStartEvent as v, BackendProtocol as vt, HttpRequestFinishEvent as w, GrepMatch as wt, FileEditedEvent as x, ExecuteResponse as xt, FetchUrlFinishEvent as y, DeepAgentState as yt, TodoItem as z };
|
|
1500
|
-
//# sourceMappingURL=agent-
|
|
1500
|
+
//# sourceMappingURL=agent-DwAj5emJ.d.cts.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as createLsTool, A as TextEvent, At as CheckpointSaverOptions, B as DynamicApprovalConfig, C as FileWrittenEvent, Ct as FileInfo, D as StepStartEvent, Dt as isSandboxBackend, E as StepFinishEvent, Et as WriteResult, F as WebSearchStartEvent, G as createExecuteToolFromBackend, H as SubAgent, I as AgentMemoryOptions, J as write_todos, K as execute, L as CreateDeepAgentParams, M as ToolCallEvent, Mt as ResumeDecision, N as ToolResultEvent, Nt as ResumeOptions, O as SubagentFinishEvent, Ot as BaseCheckpointSaver, P as WebSearchFinishEvent, Q as createGrepTool, R as SummarizationConfig, S as FileWriteStartEvent, St as FileData, T as HttpRequestStartEvent, Tt as SandboxBackendProtocol, U as CreateExecuteToolOptions, V as InterruptOnConfig, W as createExecuteTool, X as createFilesystemTools, Y as createEditFileTool, Z as createGlobTool, _ as ExecuteFinishEvent, _t as BackendFactory, a as eventHasStructuredOutput, at as ls, b as FetchUrlStartEvent, bt as EditResult, c as hasStructuredOutput, ct as CreateWebToolsOptions, d as CheckpointLoadedEvent, dt as createWebSearchTool, et as createReadFileTool, f as CheckpointSavedEvent, ft as createWebTools, g as EventCallback, gt as web_search, h as ErrorEvent, ht as http_request, i as StructuredAgentResult, it as grep, j as TodosChangedEvent, jt as InterruptData, k as SubagentStartEvent, kt as Checkpoint, l as ApprovalRequestedEvent, lt as createFetchUrlTool, m as DoneEvent, mt as htmlToMarkdown, n as createDeepAgent, nt as edit_file, o as getEventOutput, ot as read_file, p as DeepAgentEvent, pt as fetch_url, q as createTodosTool, r as ModelMessage$1, rt as glob, s as getStructuredOutput, st as write_file, t as DeepAgent, tt as createWriteFileTool, u as ApprovalResponseEvent, ut as createHttpRequestTool, v as ExecuteStartEvent, vt as BackendProtocol, w as HttpRequestFinishEvent, wt as GrepMatch, x as FileEditedEvent, xt as ExecuteResponse, y as FetchUrlFinishEvent, yt as DeepAgentState, z as TodoItem } from "./agent-
|
|
2
|
-
import * as
|
|
1
|
+
import { $ as createLsTool, A as TextEvent, At as CheckpointSaverOptions, B as DynamicApprovalConfig, C as FileWrittenEvent, Ct as FileInfo, D as StepStartEvent, Dt as isSandboxBackend, E as StepFinishEvent, Et as WriteResult, F as WebSearchStartEvent, G as createExecuteToolFromBackend, H as SubAgent, I as AgentMemoryOptions, J as write_todos, K as execute, L as CreateDeepAgentParams, M as ToolCallEvent, Mt as ResumeDecision, N as ToolResultEvent, Nt as ResumeOptions, O as SubagentFinishEvent, Ot as BaseCheckpointSaver, P as WebSearchFinishEvent, Q as createGrepTool, R as SummarizationConfig, S as FileWriteStartEvent, St as FileData, T as HttpRequestStartEvent, Tt as SandboxBackendProtocol, U as CreateExecuteToolOptions, V as InterruptOnConfig, W as createExecuteTool, X as createFilesystemTools, Y as createEditFileTool, Z as createGlobTool, _ as ExecuteFinishEvent, _t as BackendFactory, a as eventHasStructuredOutput, at as ls, b as FetchUrlStartEvent, bt as EditResult, c as hasStructuredOutput, ct as CreateWebToolsOptions, d as CheckpointLoadedEvent, dt as createWebSearchTool, et as createReadFileTool, f as CheckpointSavedEvent, ft as createWebTools, g as EventCallback, gt as web_search, h as ErrorEvent, ht as http_request, i as StructuredAgentResult, it as grep, j as TodosChangedEvent, jt as InterruptData, k as SubagentStartEvent, kt as Checkpoint, l as ApprovalRequestedEvent, lt as createFetchUrlTool, m as DoneEvent, mt as htmlToMarkdown, n as createDeepAgent, nt as edit_file, o as getEventOutput, ot as read_file, p as DeepAgentEvent, pt as fetch_url, q as createTodosTool, r as ModelMessage$1, rt as glob, s as getStructuredOutput, st as write_file, t as DeepAgent, tt as createWriteFileTool, u as ApprovalResponseEvent, ut as createHttpRequestTool, v as ExecuteStartEvent, vt as BackendProtocol, w as HttpRequestFinishEvent, wt as GrepMatch, x as FileEditedEvent, xt as ExecuteResponse, y as FetchUrlFinishEvent, yt as DeepAgentState, z as TodoItem } from "./agent-DwAj5emJ.cjs";
|
|
2
|
+
import * as ai15 from "ai";
|
|
3
3
|
import { LanguageModel, LanguageModelMiddleware, LanguageModelMiddleware as LanguageModelMiddleware$1, ModelMessage, ToolLoopAgent, ToolSet, hasToolCall, stepCountIs, wrapLanguageModel } from "ai";
|
|
4
4
|
|
|
5
5
|
//#region src/backends/state.d.ts
|
|
@@ -737,7 +737,7 @@ interface CreateSubagentToolOptions {
|
|
|
737
737
|
/**
|
|
738
738
|
* Create the task tool for spawning subagents using ToolLoopAgent.
|
|
739
739
|
*/
|
|
740
|
-
declare function createSubagentTool(state: DeepAgentState, options: CreateSubagentToolOptions):
|
|
740
|
+
declare function createSubagentTool(state: DeepAgentState, options: CreateSubagentToolOptions): ai15.Tool<{
|
|
741
741
|
description: string;
|
|
742
742
|
subagent_type: string;
|
|
743
743
|
}, string>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as createLsTool, A as TextEvent, At as CheckpointSaverOptions, B as DynamicApprovalConfig, C as FileWrittenEvent, Ct as FileInfo, D as StepStartEvent, Dt as isSandboxBackend, E as StepFinishEvent, Et as WriteResult, F as WebSearchStartEvent, G as createExecuteToolFromBackend, H as SubAgent, I as AgentMemoryOptions, J as write_todos, K as execute, L as CreateDeepAgentParams, M as ToolCallEvent, Mt as ResumeDecision, N as ToolResultEvent, Nt as ResumeOptions, O as SubagentFinishEvent, Ot as BaseCheckpointSaver, P as WebSearchFinishEvent, Q as createGrepTool, R as SummarizationConfig, S as FileWriteStartEvent, St as FileData, T as HttpRequestStartEvent, Tt as SandboxBackendProtocol, U as CreateExecuteToolOptions, V as InterruptOnConfig, W as createExecuteTool, X as createFilesystemTools, Y as createEditFileTool, Z as createGlobTool, _ as ExecuteFinishEvent, _t as BackendFactory, a as eventHasStructuredOutput, at as ls, b as FetchUrlStartEvent, bt as EditResult, c as hasStructuredOutput, ct as CreateWebToolsOptions, d as CheckpointLoadedEvent, dt as createWebSearchTool, et as createReadFileTool, f as CheckpointSavedEvent, ft as createWebTools, g as EventCallback, gt as web_search, h as ErrorEvent, ht as http_request, i as StructuredAgentResult, it as grep, j as TodosChangedEvent, jt as InterruptData, k as SubagentStartEvent, kt as Checkpoint, l as ApprovalRequestedEvent, lt as createFetchUrlTool, m as DoneEvent, mt as htmlToMarkdown, n as createDeepAgent, nt as edit_file, o as getEventOutput, ot as read_file, p as DeepAgentEvent, pt as fetch_url, q as createTodosTool, r as ModelMessage$1, rt as glob, s as getStructuredOutput, st as write_file, t as DeepAgent, tt as createWriteFileTool, u as ApprovalResponseEvent, ut as createHttpRequestTool, v as ExecuteStartEvent, vt as BackendProtocol, w as HttpRequestFinishEvent, wt as GrepMatch, x as FileEditedEvent, xt as ExecuteResponse, y as FetchUrlFinishEvent, yt as DeepAgentState, z as TodoItem } from "./agent-
|
|
2
|
-
import * as
|
|
1
|
+
import { $ as createLsTool, A as TextEvent, At as CheckpointSaverOptions, B as DynamicApprovalConfig, C as FileWrittenEvent, Ct as FileInfo, D as StepStartEvent, Dt as isSandboxBackend, E as StepFinishEvent, Et as WriteResult, F as WebSearchStartEvent, G as createExecuteToolFromBackend, H as SubAgent, I as AgentMemoryOptions, J as write_todos, K as execute, L as CreateDeepAgentParams, M as ToolCallEvent, Mt as ResumeDecision, N as ToolResultEvent, Nt as ResumeOptions, O as SubagentFinishEvent, Ot as BaseCheckpointSaver, P as WebSearchFinishEvent, Q as createGrepTool, R as SummarizationConfig, S as FileWriteStartEvent, St as FileData, T as HttpRequestStartEvent, Tt as SandboxBackendProtocol, U as CreateExecuteToolOptions, V as InterruptOnConfig, W as createExecuteTool, X as createFilesystemTools, Y as createEditFileTool, Z as createGlobTool, _ as ExecuteFinishEvent, _t as BackendFactory, a as eventHasStructuredOutput, at as ls, b as FetchUrlStartEvent, bt as EditResult, c as hasStructuredOutput, ct as CreateWebToolsOptions, d as CheckpointLoadedEvent, dt as createWebSearchTool, et as createReadFileTool, f as CheckpointSavedEvent, ft as createWebTools, g as EventCallback, gt as web_search, h as ErrorEvent, ht as http_request, i as StructuredAgentResult, it as grep, j as TodosChangedEvent, jt as InterruptData, k as SubagentStartEvent, kt as Checkpoint, l as ApprovalRequestedEvent, lt as createFetchUrlTool, m as DoneEvent, mt as htmlToMarkdown, n as createDeepAgent, nt as edit_file, o as getEventOutput, ot as read_file, p as DeepAgentEvent, pt as fetch_url, q as createTodosTool, r as ModelMessage$1, rt as glob, s as getStructuredOutput, st as write_file, t as DeepAgent, tt as createWriteFileTool, u as ApprovalResponseEvent, ut as createHttpRequestTool, v as ExecuteStartEvent, vt as BackendProtocol, w as HttpRequestFinishEvent, wt as GrepMatch, x as FileEditedEvent, xt as ExecuteResponse, y as FetchUrlFinishEvent, yt as DeepAgentState, z as TodoItem } from "./agent-D0bKkNI-.mjs";
|
|
2
|
+
import * as ai6 from "ai";
|
|
3
3
|
import { LanguageModel, LanguageModelMiddleware, LanguageModelMiddleware as LanguageModelMiddleware$1, ModelMessage, ToolLoopAgent, ToolSet, hasToolCall, stepCountIs, wrapLanguageModel } from "ai";
|
|
4
4
|
|
|
5
5
|
//#region src/backends/state.d.ts
|
|
@@ -737,7 +737,7 @@ interface CreateSubagentToolOptions {
|
|
|
737
737
|
/**
|
|
738
738
|
* Create the task tool for spawning subagents using ToolLoopAgent.
|
|
739
739
|
*/
|
|
740
|
-
declare function createSubagentTool(state: DeepAgentState, options: CreateSubagentToolOptions):
|
|
740
|
+
declare function createSubagentTool(state: DeepAgentState, options: CreateSubagentToolOptions): ai6.Tool<{
|
|
741
741
|
description: string;
|
|
742
742
|
subagent_type: string;
|
|
743
743
|
}, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepagentsdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Deep Agent implementation using Vercel AI SDK - build controllable AI agents with planning, filesystem, and subagent capabilities",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|