Key concepts
Memory scopes and TTL
Items expire automatically at the end of their scope’s TTL.
Operations
Create a memory store
string
required
Display name for the store.
string
required
One of
TASK, SESSION, AGENT, WORKSPACE.Response
string
Unique store identifier.
string
Display name.
string
The scope this store uses.
string
ISO 8601 creation timestamp.
Write a memory item
string
required
The information to store. Keep items concise and self-contained.
Search memory
string
required
Search query. Length: 1–10,000 characters.
integer
default:"10"
Number of results to return. Range: 1–100.
Reset a memory store
Clears all items from the store without deleting the store itself.Delete a memory store
Errors
Security
Scope selection guide
TASK (24h) — working state for a single job
TASK (24h) — working state for a single job
Use for scratch data that should not outlive the current task: intermediate results, step outputs, flags set during execution. Automatically cleaned up after the task TTL expires, so you never accumulate stale data from past runs.
SESSION (8h) — multi-turn conversation context
SESSION (8h) — multi-turn conversation context
Use for anything that needs to persist across multiple user turns within a session window: conversation history, user preferences stated in this session, in-progress context. Expires when the session ends or after 8 hours, whichever comes first.
AGENT (1 year) — long-term agent knowledge
AGENT (1 year) — long-term agent knowledge
Use when an agent should accumulate knowledge over days, weeks, or months: learned user preferences, recurring patterns, notes the agent builds up over time. Scoped to this agent — other agents cannot read it.
Rate limits
Related pages
Knowledge Stores
Reference content versus accumulated memory.
Context Bundles
Combine knowledge and memory for a run.
Knowledge & Memory
Conceptual overview.
Orchestration
How memory supports running tasks.

