ag2-knowledge-and-memory

Installation
SKILL.md

Knowledge, memory, and context assembly

This skill covers three related primitives that work together:

Primitive Lives in Role
KnowledgeStore autogen.beta.knowledge Path-based persistent storage (memory / sqlite / disk / redis)
Assembly policies autogen.beta.policies Shape (prompts, events) per turn before the LLM call
Aggregation / Compaction autogen.beta.aggregate / .compact Write structured knowledge to the store / trim event history

KnowledgeConfig wires all three onto an Agent via the knowledge= constructor parameter; assembly policies go via assembly=.

When to use what

Installs
19
GitHub Stars
3
First Seen
May 8, 2026
ag2-knowledge-and-memory — ag2ai/ag2-skills