Install any skill in seconds. Free to start, no credit card required.
Get Started Free →majiayu000/deepagents-memory
在 Deep Agents 中实现长期内存,使用 StoreBackend、CompositeBackend 和 InMemoryStore 进行跨会话的持久化数据存储。
Passed 21 of 22 test cases with the skill, and 13 of 22 without it.
and 5 more in the full report
8 fixed13 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
We have a short-lived automation task in TypeScript where no file state or knowledge should be retained after the agent execution finishes. Which DeepAgents backend class should be used as the root backend for strictly single-session ephemeral operations?
| Checked | Without skill | With skill |
|---|---|---|
| The response specifies StateBackend as the appropriate backend for single-session ephemeral state. | Missed | Passed |
The instructions your model reads when the skill loads.
短期(StateBackend):仅单会话 长期(StoreBackend):跨会话持久化 混合(CompositeBackend):两者结合
import { createDeepAgent, CompositeBackend, StateBackend, StoreBackend } from "deepagents";
import { InMemoryStore } from "@langchain/langgraph";
const store = new InMemoryStore();
const agent = await createDeepAgent({
backend: (config) => new CompositeBackend(
new StateBackend(config),
{ "/memories/": new StoreBackend(config) }
),
store
});
// /memories/* 文件跨会话持久化
// 其他文件是临时的
import { createDeepAgent, CompositeBackend, StateBackend, StoreBackend } from "deepagents";
import { InMemoryStore } from "@langchain/langgraph";
const store = new InMemoryStore();
const agent = await createDeepAgent({
backend: (config) => new CompositeBackend(
test cases passed, vs 13 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.