Skip to main content

Implementation of `google.adk.sessions.base_session_service.BaseSessionService` for storing session information in MongoDB.

Project description

PyPI version

Disclaimer: This code was written with the help of an AI agent and has never been tested in production. Please test it carefully before using it in production.

Implementation of google.adk.sessions.base_session_service.BaseSessionService for storing session information in MongoDB. It plugs into Google ADK agents so sessions can be backed by MongoDB instead of in-memory/default storage.

Installation

pip install google-adk-mongo-session-service

Usage

from google_adk_mongo_session_service import MongoSessionService

session_service = MongoSessionService(conn_string="mongodb://...", db_name="mydb")
# Pass session_service to your Agent / Runner as the session backend

Full example: example/ — runnable weather agent with MongoSessionService; see example/README.md for setup and run instructions.

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

google_adk_mongo_session_service-0.0.1.tar.gz (140.3 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file google_adk_mongo_session_service-0.0.1.tar.gz.

File metadata

File hashes

Hashes for google_adk_mongo_session_service-0.0.1.tar.gz
Algorithm Hash digest
SHA256 080c55d4bf791ba198b7956aaf3e201a6fa65e87b3951fb9508e40df019d6bd4
MD5 a21282a8f641af4a42eaa669dfe2512f
BLAKE2b-256 3df118945b670393629f165efb2aaa367c43b61866c13beaa795ad678b29d243

See more details on using hashes here.

Provenance

The following attestation bundles were made for google_adk_mongo_session_service-0.0.1.tar.gz:

Publisher: publish-to-pypi.yml on kirlut/google-adk-mongo-session-service

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

File details

Details for the file google_adk_mongo_session_service-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for google_adk_mongo_session_service-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc67ef57fb197353a5965050c3ff60921626bc7b18646f1e59e248cd7119bc01
MD5 f0f99bcaa303bb6d4009b6772f1a36d4
BLAKE2b-256 18f2233ebbae10793b1b32726c6b1870f04eb34f4fec62ed6a28617ad2788eb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for google_adk_mongo_session_service-0.0.1-py3-none-any.whl:

Publisher: publish-to-pypi.yml on kirlut/google-adk-mongo-session-service

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page