Integrations
AutoGen
Wrap a Microsoft AutoGen agent with CortexDB long-term memory.
Microsoft AutoGen agents get persistent, cross-session memory through a CortexDB-backed wrapper.
Install
pip install cortexdbai[autogen]Memory-backed agent
from cortexdb import Cortex
from cortexdb.integrations.autogen import CortexDBAgent
client = Cortex(api_url="https://api-v1.cortexdb.ai", actor="agent:assistant",
bearer=os.environ["CORTEX_TOKEN"])
agent = CortexDBAgent(
name="assistant",
client=client,
scope="org:acme/agent:assistant",
llm_config={"model": "gpt-4o"},
)The wrapper recalls before replying and captures the turn afterward. For the community fork, see AG2.