added
Memory Stores API
about 3 hours ago
We've just introduced our new Memory Stores API, enabling persistent, entity-based memory across conversations so your agents can recall context and build more intelligent interactions.
Key Features
Persistent & Isolated Memory
- Entity-based Isolation: Use
entity_id
to scope memory per user, session, or organization. - Multi-Tenant Support: Secure separation of data across entities.
Structured Memory Storage
- Memory Stores: Named containers for storing different types of contextual data.
- Built-in Tools: Automatic read, write, and query operations for seamless integration.
Agent Memory Workflow
- Discover First: Agents must use
retrieve_memory_stores
to discover available memory before interacting with them. - Query Smartly: Once discovered, use
query_memory_store
to fetch relevant information before responding. - System Prompt Guidance: Example:
"Use retrieve_memory_stores to see what memory stores are available, then use query_memory_store to search for relevant information before responding."
Streaming & Entity Tracking
- Streaming Support: Use
entity_id
for real-time memory tracking during ongoing conversations.