CortexDB Docs
Integrations

Google ADK

Add CortexDB memory tools to Google's Agent Development Kit.

CortexDB exposes memory to Google's Agent Development Kit (ADK) as function tools.

Install

pip install cortexdbai[google-adk]

Tools

from cortexdb import Cortex
from cortexdb.integrations.google_adk import (
    cortexdb_store_tool, cortexdb_search_tool,
    cortexdb_forget_tool, get_cortexdb_tools,
)

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

tools = get_cortexdb_tools(client=client, scope=scope)

agent = LlmAgent(name="assistant", model="gemini-2.0-flash", tools=tools)

See also

On this page