Implementation of `google.adk.sessions.base_session_service.BaseSessionService` for storing session information in MongoDB.
Project description
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
Release history Release notifications | RSS feed
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 google_adk_mongo_session_service-0.0.1.tar.gz.
File metadata
- Download URL: google_adk_mongo_session_service-0.0.1.tar.gz
- Upload date:
- Size: 140.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
080c55d4bf791ba198b7956aaf3e201a6fa65e87b3951fb9508e40df019d6bd4
|
|
| MD5 |
a21282a8f641af4a42eaa669dfe2512f
|
|
| BLAKE2b-256 |
3df118945b670393629f165efb2aaa367c43b61866c13beaa795ad678b29d243
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
google_adk_mongo_session_service-0.0.1.tar.gz -
Subject digest:
080c55d4bf791ba198b7956aaf3e201a6fa65e87b3951fb9508e40df019d6bd4 - Sigstore transparency entry: 907871993
- Sigstore integration time:
-
Permalink:
kirlut/google-adk-mongo-session-service@fa8dfa89d5dd2d4058bfa2a72312b9ff9f216f06 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/kirlut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@fa8dfa89d5dd2d4058bfa2a72312b9ff9f216f06 -
Trigger Event:
push
-
Statement type:
File details
Details for the file google_adk_mongo_session_service-0.0.1-py3-none-any.whl.
File metadata
- Download URL: google_adk_mongo_session_service-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc67ef57fb197353a5965050c3ff60921626bc7b18646f1e59e248cd7119bc01
|
|
| MD5 |
f0f99bcaa303bb6d4009b6772f1a36d4
|
|
| BLAKE2b-256 |
18f2233ebbae10793b1b32726c6b1870f04eb34f4fec62ed6a28617ad2788eb6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
google_adk_mongo_session_service-0.0.1-py3-none-any.whl -
Subject digest:
cc67ef57fb197353a5965050c3ff60921626bc7b18646f1e59e248cd7119bc01 - Sigstore transparency entry: 907871998
- Sigstore integration time:
-
Permalink:
kirlut/google-adk-mongo-session-service@fa8dfa89d5dd2d4058bfa2a72312b9ff9f216f06 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/kirlut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@fa8dfa89d5dd2d4058bfa2a72312b9ff9f216f06 -
Trigger Event:
push
-
Statement type: