Observed since 20 Oct, 19:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A project to integrate together Agent Development Kit (ADK) with MongoDB session management as backend storage.
A session management library for the Google ADK framework that uses MongoDB as a backend.
This package provides a MongodbSessionService that implements the google.adk.sessions.base_session_service.BaseSessionService abstract base class. It allows you to store and manage session state in a MongoDB database, fully replicating the three-tiered state management (app, user, and session) found in the core ADK session services.
You can install the package from PyPI:
pip install adk-mongodb-session
First, instantiate the MongodbSessionService with your MongoDB connection details.
import asyncio
from adk_mongodb_session.mongodb.sessions import MongodbSessionService
# Initialize the service
session_service = MongodbSessionService(
db_url="mongodb://localhost:27017/",
database="my_adk_agent_db",
collection_prefix="sessions" # This will create sessions_sessions, sessions_app_states, etc.
)
# ... and then use it in your async context
example_session = await session_service.create_session(
app_name="my_app",
user_id="example_user",
state={"initial_key": "initial_value"} # State can be initialized
)
For development, clone the repository and install it in editable mode with the testing dependencies:
git clone https://github.com/your-username/adk-mongodb-session.git
cd adk-mongodb-session
pip install -e ".[test]"
Then, run the tests using unittest:
python -m unittest discover tests
Contributions are welcome! Please see the CONTRIBUTING.md file for details on how to report bugs, suggest enhancements, and submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.9 | 11 Oct 2025 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:ed79a72de11b2847ffee492675969875743a6f64b515485417e9c3e776637932