Integrations
Dify
Add CortexDB search and store tools to Dify apps.
CortexDB exposes memory to Dify as store and search tools you can add to an agent or workflow app.
Install
pip install cortexdbai[dify]Tools
import os
from cortexdb.integrations.dify import CortexDBStoreTool, CortexDBSearchTool
scope = "org:acme/user:alice"
conn = dict(api_url="https://api-v1.cortexdb.ai", actor="user:alice",
bearer=os.environ["CORTEX_TOKEN"], scope=scope)
# The Dify tools build their own client from these fields (they take no client= argument)
store = CortexDBStoreTool(**conn)
search = CortexDBSearchTool(**conn)
# register the tools with your Dify custom-tool provider