Skip to main content

adk-session-services

Session service implementations for Google's Agent Development Kit (ADK). Provides persistent session storage backends as drop-in replacements for ADK's BaseSessionService.

Features

  • Redis — Persistent session storage via Redis with support for app-level and user-level state layering.
  • Firestore — (Planned) Persistent session storage via Google Cloud Firestore.

Installation

pip install adk-session-services

Quick Start

Redis

from adk_session_services.redis_session import RedisSessionService

service = RedisSessionService("redis://localhost:6379")

session = await service.create_session(
    app_name="my-app",
    user_id="user-123",
)

Redis Key Schema

All keys are prefixed with adk:sessions::

Key pattern Type Purpose
{app}:{user}:{session}:meta Hash Session metadata
{app}:{user}:{session}:state String (JSON) Session state dict
{app}:{user}:{session}:events List (JSON) Ordered event log
{app}:{user}:sessions Set Session IDs per user/app
{app}:app_state Hash App-level state (shared across users)
{app}:{user}:user_state Hash User-level state (shared across sessions)

Development

# Install with dev dependencies
pip install -e ".[dev]"

# Install with test dependencies
pip install -e ".[test]"

# Run tests
pytest

# Format
black src/ && isort src/

# Type check
mypy src/

License

MIT

Release files for adk-session-services 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adk-session-services 0.1.4
File Size Uploaded
adk_session_services-0.1.4.tar.gz 235.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adk-session-services 0.1.4
File Interpreter ABI Platform
adk_session_services-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 241.2 kB

Release files / adk_session_services-0.1.4.tar.gz

Download URL adk_session_services-0.1.4.tar.gz
Size 235.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6ad0ad43cfeeea5ab474c999ce9c0c5bf6abd1c591180b95efe82352b551d984
BLAKE2b-256 checksum
How to use checksums
ed2e6c01065bba39d52e3b4ad19c074458b413258355ef5bb01ddb1022221b1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 6, 2026.

Transparency log

Release files / adk_session_services-0.1.4-py3-none-any.whl

Download URL adk_session_services-0.1.4-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f0464b5163957463e4e384f9690d4d11de07cee6c5a272e39c6b62d26e1856c
BLAKE2b-256 checksum
How to use checksums
18b091591e1a1f0c31db3eb836fa0d7d7079a1ddce46afb2e746e9f29dda38b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release 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