Ag2 Knowledge And Memory

Persist agent state across runs, shape what the LLM sees per turn, and cap history to fit a context window. Covers `KnowledgeStore` (memory / sqlite / disk / redis), `KnowledgeConfig` (`store=`, `compact=`, `aggregate=`, `bootstrap=`), aggregation strategies (`WorkingMemoryAggregate`, `ConversationSummaryAggregate`), assembly policies (`WorkingMemoryPolicy`, `EpisodicMemoryPolicy`, `ConversationPolicy`, `SlidingWindowPolicy`, `TokenBudgetPolicy`, `AlertPolicy`), and compaction (`TailWindowCompact`, `SummarizeCompact`). Use when the user wants the agent to remember between conversations, manage long histories, or control prompt assembly. Use when this capability is needed.

tomevault-io Updated

File contents

tomevault-io/skills-registry/tree/main/ag2ai--build-with-ag2--build-with-ag2 commit a4d0c25af8

Frequently asked questions

npx skillmds@latest add tomevault-io/ag2-knowledge-and-memory