Skip to main content
Give your Google ADK agents cognee’s memory. Store structured knowledge, retrieve via natural language, and maintain context across sessions - all through two async tools.

Why Use This Integration

  • Advanced Memory Features: Structured knowledge graphs with embeddings for multi-hop reasoning
  • Cross-Session Persistence: Memory survives agent restarts and conversation threads
  • Semantic Recall: Natural language queries with graph traversal
  • Session Isolation: Multi-tenant support with per-user data boundaries
  • Native ADK Tools: Works as LongRunningFunctionTool—async-first, production-ready

Installation

Quick Start

Before using the integration, configure your environment variables:
Add memory tools to your Google ADK agent:

Cross-Session Persistence

Memory persists across different agent instances:

Custom Session Management

Control session isolation with custom session IDs:
Sessionized tools scope data to their session ID. Use non-sessionized add_tool and search_tool to access data across all sessions.

How It Works

  1. Add Tool: Stores data in cognee’s knowledge graph with embeddings
  2. Search Tool: Retrieves relevant information via cognee’s recall pipeline
  3. Auto-Processing: cognee extracts entities, relationships, and context automatically
  4. Session Scoping: Sessionized tools filter data by session ID; non-sessionized tools access all data

Use Cases

Build domain knowledge incrementally over multiple sessions:
Maintain user context across work sessions:
Isolate data per user/organization while sharing global knowledge:
Share knowledge between specialized agents:

GitHub Repository

View source code and examples

Examples

Runnable example scripts