Install
What’s included
| Class | Purpose |
|---|---|
SynapContextProvider | Injects Synap memory into the agent’s context before each turn, and records turns after |
SynapHistoryProvider | Persists and loads full conversation history via Synap |
Quick start
SynapContextProvider
Called by the MAF runtime at the start of each turn:- Fetches relevant memories for the incoming message
- Appends them as a
systemcontext message - After the agent responds, ingests the full turn back into Synap
SynapHistoryProvider
Persists and reloads the full conversation message list:load(thread_id)— fetches prior messages from Synap and restores them to the MAF threadsave(thread_id, messages)— writes new messages to Synap after each turn
SynapHistoryProvider when you need the LLM to see the full conversation transcript, not just semantic context snippets.
Using both together
SynapContextProvider handles semantic memory injection; SynapHistoryProvider handles verbatim history recall. Use both for agents that need both types of memory.
Next steps
Semantic Kernel
Kernel plugin for Microsoft Semantic Kernel.
NeMo Agent Toolkit
MemoryEditor for NVIDIA NeMo workflows.