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)modality= when capturing manually
If you capture with the SDK directly, use text= / role=; modality defaults to conversation.
experience(modality="tool_result") sets an open-set label. See the
Python SDK.