Redis integrations for Google's Agent Development Kit (ADK)
Project description
×
Redis Integrations for Google Agent Development Kit
adk-redis is the Redis layer for Google ADK agents. It implements ADK's BaseMemoryService, BaseSessionService, and BaseTool interfaces against Redis, RedisVL, Redis Agent Memory, and the Redis Agent Memory Server. It also ships MCP toolset helpers and semantic-cache providers.
| Surface | What you get | Backed by |
|---|---|---|
| Sessions | BaseSessionService with durable conversation state |
Redis Agent Memory or Agent Memory Server |
| Long-term memory | BaseMemoryService with semantic search |
Redis Agent Memory or Agent Memory Server |
| Memory tools | LLM-controlled memory CRUD operations | Redis Agent Memory or Agent Memory Server |
| Search tools | Vector, hybrid, range, text, and SQL search as BaseTool subclasses |
RedisVL |
| MCP search | search-records / upsert-records via ADK's native McpToolset |
rvl mcp server |
| Semantic cache | Skip repeat LLM calls by semantic similarity | RedisVL or Redis LangCache |
Installation
pip install adk-redis
Optional extras:
pip install 'adk-redis[memory]' # sessions + long-term memory services
pip install 'adk-redis[search]' # RedisVL-backed search tools
pip install 'adk-redis[sql]' # RedisSQLSearchTool
pip install 'adk-redis[langcache]' # managed semantic cache provider
pip install 'adk-redis[all]' # everything above
Memory backends are selected with backend:
| Backend | Use when | Client |
|---|---|---|
redis-agent-memory |
You want Redis Agent Memory managed by Redis or the Redis Agent Memory data plane | redis-agent-memory |
opensource-agent-memory |
You want the open source self-hosted Agent Memory Server | agent-memory-client |
Quick start
Prerequisites: Python 3.10+, Redis 8.4+, and one memory backend. See the Quickstart for full setup steps.
from google.adk import Agent
from google.adk.runners import Runner
from adk_redis import (
RedisLongTermMemoryService,
RedisLongTermMemoryServiceConfig,
RedisWorkingMemorySessionService,
RedisWorkingMemorySessionServiceConfig,
)
session_service = RedisWorkingMemorySessionService(
config=RedisWorkingMemorySessionServiceConfig(
backend="redis-agent-memory",
api_base_url="http://localhost:8088",
api_key="...",
store_id="...",
default_namespace="my_app",
),
)
memory_service = RedisLongTermMemoryService(
config=RedisLongTermMemoryServiceConfig(
backend="redis-agent-memory",
api_base_url="http://localhost:8088",
api_key="...",
store_id="...",
default_namespace="my_app",
),
)
agent = Agent(
model="gemini-2.5-flash",
name="memory_agent",
instruction="You are a helpful assistant with long-term memory.",
)
runner = Runner(
app_name="my_app",
agent=agent,
session_service=session_service,
memory_service=memory_service,
)
For the open source self-hosted Agent Memory Server, set
backend="opensource-agent-memory" and omit api_key and store_id unless your
server requires them.
→ More examples: search tools, MCP search, semantic caching
Examples
Each example ships with a README and .env.example. Memory and session
examples that register services through get_service_registry() run via
python main.py; tools-only and search examples run via adk web. See each
example's README and the Examples index for the runner and backend each uses.
| Category | Examples |
|---|---|
| Memory and sessions | managed_memory_quickstart · simple_redis_memory · travel_agent_memory_hybrid · travel_agent_memory_tools · fitness_coach_mcp |
| Search | redis_search_tools · redis_sql_search · redisvl_mcp_search |
| Caching | semantic_cache · langcache_cache |
Development
git clone https://github.com/redis-developer/adk-redis.git
cd adk-redis
make dev # install with all extras + dev deps
make check # format, lint, type-check, and test
See CONTRIBUTING.md for the full guide.
Contributing
Open an issue or submit a PR following CONTRIBUTING.md.
License
Apache 2.0. See LICENSE.
Links
- Documentation: concepts, how-to guides, API reference
- Google ADK · Agent Memory Server · RedisVL · Redis LangCache
- ADK + Redis on redis.io
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adk_redis-0.0.7.tar.gz.
File metadata
- Download URL: adk_redis-0.0.7.tar.gz
- Upload date:
- Size: 41.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1532696db80b0c0fae9f7636d6cecc48aa85345a70e740d3716efff3a54f55ea
|
|
| MD5 |
31fb5b46e9b7324de6287309447eacf0
|
|
| BLAKE2b-256 |
526471efe495c54b7f01f7931d2eef6be76f0efe2b2e71196df7d7a4b39583b6
|
Provenance
The following attestation bundles were made for adk_redis-0.0.7.tar.gz:
Publisher:
publish.yml on redis-developer/adk-redis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adk_redis-0.0.7.tar.gz -
Subject digest:
1532696db80b0c0fae9f7636d6cecc48aa85345a70e740d3716efff3a54f55ea - Sigstore transparency entry: 1862616560
- Sigstore integration time:
-
Permalink:
redis-developer/adk-redis@235703f591636bbf50333ef78a7d357dc1886478 -
Branch / Tag:
refs/tags/0.0.7 - Owner: https://github.com/redis-developer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@235703f591636bbf50333ef78a7d357dc1886478 -
Trigger Event:
release
-
Statement type:
File details
Details for the file adk_redis-0.0.7-py3-none-any.whl.
File metadata
- Download URL: adk_redis-0.0.7-py3-none-any.whl
- Upload date:
- Size: 73.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce1b89bf87297df380d986d1827406b67aa7eb8fd80748455dc590c5d47a3ccf
|
|
| MD5 |
c5803bee68276b6fc39fbcbf2ee3fdd2
|
|
| BLAKE2b-256 |
8b602d99d35c18a587e779a5f861374445007d984f727a4f5dff1bbf58b3a47b
|
Provenance
The following attestation bundles were made for adk_redis-0.0.7-py3-none-any.whl:
Publisher:
publish.yml on redis-developer/adk-redis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
adk_redis-0.0.7-py3-none-any.whl -
Subject digest:
ce1b89bf87297df380d986d1827406b67aa7eb8fd80748455dc590c5d47a3ccf - Sigstore transparency entry: 1862616627
- Sigstore integration time:
-
Permalink:
redis-developer/adk-redis@235703f591636bbf50333ef78a7d357dc1886478 -
Branch / Tag:
refs/tags/0.0.7 - Owner: https://github.com/redis-developer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@235703f591636bbf50333ef78a7d357dc1886478 -
Trigger Event:
release
-
Statement type: