Catalog PyPI
PACKAGE EXPLORERView in registry

adk-session-services

PyPI

A Python package providing additional service implementations for the Google ADK framework (Redis, etc)

adkgoogle-adkredissession-service
Versions collected1
Direct dependencies17From release 0.1.4
Last observed20 Oct, 19:37 UTC

README

Version 0.1.4 documentation

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 patternTypePurpose
{app}:{user}:{session}:metaHashSession metadata
{app}:{user}:{session}:stateString (JSON)Session state dict
{app}:{user}:{session}:eventsList (JSON)Ordered event log
{app}:{user}:sessionsSetSession IDs per user/app
{app}:app_stateHashApp-level state (shared across users)
{app}:{user}:user_stateHashUser-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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.46 Apr 202617

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
tiyee/adk-session-services

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:37 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b4acbd01bf8bad1abcd625ce22db814213a5a3867bf3474ffef1f25038084dfe