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_KEY for 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.

View on GitHub

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.

View on GitHub

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.

View on GitHub

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.

View on GitHub

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.

View on GitHub

semantic_cache

Capability: Local semantic caching (RedisVL)

Demonstrates LLM response caching and tool result caching using the RedisVLCacheProvider with local embeddings and ADK callbacks.

View on GitHub

langcache_cache

Capability: Managed semantic caching (LangCache)

Uses the managed LangCache service for semantic caching with server-side embeddings. No local vectorizer required.

View on GitHub

Running an example

pip install adk-redis[all]
cd examples/simple_redis_memory
export GOOGLE_API_KEY=your-key
python main.py

More info

RATE THIS PAGE
Back to top ↑