mirror of
https://github.com/langchain-ai/deepagentsjs.git
synced 2026-07-23 04:45:27 -04:00
c648cd67b5
* feat(deepagents): add MemoryMiddleware for AGENTS.md support Port of langchain-ai/deepagents#646 to TypeScript. Adds MemoryMiddleware that loads persistent context from AGENTS.md files following the agents.md specification. Unlike skills (which are on-demand), memory is always loaded at agent startup and injected into the system prompt. Changes: - Add createMemoryMiddleware in middleware/memory.ts - Add `memory` parameter to createDeepAgent for automatic middleware setup - Export MemoryMiddleware from package index - Add unit tests for memory loading and prompt injection Usage: const agent = createDeepAgent({ memory: [ "~/.deepagents/AGENTS.md", "./.deepagents/AGENTS.md", ], }); * add example
28 lines
655 B
JSON
28 lines
655 B
JSON
{
|
|
"name": "examples",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"deepagents": "workspace:*",
|
|
"@langchain/anthropic": "^1.3.7",
|
|
"@langchain/core": "^1.1.12",
|
|
"@langchain/langgraph-checkpoint": "^1.0.0",
|
|
"@langchain/openai": "^1.0.0",
|
|
"@langchain/tavily": "^1.2.0",
|
|
"langchain": "^1.0.4",
|
|
"uuid": "^13.0.0",
|
|
"yaml": "^2.8.2",
|
|
"zod": "^4.1.11"
|
|
},
|
|
"devDependencies": {
|
|
"@tsconfig/recommended": "^1.0.10",
|
|
"@types/node": "^25.0.3",
|
|
"@types/uuid": "^11.0.0",
|
|
"dotenv": "^17.2.3",
|
|
"typescript": "^5.9.2"
|
|
}
|
|
}
|