Integrations
CrewAI
Give CrewAI agents shared long-term memory and CortexDB-backed tools.
CortexDB gives a CrewAI crew a shared, persistent memory and search/store tools.
Install
pip install cortexdbai[crewai]Crew memory + tools
from cortexdb import Cortex
from cortexdb.integrations.crewai import CortexDBCrewMemory, CortexDBSearchTool, CortexDBStoreTool
client = Cortex(api_url="https://api-v1.cortexdb.ai", actor="agent:researcher",
bearer=os.environ["CORTEX_TOKEN"])
scope = "org:acme/agent:researcher"
memory = CortexDBCrewMemory(client=client, scope=scope)
tools = [CortexDBSearchTool(client=client, scope=scope),
CortexDBStoreTool(client=client, scope=scope)]
crew = Crew(agents=[...], tasks=[...], memory=memory)No modality= when capturing manually
If you capture with the SDK directly, experience() has no modality= keyword — it infers
modality from the content (use text= / role=). Older snippets showed
experience(modality="tool_result"), which raises TypeError. See the
Python SDK.