deepagentsdk 0.13.0 → 0.15.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 +322 -82
- 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-DHUp_-Fx.d.mts} +114 -4
- package/dist/{agent-DToEVxs-.d.cts → agent-tfRthBvX.d.cts} +114 -4
- package/dist/{chunk-C5azi7Hr.cjs → chunk-DUZBydyJ.cjs} +7 -0
- package/dist/cli/index.cjs +2 -2
- package/dist/cli/index.mjs +1 -1
- package/dist/{file-saver-Hj5so3dV.mjs → file-saver-CQWTIr8z.mjs} +87 -4
- package/dist/file-saver-CQWTIr8z.mjs.map +1 -0
- package/dist/{file-saver-BYPKakT4.cjs → file-saver-ZDVH1zHI.cjs} +84 -4
- package/dist/file-saver-ZDVH1zHI.cjs.map +1 -0
- package/dist/index.cjs +27508 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +299 -2
- package/dist/index.d.mts +301 -4
- package/dist/index.mjs +27499 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{load-BrRAKlO6.cjs → load-BnaAQyCo.cjs} +4 -4
- package/dist/{load-BrRAKlO6.cjs.map → load-BnaAQyCo.cjs.map} +1 -1
- package/dist/load-CLVcFzo7.cjs +4 -0
- package/dist/{load-BDxe6Cet.mjs → load-DRzSpESX.mjs} +1 -1
- package/dist/{load-BBYEnMwz.mjs → load-FjxJSusX.mjs} +2 -2
- package/dist/{load-BBYEnMwz.mjs.map → load-FjxJSusX.mjs.map} +1 -1
- package/package.json +5 -1
- package/dist/file-saver-BYPKakT4.cjs.map +0 -1
- package/dist/file-saver-Hj5so3dV.mjs.map +0 -1
- package/dist/load-DqllBbDc.cjs +0 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { $ as createLsTool, A as TextEvent, At as
|
|
1
|
+
import { $ as createLsTool, A as TextEvent, At as isSandboxBackend, B as DynamicApprovalConfig, C as FileWrittenEvent, Ct as FileDownloadResponse, D as StepStartEvent, Dt as GrepMatch, E as StepFinishEvent, Et as FileUploadResponse, F as WebSearchStartEvent, Ft as ResumeDecision, G as createExecuteToolFromBackend, H as SubAgent, I as AgentMemoryOptions, It as ResumeOptions, J as write_todos, K as execute, L as CreateDeepAgentParams, M as ToolCallEvent, Mt as Checkpoint, N as ToolResultEvent, Nt as CheckpointSaverOptions, O as SubagentFinishEvent, Ot as SandboxBackendProtocol, P as WebSearchFinishEvent, Pt as InterruptData, Q as createGrepTool, R as SummarizationConfig, S as FileWriteStartEvent, St as FileData, T as HttpRequestStartEvent, Tt as FileOperationError, 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 BaseCheckpointSaver, k as SubagentStartEvent, kt as WriteResult, 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 FileInfo, x as FileEditedEvent, xt as ExecuteResponse, y as FetchUrlFinishEvent, yt as DeepAgentState, z as TodoItem } from "./agent-tfRthBvX.cjs";
|
|
2
2
|
import * as ai18 from "ai";
|
|
3
3
|
import { LanguageModel, LanguageModelMiddleware, LanguageModelMiddleware as LanguageModelMiddleware$1, ModelMessage, ToolLoopAgent, ToolSet, hasToolCall, stepCountIs, wrapLanguageModel } from "ai";
|
|
4
|
+
import { Sandbox } from "e2b";
|
|
5
|
+
import { ModalClient, Sandbox as Sandbox$1 } from "modal";
|
|
4
6
|
|
|
5
7
|
//#region src/backends/state.d.ts
|
|
6
8
|
|
|
@@ -574,6 +576,26 @@ declare abstract class BaseSandbox implements SandboxBackendProtocol {
|
|
|
574
576
|
* Must be implemented by subclasses.
|
|
575
577
|
*/
|
|
576
578
|
abstract readonly id: string;
|
|
579
|
+
/**
|
|
580
|
+
* Upload multiple files to the sandbox.
|
|
581
|
+
*
|
|
582
|
+
* Default implementation uses base64 encoding via shell commands.
|
|
583
|
+
* Subclasses can override if they have a native file upload API.
|
|
584
|
+
*
|
|
585
|
+
* This API is designed to allow partial success - individual uploads may fail
|
|
586
|
+
* without affecting others. Check the error field in each response.
|
|
587
|
+
*/
|
|
588
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
589
|
+
/**
|
|
590
|
+
* Download multiple files from the sandbox.
|
|
591
|
+
*
|
|
592
|
+
* Default implementation uses base64 encoding via shell commands.
|
|
593
|
+
* Subclasses can override if they have a native file download API.
|
|
594
|
+
*
|
|
595
|
+
* This API is designed to allow partial success - individual downloads may fail
|
|
596
|
+
* without affecting others. Check the error field in each response.
|
|
597
|
+
*/
|
|
598
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
577
599
|
/**
|
|
578
600
|
* List files and directories in a path.
|
|
579
601
|
*/
|
|
@@ -709,6 +731,281 @@ declare class LocalSandbox extends BaseSandbox {
|
|
|
709
731
|
execute(command: string): Promise<ExecuteResponse>;
|
|
710
732
|
}
|
|
711
733
|
//#endregion
|
|
734
|
+
//#region src/backends/e2b.d.ts
|
|
735
|
+
/**
|
|
736
|
+
* Options for creating an E2B backend.
|
|
737
|
+
*/
|
|
738
|
+
interface E2BBackendOptions {
|
|
739
|
+
/**
|
|
740
|
+
* E2B API key. If not provided, reads from E2B_API_KEY environment variable.
|
|
741
|
+
*/
|
|
742
|
+
apiKey?: string;
|
|
743
|
+
/**
|
|
744
|
+
* Sandbox template to use. Defaults to "base".
|
|
745
|
+
*/
|
|
746
|
+
template?: string;
|
|
747
|
+
/**
|
|
748
|
+
* Timeout for command execution in milliseconds.
|
|
749
|
+
* Defaults to 30 minutes.
|
|
750
|
+
*/
|
|
751
|
+
timeout?: number;
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* E2B sandbox backend implementation.
|
|
755
|
+
*
|
|
756
|
+
* Use createE2BBackend() factory function to create instances.
|
|
757
|
+
*/
|
|
758
|
+
declare class E2BBackend extends BaseSandbox {
|
|
759
|
+
readonly id: string;
|
|
760
|
+
private readonly _sandbox;
|
|
761
|
+
private readonly _timeout;
|
|
762
|
+
constructor(sandbox: Sandbox, timeout: number);
|
|
763
|
+
/**
|
|
764
|
+
* Execute a shell command in the E2B sandbox.
|
|
765
|
+
*/
|
|
766
|
+
execute(command: string): Promise<ExecuteResponse>;
|
|
767
|
+
/**
|
|
768
|
+
* Upload files to the E2B sandbox using the native filesystem API.
|
|
769
|
+
*/
|
|
770
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
771
|
+
/**
|
|
772
|
+
* Write a file using the native filesystem API.
|
|
773
|
+
* Override to avoid shell command limits for large files.
|
|
774
|
+
*/
|
|
775
|
+
write(filePath: string, content: string): Promise<WriteResult>;
|
|
776
|
+
/**
|
|
777
|
+
* Download files from the E2B sandbox using the native filesystem API.
|
|
778
|
+
*/
|
|
779
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
780
|
+
/**
|
|
781
|
+
* Kill the E2B sandbox.
|
|
782
|
+
*
|
|
783
|
+
* E2B automatically cleans up after 5 minutes of inactivity, but we can
|
|
784
|
+
* manually kill it to clean up immediately.
|
|
785
|
+
*/
|
|
786
|
+
dispose(): Promise<void>;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Create an E2B sandbox backend.
|
|
790
|
+
*
|
|
791
|
+
* This is an async factory function because E2B requires async operations
|
|
792
|
+
* to create sandboxes.
|
|
793
|
+
*
|
|
794
|
+
* @example
|
|
795
|
+
* ```typescript
|
|
796
|
+
* const backend = await createE2BBackend({
|
|
797
|
+
* template: "base",
|
|
798
|
+
* timeout: 10 * 60 * 1000,
|
|
799
|
+
* });
|
|
800
|
+
* ```
|
|
801
|
+
*/
|
|
802
|
+
declare function createE2BBackend(options?: E2BBackendOptions): Promise<E2BBackend>;
|
|
803
|
+
//#endregion
|
|
804
|
+
//#region src/backends/modal.d.ts
|
|
805
|
+
/**
|
|
806
|
+
* Options for creating a Modal backend.
|
|
807
|
+
*/
|
|
808
|
+
interface ModalBackendOptions {
|
|
809
|
+
/**
|
|
810
|
+
* Modal app name. Defaults to "deepagentsdk-sandbox".
|
|
811
|
+
* App will be created if it doesn't exist.
|
|
812
|
+
*/
|
|
813
|
+
appName?: string;
|
|
814
|
+
/**
|
|
815
|
+
* Container image to use for sandbox.
|
|
816
|
+
* Defaults to "python:3.13-slim".
|
|
817
|
+
*/
|
|
818
|
+
image?: string;
|
|
819
|
+
/**
|
|
820
|
+
* Timeout for command execution in milliseconds.
|
|
821
|
+
* Defaults to 30 minutes.
|
|
822
|
+
*/
|
|
823
|
+
timeout?: number;
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* Modal sandbox backend implementation.
|
|
827
|
+
*
|
|
828
|
+
* Use createModalBackend() factory function to create instances.
|
|
829
|
+
*/
|
|
830
|
+
declare class ModalBackend extends BaseSandbox {
|
|
831
|
+
readonly id: string;
|
|
832
|
+
private readonly _client;
|
|
833
|
+
private readonly _sandbox;
|
|
834
|
+
private readonly _timeout;
|
|
835
|
+
constructor(client: ModalClient, sandbox: Sandbox$1, timeout: number);
|
|
836
|
+
/**
|
|
837
|
+
* Execute a shell command in the Modal sandbox.
|
|
838
|
+
*/
|
|
839
|
+
execute(command: string): Promise<ExecuteResponse>;
|
|
840
|
+
/**
|
|
841
|
+
* Upload files to the Modal sandbox.
|
|
842
|
+
*/
|
|
843
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
844
|
+
/**
|
|
845
|
+
* Download files from the Modal sandbox.
|
|
846
|
+
*/
|
|
847
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
848
|
+
/**
|
|
849
|
+
* Terminate the Modal sandbox.
|
|
850
|
+
*
|
|
851
|
+
* Modal has no auto-cleanup, so dispose() must be called to clean up resources.
|
|
852
|
+
*/
|
|
853
|
+
dispose(): Promise<void>;
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Create a Modal sandbox backend.
|
|
857
|
+
*
|
|
858
|
+
* This is an async factory function because Modal requires async operations
|
|
859
|
+
* to create apps and sandboxes.
|
|
860
|
+
*
|
|
861
|
+
* @example
|
|
862
|
+
* ```typescript
|
|
863
|
+
* const backend = await createModalBackend({
|
|
864
|
+
* appName: "my-agent-sandbox",
|
|
865
|
+
* image: "node:22-alpine",
|
|
866
|
+
* });
|
|
867
|
+
* ```
|
|
868
|
+
*/
|
|
869
|
+
declare function createModalBackend(options?: ModalBackendOptions): Promise<ModalBackend>;
|
|
870
|
+
//#endregion
|
|
871
|
+
//#region src/backends/runloop.d.ts
|
|
872
|
+
interface RunloopBackendOptions {
|
|
873
|
+
/**
|
|
874
|
+
* Runloop API key. If not provided, reads from RUNLOOP_API_KEY environment variable.
|
|
875
|
+
*/
|
|
876
|
+
apiKey?: string;
|
|
877
|
+
/**
|
|
878
|
+
* Existing devbox ID to reconnect to.
|
|
879
|
+
* If provided, connects to existing devbox instead of creating new one.
|
|
880
|
+
*/
|
|
881
|
+
devboxId?: string;
|
|
882
|
+
/**
|
|
883
|
+
* Timeout for command execution in milliseconds.
|
|
884
|
+
* Defaults to 30 minutes.
|
|
885
|
+
*/
|
|
886
|
+
timeout?: number;
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* Runloop devbox backend implementation.
|
|
890
|
+
*
|
|
891
|
+
* @example Creating a new devbox
|
|
892
|
+
* ```typescript
|
|
893
|
+
* const backend = new RunloopBackend({
|
|
894
|
+
* timeout: 15 * 60 * 1000, // 15 minutes
|
|
895
|
+
* });
|
|
896
|
+
* ```
|
|
897
|
+
*
|
|
898
|
+
* @example Reconnecting to existing devbox
|
|
899
|
+
* ```typescript
|
|
900
|
+
* const backend = new RunloopBackend({
|
|
901
|
+
* devboxId: "db-abc123",
|
|
902
|
+
* });
|
|
903
|
+
* ```
|
|
904
|
+
*/
|
|
905
|
+
declare class RunloopBackend extends BaseSandbox {
|
|
906
|
+
readonly id: string;
|
|
907
|
+
private readonly _sdk;
|
|
908
|
+
private readonly _devbox;
|
|
909
|
+
private readonly _timeout;
|
|
910
|
+
private readonly _owned;
|
|
911
|
+
constructor(options?: RunloopBackendOptions);
|
|
912
|
+
private _initializeDevbox;
|
|
913
|
+
private _getDevbox;
|
|
914
|
+
/**
|
|
915
|
+
* Execute a shell command in the Runloop devbox.
|
|
916
|
+
*/
|
|
917
|
+
execute(command: string): Promise<ExecuteResponse>;
|
|
918
|
+
/**
|
|
919
|
+
* Upload files to the Runloop devbox.
|
|
920
|
+
*
|
|
921
|
+
* Uses base64 encoding to transfer file content via shell commands.
|
|
922
|
+
*/
|
|
923
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
924
|
+
/**
|
|
925
|
+
* Download files from the Runloop devbox.
|
|
926
|
+
*
|
|
927
|
+
* Uses base64 encoding to transfer file content via shell commands.
|
|
928
|
+
*/
|
|
929
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
930
|
+
/**
|
|
931
|
+
* Shutdown the Runloop devbox.
|
|
932
|
+
*
|
|
933
|
+
* Runloop has no auto-cleanup, so dispose() must be called to clean up resources.
|
|
934
|
+
* Only shuts down devbox if we created it (owned: true).
|
|
935
|
+
*/
|
|
936
|
+
dispose(): Promise<void>;
|
|
937
|
+
}
|
|
938
|
+
//#endregion
|
|
939
|
+
//#region src/backends/daytona.d.ts
|
|
940
|
+
interface DaytonaBackendOptions {
|
|
941
|
+
/**
|
|
942
|
+
* Daytona API key. If not provided, reads from DAYTONA_API_KEY environment variable.
|
|
943
|
+
*/
|
|
944
|
+
apiKey?: string;
|
|
945
|
+
/**
|
|
946
|
+
* Language/runtime for the sandbox.
|
|
947
|
+
* Defaults to "typescript".
|
|
948
|
+
* Options: "typescript", "python", "go", etc.
|
|
949
|
+
*/
|
|
950
|
+
language?: string;
|
|
951
|
+
/**
|
|
952
|
+
* Existing sandbox ID to reconnect to.
|
|
953
|
+
* If provided, connects to existing sandbox instead of creating new one.
|
|
954
|
+
*/
|
|
955
|
+
sandboxId?: string;
|
|
956
|
+
/**
|
|
957
|
+
* Timeout for command execution in milliseconds.
|
|
958
|
+
* Defaults to 30 minutes.
|
|
959
|
+
*/
|
|
960
|
+
timeout?: number;
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* Daytona sandbox backend implementation.
|
|
964
|
+
*
|
|
965
|
+
* @example Creating a new sandbox
|
|
966
|
+
* ```typescript
|
|
967
|
+
* const backend = new DaytonaBackend({
|
|
968
|
+
* language: "typescript",
|
|
969
|
+
* });
|
|
970
|
+
* ```
|
|
971
|
+
*
|
|
972
|
+
* @example Reconnecting to existing sandbox
|
|
973
|
+
* ```typescript
|
|
974
|
+
* const backend = new DaytonaBackend({
|
|
975
|
+
* sandboxId: "ds-abc123",
|
|
976
|
+
* });
|
|
977
|
+
* ```
|
|
978
|
+
*/
|
|
979
|
+
declare class DaytonaBackend extends BaseSandbox {
|
|
980
|
+
readonly id: string;
|
|
981
|
+
private readonly _daytona;
|
|
982
|
+
private readonly _sandbox;
|
|
983
|
+
private readonly _timeout;
|
|
984
|
+
private readonly _owned;
|
|
985
|
+
constructor(options?: DaytonaBackendOptions);
|
|
986
|
+
private _initializeSandbox;
|
|
987
|
+
private _getSandbox;
|
|
988
|
+
/**
|
|
989
|
+
* Execute a shell command in the Daytona sandbox.
|
|
990
|
+
*/
|
|
991
|
+
execute(command: string): Promise<ExecuteResponse>;
|
|
992
|
+
/**
|
|
993
|
+
* Upload files to the Daytona sandbox.
|
|
994
|
+
*/
|
|
995
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
996
|
+
/**
|
|
997
|
+
* Download files from the Daytona sandbox.
|
|
998
|
+
*/
|
|
999
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
1000
|
+
/**
|
|
1001
|
+
* Delete the Daytona sandbox.
|
|
1002
|
+
*
|
|
1003
|
+
* Daytona has no auto-cleanup, so dispose() must be called to clean up resources.
|
|
1004
|
+
* Only deletes sandbox if we created it (owned: true).
|
|
1005
|
+
*/
|
|
1006
|
+
dispose(): Promise<void>;
|
|
1007
|
+
}
|
|
1008
|
+
//#endregion
|
|
712
1009
|
//#region src/tools/subagent.d.ts
|
|
713
1010
|
/**
|
|
714
1011
|
* Options for creating the subagent tool.
|
|
@@ -1229,5 +1526,5 @@ declare function createAgentMemoryMiddleware(options: AgentMemoryOptions$1): Lan
|
|
|
1229
1526
|
*/
|
|
1230
1527
|
declare function findGitRoot(startPath?: string): Promise<string | null>;
|
|
1231
1528
|
//#endregion
|
|
1232
|
-
export { type AgentMemoryOptions, type ApprovalRequestedEvent, type ApprovalResponseEvent, BASE_PROMPT, type BackendFactory, type BackendProtocol, BaseCheckpointSaver, BaseSandbox, Checkpoint, type CheckpointLoadedEvent, type CheckpointSavedEvent, CheckpointSaverOptions, CompositeBackend, type CreateDeepAgentParams, type CreateExecuteToolOptions, type CreateSubagentToolOptions, type CreateWebToolsOptions, DEFAULT_EVICTION_TOKEN_LIMIT, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_KEEP_MESSAGES, DEFAULT_SUBAGENT_PROMPT, DEFAULT_SUMMARIZATION_THRESHOLD, DeepAgent, type DeepAgentEvent, type DeepAgentState, type DoneEvent, type DynamicApprovalConfig, EXECUTE_SYSTEM_PROMPT, type EditResult, type ErrorEvent, type EventCallback, type EvictOptions, type EvictResult, type ExecuteFinishEvent, type ExecuteResponse, type ExecuteStartEvent, FILESYSTEM_SYSTEM_PROMPT, type FetchUrlFinishEvent, type FetchUrlStartEvent, type FileData, type FileEditedEvent, type FileInfo, FileSaver, FileSaverOptions, type FileWriteStartEvent, type FileWrittenEvent, FilesystemBackend, type GrepMatch, type HttpRequestFinishEvent, type HttpRequestStartEvent, InMemoryStore, InterruptData, type InterruptOnConfig, type KeyValueStore, KeyValueStoreSaver, KeyValueStoreSaverOptions, type LanguageModelMiddleware, LocalSandbox, type LocalSandboxOptions, MemorySaver, PersistentBackend, type PersistentBackendOptions, ResumeDecision, ResumeOptions, type SandboxBackendProtocol, type SkillLoadOptions, type SkillMetadata, StateBackend, type StepFinishEvent, type StepStartEvent, type StructuredAgentResult, type SubAgent, type SubagentFinishEvent, type SubagentStartEvent, type SummarizationConfig, type SummarizationOptions, type SummarizationResult, TASK_SYSTEM_PROMPT, TODO_SYSTEM_PROMPT, type TextEvent, type TodoItem, type TodosChangedEvent, type ToolCallEvent, ToolLoopAgent, type ToolResultEvent, type WebSearchFinishEvent, type WebSearchStartEvent, type WriteResult, createAgentMemoryMiddleware, createDeepAgent, createEditFileTool, createExecuteTool, createExecuteToolFromBackend, createFetchUrlTool, createFilesystemTools, createGlobTool, createGrepTool, createHttpRequestTool, createLsTool, createReadFileTool, createSubagentTool, createTodosTool, createToolResultWrapper, createWebSearchTool, createWebTools, createWriteFileTool, edit_file, estimateMessagesTokens, estimateTokens, eventHasStructuredOutput, evictToolResult, execute, fetch_url, findGitRoot, getEventOutput, getStructuredOutput, getTaskToolDescription, glob, grep, hasDanglingToolCalls, hasStructuredOutput, hasToolCall, htmlToMarkdown, http_request, isSandboxBackend, listSkills, ls, needsSummarization, parseSkillMetadata, patchToolCalls, read_file, shouldEvict, stepCountIs, summarizeIfNeeded, web_search, wrapLanguageModel, write_file, write_todos };
|
|
1529
|
+
export { type AgentMemoryOptions, type ApprovalRequestedEvent, type ApprovalResponseEvent, BASE_PROMPT, type BackendFactory, type BackendProtocol, BaseCheckpointSaver, BaseSandbox, Checkpoint, type CheckpointLoadedEvent, type CheckpointSavedEvent, CheckpointSaverOptions, CompositeBackend, type CreateDeepAgentParams, type CreateExecuteToolOptions, type CreateSubagentToolOptions, type CreateWebToolsOptions, DEFAULT_EVICTION_TOKEN_LIMIT, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_KEEP_MESSAGES, DEFAULT_SUBAGENT_PROMPT, DEFAULT_SUMMARIZATION_THRESHOLD, DaytonaBackend, type DaytonaBackendOptions, DeepAgent, type DeepAgentEvent, type DeepAgentState, type DoneEvent, type DynamicApprovalConfig, E2BBackend, type E2BBackendOptions, EXECUTE_SYSTEM_PROMPT, type EditResult, type ErrorEvent, type EventCallback, type EvictOptions, type EvictResult, type ExecuteFinishEvent, type ExecuteResponse, type ExecuteStartEvent, FILESYSTEM_SYSTEM_PROMPT, type FetchUrlFinishEvent, type FetchUrlStartEvent, type FileData, type FileDownloadResponse, type FileEditedEvent, type FileInfo, type FileOperationError, FileSaver, FileSaverOptions, type FileUploadResponse, type FileWriteStartEvent, type FileWrittenEvent, FilesystemBackend, type GrepMatch, type HttpRequestFinishEvent, type HttpRequestStartEvent, InMemoryStore, InterruptData, type InterruptOnConfig, type KeyValueStore, KeyValueStoreSaver, KeyValueStoreSaverOptions, type LanguageModelMiddleware, LocalSandbox, type LocalSandboxOptions, MemorySaver, ModalBackend, type ModalBackendOptions, PersistentBackend, type PersistentBackendOptions, ResumeDecision, ResumeOptions, RunloopBackend, type RunloopBackendOptions, type SandboxBackendProtocol, type SkillLoadOptions, type SkillMetadata, StateBackend, type StepFinishEvent, type StepStartEvent, type StructuredAgentResult, type SubAgent, type SubagentFinishEvent, type SubagentStartEvent, type SummarizationConfig, type SummarizationOptions, type SummarizationResult, TASK_SYSTEM_PROMPT, TODO_SYSTEM_PROMPT, type TextEvent, type TodoItem, type TodosChangedEvent, type ToolCallEvent, ToolLoopAgent, type ToolResultEvent, type WebSearchFinishEvent, type WebSearchStartEvent, type WriteResult, createAgentMemoryMiddleware, createDeepAgent, createE2BBackend, createEditFileTool, createExecuteTool, createExecuteToolFromBackend, createFetchUrlTool, createFilesystemTools, createGlobTool, createGrepTool, createHttpRequestTool, createLsTool, createModalBackend, createReadFileTool, createSubagentTool, createTodosTool, createToolResultWrapper, createWebSearchTool, createWebTools, createWriteFileTool, edit_file, estimateMessagesTokens, estimateTokens, eventHasStructuredOutput, evictToolResult, execute, fetch_url, findGitRoot, getEventOutput, getStructuredOutput, getTaskToolDescription, glob, grep, hasDanglingToolCalls, hasStructuredOutput, hasToolCall, htmlToMarkdown, http_request, isSandboxBackend, listSkills, ls, needsSummarization, parseSkillMetadata, patchToolCalls, read_file, shouldEvict, stepCountIs, summarizeIfNeeded, web_search, wrapLanguageModel, write_file, write_todos };
|
|
1233
1530
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { $ as createLsTool, A as TextEvent, At as
|
|
2
|
-
import * as
|
|
1
|
+
import { $ as createLsTool, A as TextEvent, At as isSandboxBackend, B as DynamicApprovalConfig, C as FileWrittenEvent, Ct as FileDownloadResponse, D as StepStartEvent, Dt as GrepMatch, E as StepFinishEvent, Et as FileUploadResponse, F as WebSearchStartEvent, Ft as ResumeDecision, G as createExecuteToolFromBackend, H as SubAgent, I as AgentMemoryOptions, It as ResumeOptions, J as write_todos, K as execute, L as CreateDeepAgentParams, M as ToolCallEvent, Mt as Checkpoint, N as ToolResultEvent, Nt as CheckpointSaverOptions, O as SubagentFinishEvent, Ot as SandboxBackendProtocol, P as WebSearchFinishEvent, Pt as InterruptData, Q as createGrepTool, R as SummarizationConfig, S as FileWriteStartEvent, St as FileData, T as HttpRequestStartEvent, Tt as FileOperationError, 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 BaseCheckpointSaver, k as SubagentStartEvent, kt as WriteResult, 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 FileInfo, x as FileEditedEvent, xt as ExecuteResponse, y as FetchUrlFinishEvent, yt as DeepAgentState, z as TodoItem } from "./agent-DHUp_-Fx.mjs";
|
|
2
|
+
import * as ai18 from "ai";
|
|
3
3
|
import { LanguageModel, LanguageModelMiddleware, LanguageModelMiddleware as LanguageModelMiddleware$1, ModelMessage, ToolLoopAgent, ToolSet, hasToolCall, stepCountIs, wrapLanguageModel } from "ai";
|
|
4
|
+
import { ModalClient, Sandbox } from "modal";
|
|
5
|
+
import { Sandbox as Sandbox$1 } from "e2b";
|
|
4
6
|
|
|
5
7
|
//#region src/backends/state.d.ts
|
|
6
8
|
|
|
@@ -574,6 +576,26 @@ declare abstract class BaseSandbox implements SandboxBackendProtocol {
|
|
|
574
576
|
* Must be implemented by subclasses.
|
|
575
577
|
*/
|
|
576
578
|
abstract readonly id: string;
|
|
579
|
+
/**
|
|
580
|
+
* Upload multiple files to the sandbox.
|
|
581
|
+
*
|
|
582
|
+
* Default implementation uses base64 encoding via shell commands.
|
|
583
|
+
* Subclasses can override if they have a native file upload API.
|
|
584
|
+
*
|
|
585
|
+
* This API is designed to allow partial success - individual uploads may fail
|
|
586
|
+
* without affecting others. Check the error field in each response.
|
|
587
|
+
*/
|
|
588
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
589
|
+
/**
|
|
590
|
+
* Download multiple files from the sandbox.
|
|
591
|
+
*
|
|
592
|
+
* Default implementation uses base64 encoding via shell commands.
|
|
593
|
+
* Subclasses can override if they have a native file download API.
|
|
594
|
+
*
|
|
595
|
+
* This API is designed to allow partial success - individual downloads may fail
|
|
596
|
+
* without affecting others. Check the error field in each response.
|
|
597
|
+
*/
|
|
598
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
577
599
|
/**
|
|
578
600
|
* List files and directories in a path.
|
|
579
601
|
*/
|
|
@@ -709,6 +731,281 @@ declare class LocalSandbox extends BaseSandbox {
|
|
|
709
731
|
execute(command: string): Promise<ExecuteResponse>;
|
|
710
732
|
}
|
|
711
733
|
//#endregion
|
|
734
|
+
//#region src/backends/e2b.d.ts
|
|
735
|
+
/**
|
|
736
|
+
* Options for creating an E2B backend.
|
|
737
|
+
*/
|
|
738
|
+
interface E2BBackendOptions {
|
|
739
|
+
/**
|
|
740
|
+
* E2B API key. If not provided, reads from E2B_API_KEY environment variable.
|
|
741
|
+
*/
|
|
742
|
+
apiKey?: string;
|
|
743
|
+
/**
|
|
744
|
+
* Sandbox template to use. Defaults to "base".
|
|
745
|
+
*/
|
|
746
|
+
template?: string;
|
|
747
|
+
/**
|
|
748
|
+
* Timeout for command execution in milliseconds.
|
|
749
|
+
* Defaults to 30 minutes.
|
|
750
|
+
*/
|
|
751
|
+
timeout?: number;
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* E2B sandbox backend implementation.
|
|
755
|
+
*
|
|
756
|
+
* Use createE2BBackend() factory function to create instances.
|
|
757
|
+
*/
|
|
758
|
+
declare class E2BBackend extends BaseSandbox {
|
|
759
|
+
readonly id: string;
|
|
760
|
+
private readonly _sandbox;
|
|
761
|
+
private readonly _timeout;
|
|
762
|
+
constructor(sandbox: Sandbox$1, timeout: number);
|
|
763
|
+
/**
|
|
764
|
+
* Execute a shell command in the E2B sandbox.
|
|
765
|
+
*/
|
|
766
|
+
execute(command: string): Promise<ExecuteResponse>;
|
|
767
|
+
/**
|
|
768
|
+
* Upload files to the E2B sandbox using the native filesystem API.
|
|
769
|
+
*/
|
|
770
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
771
|
+
/**
|
|
772
|
+
* Write a file using the native filesystem API.
|
|
773
|
+
* Override to avoid shell command limits for large files.
|
|
774
|
+
*/
|
|
775
|
+
write(filePath: string, content: string): Promise<WriteResult>;
|
|
776
|
+
/**
|
|
777
|
+
* Download files from the E2B sandbox using the native filesystem API.
|
|
778
|
+
*/
|
|
779
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
780
|
+
/**
|
|
781
|
+
* Kill the E2B sandbox.
|
|
782
|
+
*
|
|
783
|
+
* E2B automatically cleans up after 5 minutes of inactivity, but we can
|
|
784
|
+
* manually kill it to clean up immediately.
|
|
785
|
+
*/
|
|
786
|
+
dispose(): Promise<void>;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Create an E2B sandbox backend.
|
|
790
|
+
*
|
|
791
|
+
* This is an async factory function because E2B requires async operations
|
|
792
|
+
* to create sandboxes.
|
|
793
|
+
*
|
|
794
|
+
* @example
|
|
795
|
+
* ```typescript
|
|
796
|
+
* const backend = await createE2BBackend({
|
|
797
|
+
* template: "base",
|
|
798
|
+
* timeout: 10 * 60 * 1000,
|
|
799
|
+
* });
|
|
800
|
+
* ```
|
|
801
|
+
*/
|
|
802
|
+
declare function createE2BBackend(options?: E2BBackendOptions): Promise<E2BBackend>;
|
|
803
|
+
//#endregion
|
|
804
|
+
//#region src/backends/modal.d.ts
|
|
805
|
+
/**
|
|
806
|
+
* Options for creating a Modal backend.
|
|
807
|
+
*/
|
|
808
|
+
interface ModalBackendOptions {
|
|
809
|
+
/**
|
|
810
|
+
* Modal app name. Defaults to "deepagentsdk-sandbox".
|
|
811
|
+
* App will be created if it doesn't exist.
|
|
812
|
+
*/
|
|
813
|
+
appName?: string;
|
|
814
|
+
/**
|
|
815
|
+
* Container image to use for sandbox.
|
|
816
|
+
* Defaults to "python:3.13-slim".
|
|
817
|
+
*/
|
|
818
|
+
image?: string;
|
|
819
|
+
/**
|
|
820
|
+
* Timeout for command execution in milliseconds.
|
|
821
|
+
* Defaults to 30 minutes.
|
|
822
|
+
*/
|
|
823
|
+
timeout?: number;
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* Modal sandbox backend implementation.
|
|
827
|
+
*
|
|
828
|
+
* Use createModalBackend() factory function to create instances.
|
|
829
|
+
*/
|
|
830
|
+
declare class ModalBackend extends BaseSandbox {
|
|
831
|
+
readonly id: string;
|
|
832
|
+
private readonly _client;
|
|
833
|
+
private readonly _sandbox;
|
|
834
|
+
private readonly _timeout;
|
|
835
|
+
constructor(client: ModalClient, sandbox: Sandbox, timeout: number);
|
|
836
|
+
/**
|
|
837
|
+
* Execute a shell command in the Modal sandbox.
|
|
838
|
+
*/
|
|
839
|
+
execute(command: string): Promise<ExecuteResponse>;
|
|
840
|
+
/**
|
|
841
|
+
* Upload files to the Modal sandbox.
|
|
842
|
+
*/
|
|
843
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
844
|
+
/**
|
|
845
|
+
* Download files from the Modal sandbox.
|
|
846
|
+
*/
|
|
847
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
848
|
+
/**
|
|
849
|
+
* Terminate the Modal sandbox.
|
|
850
|
+
*
|
|
851
|
+
* Modal has no auto-cleanup, so dispose() must be called to clean up resources.
|
|
852
|
+
*/
|
|
853
|
+
dispose(): Promise<void>;
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Create a Modal sandbox backend.
|
|
857
|
+
*
|
|
858
|
+
* This is an async factory function because Modal requires async operations
|
|
859
|
+
* to create apps and sandboxes.
|
|
860
|
+
*
|
|
861
|
+
* @example
|
|
862
|
+
* ```typescript
|
|
863
|
+
* const backend = await createModalBackend({
|
|
864
|
+
* appName: "my-agent-sandbox",
|
|
865
|
+
* image: "node:22-alpine",
|
|
866
|
+
* });
|
|
867
|
+
* ```
|
|
868
|
+
*/
|
|
869
|
+
declare function createModalBackend(options?: ModalBackendOptions): Promise<ModalBackend>;
|
|
870
|
+
//#endregion
|
|
871
|
+
//#region src/backends/runloop.d.ts
|
|
872
|
+
interface RunloopBackendOptions {
|
|
873
|
+
/**
|
|
874
|
+
* Runloop API key. If not provided, reads from RUNLOOP_API_KEY environment variable.
|
|
875
|
+
*/
|
|
876
|
+
apiKey?: string;
|
|
877
|
+
/**
|
|
878
|
+
* Existing devbox ID to reconnect to.
|
|
879
|
+
* If provided, connects to existing devbox instead of creating new one.
|
|
880
|
+
*/
|
|
881
|
+
devboxId?: string;
|
|
882
|
+
/**
|
|
883
|
+
* Timeout for command execution in milliseconds.
|
|
884
|
+
* Defaults to 30 minutes.
|
|
885
|
+
*/
|
|
886
|
+
timeout?: number;
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* Runloop devbox backend implementation.
|
|
890
|
+
*
|
|
891
|
+
* @example Creating a new devbox
|
|
892
|
+
* ```typescript
|
|
893
|
+
* const backend = new RunloopBackend({
|
|
894
|
+
* timeout: 15 * 60 * 1000, // 15 minutes
|
|
895
|
+
* });
|
|
896
|
+
* ```
|
|
897
|
+
*
|
|
898
|
+
* @example Reconnecting to existing devbox
|
|
899
|
+
* ```typescript
|
|
900
|
+
* const backend = new RunloopBackend({
|
|
901
|
+
* devboxId: "db-abc123",
|
|
902
|
+
* });
|
|
903
|
+
* ```
|
|
904
|
+
*/
|
|
905
|
+
declare class RunloopBackend extends BaseSandbox {
|
|
906
|
+
readonly id: string;
|
|
907
|
+
private readonly _sdk;
|
|
908
|
+
private readonly _devbox;
|
|
909
|
+
private readonly _timeout;
|
|
910
|
+
private readonly _owned;
|
|
911
|
+
constructor(options?: RunloopBackendOptions);
|
|
912
|
+
private _initializeDevbox;
|
|
913
|
+
private _getDevbox;
|
|
914
|
+
/**
|
|
915
|
+
* Execute a shell command in the Runloop devbox.
|
|
916
|
+
*/
|
|
917
|
+
execute(command: string): Promise<ExecuteResponse>;
|
|
918
|
+
/**
|
|
919
|
+
* Upload files to the Runloop devbox.
|
|
920
|
+
*
|
|
921
|
+
* Uses base64 encoding to transfer file content via shell commands.
|
|
922
|
+
*/
|
|
923
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
924
|
+
/**
|
|
925
|
+
* Download files from the Runloop devbox.
|
|
926
|
+
*
|
|
927
|
+
* Uses base64 encoding to transfer file content via shell commands.
|
|
928
|
+
*/
|
|
929
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
930
|
+
/**
|
|
931
|
+
* Shutdown the Runloop devbox.
|
|
932
|
+
*
|
|
933
|
+
* Runloop has no auto-cleanup, so dispose() must be called to clean up resources.
|
|
934
|
+
* Only shuts down devbox if we created it (owned: true).
|
|
935
|
+
*/
|
|
936
|
+
dispose(): Promise<void>;
|
|
937
|
+
}
|
|
938
|
+
//#endregion
|
|
939
|
+
//#region src/backends/daytona.d.ts
|
|
940
|
+
interface DaytonaBackendOptions {
|
|
941
|
+
/**
|
|
942
|
+
* Daytona API key. If not provided, reads from DAYTONA_API_KEY environment variable.
|
|
943
|
+
*/
|
|
944
|
+
apiKey?: string;
|
|
945
|
+
/**
|
|
946
|
+
* Language/runtime for the sandbox.
|
|
947
|
+
* Defaults to "typescript".
|
|
948
|
+
* Options: "typescript", "python", "go", etc.
|
|
949
|
+
*/
|
|
950
|
+
language?: string;
|
|
951
|
+
/**
|
|
952
|
+
* Existing sandbox ID to reconnect to.
|
|
953
|
+
* If provided, connects to existing sandbox instead of creating new one.
|
|
954
|
+
*/
|
|
955
|
+
sandboxId?: string;
|
|
956
|
+
/**
|
|
957
|
+
* Timeout for command execution in milliseconds.
|
|
958
|
+
* Defaults to 30 minutes.
|
|
959
|
+
*/
|
|
960
|
+
timeout?: number;
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* Daytona sandbox backend implementation.
|
|
964
|
+
*
|
|
965
|
+
* @example Creating a new sandbox
|
|
966
|
+
* ```typescript
|
|
967
|
+
* const backend = new DaytonaBackend({
|
|
968
|
+
* language: "typescript",
|
|
969
|
+
* });
|
|
970
|
+
* ```
|
|
971
|
+
*
|
|
972
|
+
* @example Reconnecting to existing sandbox
|
|
973
|
+
* ```typescript
|
|
974
|
+
* const backend = new DaytonaBackend({
|
|
975
|
+
* sandboxId: "ds-abc123",
|
|
976
|
+
* });
|
|
977
|
+
* ```
|
|
978
|
+
*/
|
|
979
|
+
declare class DaytonaBackend extends BaseSandbox {
|
|
980
|
+
readonly id: string;
|
|
981
|
+
private readonly _daytona;
|
|
982
|
+
private readonly _sandbox;
|
|
983
|
+
private readonly _timeout;
|
|
984
|
+
private readonly _owned;
|
|
985
|
+
constructor(options?: DaytonaBackendOptions);
|
|
986
|
+
private _initializeSandbox;
|
|
987
|
+
private _getSandbox;
|
|
988
|
+
/**
|
|
989
|
+
* Execute a shell command in the Daytona sandbox.
|
|
990
|
+
*/
|
|
991
|
+
execute(command: string): Promise<ExecuteResponse>;
|
|
992
|
+
/**
|
|
993
|
+
* Upload files to the Daytona sandbox.
|
|
994
|
+
*/
|
|
995
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
996
|
+
/**
|
|
997
|
+
* Download files from the Daytona sandbox.
|
|
998
|
+
*/
|
|
999
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
1000
|
+
/**
|
|
1001
|
+
* Delete the Daytona sandbox.
|
|
1002
|
+
*
|
|
1003
|
+
* Daytona has no auto-cleanup, so dispose() must be called to clean up resources.
|
|
1004
|
+
* Only deletes sandbox if we created it (owned: true).
|
|
1005
|
+
*/
|
|
1006
|
+
dispose(): Promise<void>;
|
|
1007
|
+
}
|
|
1008
|
+
//#endregion
|
|
712
1009
|
//#region src/tools/subagent.d.ts
|
|
713
1010
|
/**
|
|
714
1011
|
* Options for creating the subagent tool.
|
|
@@ -737,7 +1034,7 @@ interface CreateSubagentToolOptions {
|
|
|
737
1034
|
/**
|
|
738
1035
|
* Create the task tool for spawning subagents using ToolLoopAgent.
|
|
739
1036
|
*/
|
|
740
|
-
declare function createSubagentTool(state: DeepAgentState, options: CreateSubagentToolOptions):
|
|
1037
|
+
declare function createSubagentTool(state: DeepAgentState, options: CreateSubagentToolOptions): ai18.Tool<{
|
|
741
1038
|
description: string;
|
|
742
1039
|
subagent_type: string;
|
|
743
1040
|
}, string>;
|
|
@@ -1229,5 +1526,5 @@ declare function createAgentMemoryMiddleware(options: AgentMemoryOptions$1): Lan
|
|
|
1229
1526
|
*/
|
|
1230
1527
|
declare function findGitRoot(startPath?: string): Promise<string | null>;
|
|
1231
1528
|
//#endregion
|
|
1232
|
-
export { type AgentMemoryOptions, type ApprovalRequestedEvent, type ApprovalResponseEvent, BASE_PROMPT, type BackendFactory, type BackendProtocol, BaseCheckpointSaver, BaseSandbox, Checkpoint, type CheckpointLoadedEvent, type CheckpointSavedEvent, CheckpointSaverOptions, CompositeBackend, type CreateDeepAgentParams, type CreateExecuteToolOptions, type CreateSubagentToolOptions, type CreateWebToolsOptions, DEFAULT_EVICTION_TOKEN_LIMIT, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_KEEP_MESSAGES, DEFAULT_SUBAGENT_PROMPT, DEFAULT_SUMMARIZATION_THRESHOLD, DeepAgent, type DeepAgentEvent, type DeepAgentState, type DoneEvent, type DynamicApprovalConfig, EXECUTE_SYSTEM_PROMPT, type EditResult, type ErrorEvent, type EventCallback, type EvictOptions, type EvictResult, type ExecuteFinishEvent, type ExecuteResponse, type ExecuteStartEvent, FILESYSTEM_SYSTEM_PROMPT, type FetchUrlFinishEvent, type FetchUrlStartEvent, type FileData, type FileEditedEvent, type FileInfo, FileSaver, FileSaverOptions, type FileWriteStartEvent, type FileWrittenEvent, FilesystemBackend, type GrepMatch, type HttpRequestFinishEvent, type HttpRequestStartEvent, InMemoryStore, InterruptData, type InterruptOnConfig, type KeyValueStore, KeyValueStoreSaver, KeyValueStoreSaverOptions, type LanguageModelMiddleware, LocalSandbox, type LocalSandboxOptions, MemorySaver, PersistentBackend, type PersistentBackendOptions, ResumeDecision, ResumeOptions, type SandboxBackendProtocol, type SkillLoadOptions, type SkillMetadata, StateBackend, type StepFinishEvent, type StepStartEvent, type StructuredAgentResult, type SubAgent, type SubagentFinishEvent, type SubagentStartEvent, type SummarizationConfig, type SummarizationOptions, type SummarizationResult, TASK_SYSTEM_PROMPT, TODO_SYSTEM_PROMPT, type TextEvent, type TodoItem, type TodosChangedEvent, type ToolCallEvent, ToolLoopAgent, type ToolResultEvent, type WebSearchFinishEvent, type WebSearchStartEvent, type WriteResult, createAgentMemoryMiddleware, createDeepAgent, createEditFileTool, createExecuteTool, createExecuteToolFromBackend, createFetchUrlTool, createFilesystemTools, createGlobTool, createGrepTool, createHttpRequestTool, createLsTool, createReadFileTool, createSubagentTool, createTodosTool, createToolResultWrapper, createWebSearchTool, createWebTools, createWriteFileTool, edit_file, estimateMessagesTokens, estimateTokens, eventHasStructuredOutput, evictToolResult, execute, fetch_url, findGitRoot, getEventOutput, getStructuredOutput, getTaskToolDescription, glob, grep, hasDanglingToolCalls, hasStructuredOutput, hasToolCall, htmlToMarkdown, http_request, isSandboxBackend, listSkills, ls, needsSummarization, parseSkillMetadata, patchToolCalls, read_file, shouldEvict, stepCountIs, summarizeIfNeeded, web_search, wrapLanguageModel, write_file, write_todos };
|
|
1529
|
+
export { type AgentMemoryOptions, type ApprovalRequestedEvent, type ApprovalResponseEvent, BASE_PROMPT, type BackendFactory, type BackendProtocol, BaseCheckpointSaver, BaseSandbox, Checkpoint, type CheckpointLoadedEvent, type CheckpointSavedEvent, CheckpointSaverOptions, CompositeBackend, type CreateDeepAgentParams, type CreateExecuteToolOptions, type CreateSubagentToolOptions, type CreateWebToolsOptions, DEFAULT_EVICTION_TOKEN_LIMIT, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_KEEP_MESSAGES, DEFAULT_SUBAGENT_PROMPT, DEFAULT_SUMMARIZATION_THRESHOLD, DaytonaBackend, type DaytonaBackendOptions, DeepAgent, type DeepAgentEvent, type DeepAgentState, type DoneEvent, type DynamicApprovalConfig, E2BBackend, type E2BBackendOptions, EXECUTE_SYSTEM_PROMPT, type EditResult, type ErrorEvent, type EventCallback, type EvictOptions, type EvictResult, type ExecuteFinishEvent, type ExecuteResponse, type ExecuteStartEvent, FILESYSTEM_SYSTEM_PROMPT, type FetchUrlFinishEvent, type FetchUrlStartEvent, type FileData, type FileDownloadResponse, type FileEditedEvent, type FileInfo, type FileOperationError, FileSaver, FileSaverOptions, type FileUploadResponse, type FileWriteStartEvent, type FileWrittenEvent, FilesystemBackend, type GrepMatch, type HttpRequestFinishEvent, type HttpRequestStartEvent, InMemoryStore, InterruptData, type InterruptOnConfig, type KeyValueStore, KeyValueStoreSaver, KeyValueStoreSaverOptions, type LanguageModelMiddleware, LocalSandbox, type LocalSandboxOptions, MemorySaver, ModalBackend, type ModalBackendOptions, PersistentBackend, type PersistentBackendOptions, ResumeDecision, ResumeOptions, RunloopBackend, type RunloopBackendOptions, type SandboxBackendProtocol, type SkillLoadOptions, type SkillMetadata, StateBackend, type StepFinishEvent, type StepStartEvent, type StructuredAgentResult, type SubAgent, type SubagentFinishEvent, type SubagentStartEvent, type SummarizationConfig, type SummarizationOptions, type SummarizationResult, TASK_SYSTEM_PROMPT, TODO_SYSTEM_PROMPT, type TextEvent, type TodoItem, type TodosChangedEvent, type ToolCallEvent, ToolLoopAgent, type ToolResultEvent, type WebSearchFinishEvent, type WebSearchStartEvent, type WriteResult, createAgentMemoryMiddleware, createDeepAgent, createE2BBackend, createEditFileTool, createExecuteTool, createExecuteToolFromBackend, createFetchUrlTool, createFilesystemTools, createGlobTool, createGrepTool, createHttpRequestTool, createLsTool, createModalBackend, createReadFileTool, createSubagentTool, createTodosTool, createToolResultWrapper, createWebSearchTool, createWebTools, createWriteFileTool, edit_file, estimateMessagesTokens, estimateTokens, eventHasStructuredOutput, evictToolResult, execute, fetch_url, findGitRoot, getEventOutput, getStructuredOutput, getTaskToolDescription, glob, grep, hasDanglingToolCalls, hasStructuredOutput, hasToolCall, htmlToMarkdown, http_request, isSandboxBackend, listSkills, ls, needsSummarization, parseSkillMetadata, patchToolCalls, read_file, shouldEvict, stepCountIs, summarizeIfNeeded, web_search, wrapLanguageModel, write_file, write_todos };
|
|
1233
1530
|
//# sourceMappingURL=index.d.mts.map
|