Metadata-Version: 2.4
Name: google-adk-mongo-session-service
Version: 0.0.1
Summary: Implementation of `google.adk.sessions.base_session_service.BaseSessionService` for storing session information in MongoDB.
Project-URL: Homepage, https://github.com/kirlut/google-adk-mongo-session-service
Project-URL: Repository, https://github.com/kirlut/google-adk-mongo-session-service
Project-URL: Issues, https://github.com/kirlut/google-adk-mongo-session-service/issues
Author: Kirill Lutcenko
License: MIT License
        
        Copyright (c) 2026 Kirill Lutcenko
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Requires-Python: >=3.13
Requires-Dist: google-adk>=1.23.0
Requires-Dist: pymongo>=4.16.0
Description-Content-Type: text/markdown

[![PyPI version](https://img.shields.io/pypi/v/google-adk-mongo-session-service.svg)](https://pypi.org/project/google-adk-mongo-session-service/)

**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](https://github.com/google/adk) agents so sessions can be backed by MongoDB instead of in-memory/default storage.

## Installation

```bash
pip install google-adk-mongo-session-service
```

## Usage

```python
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/](https://github.com/kirlut/google-adk-mongo-session-service/tree/main/example/) — runnable weather agent with MongoSessionService; see [example/README.md](https://github.com/kirlut/google-adk-mongo-session-service/blob/main/example/README.md) for setup and run instructions.
