CortexDB Docs
Integrations

ControlFlow

Give ControlFlow tasks and agents CortexDB-backed memory.

CortexDB provides ControlFlow a persistent memory and a task store for durable agent context.

Install

pip install cortexdbai[controlflow]

Memory + task store

from cortexdb import Cortex
from cortexdb.integrations.controlflow import CortexDBMemory, CortexDBTaskStore

client = Cortex(api_url="https://api-v1.cortexdb.ai", actor="agent:planner",
                bearer=os.environ["CORTEX_TOKEN"])
scope = "org:acme/agent:planner"

memory = CortexDBMemory(client=client, scope=scope)
task_store = CortexDBTaskStore(client=client, scope=scope)

See also

On this page