Install
What’s included
| Export | Purpose |
|---|---|
SynapMemoryEditor | Implements nat.memory.interfaces.MemoryEditor for NAT workflows |
@register_memory | Decorator to register SynapMemoryEditor in NAT’s memory registry |
synap_memory_client | Factory that creates a ready-to-use SynapMemoryEditor from config |
Quick start
MemoryEditor interface
SynapMemoryEditor implements the full MemoryEditor protocol:
| Method | Description |
|---|---|
add_items(items) | Batch-ingest MemoryItem objects into Synap |
search(query, top_k, user_id) | Semantic search, returns scored MemoryItem list |
update_items(items) | Update existing memories by ID |
get_items(user_id, limit) | Retrieve all memories for a user |
YAML configuration
NAT supports declaring memory backends in YAML pipeline configs. RegisterSynapMemoryEditor with the @register_memory decorator:
Factory function
For programmatic setup outside of YAML:synap_memory_client initializes the SDK internally, so you don’t need to manage the SDK lifecycle separately.
Next steps
Semantic Kernel
Plugin for Microsoft Semantic Kernel.
Pydantic AI
Type-safe deps and tools for Pydantic AI.