Skip to main content

Redis × ADK

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, Redis Vector Library, Redis Agent Memory. 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

Full documentation


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

The memory extra installs redis-agent-memory>=0.2.0 for the managed backend.


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,
    RedisSessionMemoryService,
    RedisSessionMemoryServiceConfig,
)

session_service = RedisSessionMemoryService(
    config=RedisSessionMemoryServiceConfig(
        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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adk_redis-0.0.9.tar.gz (44.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adk_redis-0.0.9-py3-none-any.whl (77.6 kB view details)

Uploaded Python 3

File details

Details for the file adk_redis-0.0.9.tar.gz.

File metadata

  • Download URL: adk_redis-0.0.9.tar.gz
  • Upload date:
  • Size: 44.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for adk_redis-0.0.9.tar.gz
Algorithm Hash digest
SHA256 00aa9df79e9d06a2aff38e92596092d2b00f90e55f40513e12369282125a54c9
MD5 6dec708293d673c179c5be7cdef556af
BLAKE2b-256 9446b2c6b7054c56d83447fce8ea3048cd830e0921755331c7ccca5c40168712

See more details on using hashes here.

Provenance

The following attestation bundles were made for adk_redis-0.0.9.tar.gz:

Publisher: publish.yml on redis-developer/adk-redis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file adk_redis-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: adk_redis-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 77.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for adk_redis-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f0f7d083c5931588b219d8ce43a0902c138a0183ca1a6e884008277992f5d38f
MD5 82436c3176d0f9137745d6df56acd827
BLAKE2b-256 b9ff6a244b6b9ca69921e6a3fbf02cf76edcc1901ea8f32637ddca0baa595b69

See more details on using hashes here.

Provenance

The following attestation bundles were made for adk_redis-0.0.9-py3-none-any.whl:

Publisher: publish.yml on redis-developer/adk-redis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.0.10

2 files

This release

0.0.9 This release

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page