deepagents 1.7.6 → 1.8.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 +10 -1
- package/dist/index.cjs +943 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +304 -150
- package/dist/index.d.ts +303 -149
- package/dist/index.js +937 -15
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -479,6 +479,7 @@ import {
|
|
|
479
479
|
StateBackend,
|
|
480
480
|
StoreBackend,
|
|
481
481
|
FilesystemBackend,
|
|
482
|
+
LocalShellBackend,
|
|
482
483
|
CompositeBackend,
|
|
483
484
|
} from "deepagents";
|
|
484
485
|
import { MemorySaver } from "@langchain/langgraph";
|
|
@@ -501,8 +502,16 @@ const agent3 = createDeepAgent({
|
|
|
501
502
|
backend: (config) => new FilesystemBackend({ rootDir: "./agent-workspace" }),
|
|
502
503
|
});
|
|
503
504
|
|
|
504
|
-
//
|
|
505
|
+
// LocalShellBackend: Filesystem access + local shell command execution
|
|
505
506
|
const agent4 = createDeepAgent({
|
|
507
|
+
backend: new LocalShellBackend({
|
|
508
|
+
rootDir: "./agent-workspace",
|
|
509
|
+
inheritEnv: true,
|
|
510
|
+
}),
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
// CompositeBackend: Combine multiple backends
|
|
514
|
+
const agent5 = createDeepAgent({
|
|
506
515
|
backend: (config) =>
|
|
507
516
|
new CompositeBackend({
|
|
508
517
|
state: new StateBackend(config),
|