adk-redis examples
Complete examples for every adk-redis capability.
The adk-redis repository includes seven complete examples. Each focuses on a specific capability.
Prerequisites
All examples require:
- Python 3.10+
- Redis 8.4+:
docker run -d --name redis -p 6379:6379 redis:8.4-alpine - Agent Memory Server (for memory examples): See setup instructions
- API keys: Most examples need a
GOOGLE_API_KEYfor Gemini
simple_redis_memory
Capability: Redis Agent Memory (framework-managed)
Minimal starting point. Wires up RedisWorkingMemorySessionService and RedisLongTermMemoryService with a basic conversational agent. No search tools, no caching: just memory.
travel_agent_memory_hybrid
Capability: Redis Agent Memory + REST tools + web search + planning
The most complete example. Combines framework-managed memory services with LLM-controlled memory tools, web search, itinerary planning, and calendar export. Demonstrates the hybrid integration pattern.
travel_agent_memory_tools
Capability: REST memory tools (LLM-controlled)
Uses REST-based memory tools exclusively, without framework-managed services. The LLM has full control over when to search, create, update, and delete memories.
fitness_coach_mcp
Capability: MCP memory tools
Demonstrates MCP-based memory integration. The agent connects to the Agent Memory Server via SSE and manages semantic and episodic memories for workout tracking.
redis_search_tools
Capability: Vector, hybrid, text, and range search
All four RedisVL search tools plugged into a single agent with a product catalog dataset.
semantic_cache
Capability: Local semantic caching (RedisVL)
Demonstrates LLM response caching and tool result caching using the RedisVLCacheProvider with local embeddings and ADK callbacks.
langcache_cache
Capability: Managed semantic caching (LangCache)
Uses the managed LangCache service for semantic caching with server-side embeddings. No local vectorizer required.
Running an example
pip install adk-redis[all]
cd examples/simple_redis_memory
export GOOGLE_API_KEY=your-key
python main.py
More info
- Car dealership tutorial: Full walkthrough building an agent from scratch
- adk-redis README: Installation and overview