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: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
- Add Tool: Stores data in cognee’s knowledge graph with embeddings
- Search Tool: Retrieves relevant information via cognee’s recall pipeline
- Auto-Processing: cognee extracts entities, relationships, and context automatically
- Session Scoping: Sessionized tools filter data by session ID; non-sessionized tools access all data
Use Cases
Knowledge Accumulation
Knowledge Accumulation
Build domain knowledge incrementally over multiple sessions:
Context-Aware Assistance
Context-Aware Assistance
Maintain user context across work sessions:
Multi-Tenant Applications
Multi-Tenant Applications
Isolate data per user/organization while sharing global knowledge:
Multi-Agent Workflows
Multi-Agent Workflows
Share knowledge between specialized agents:
GitHub Repository
View source code and examples
Examples
Runnable example scripts