Skip to main content

AgentKernel MongoDB Session Store

agentkernel-mongo is an extension package for the agentkernel framework. It provides a persistent, scalable, and production-ready session store using MongoDB as the backend.

When installed, this package automatically registers itself with the agentkernel framework, allowing you to switch session storage from the default in_memory or redis to mongodb with a simple configuration change.

This package uses MongoDB's native TTL (Time-To-Live) indexing feature to automatically purge stale sessions, ensuring your database remains clean and efficient.

Installation

  1. As a pip extra:
pip install agentkernel[mongo]
  1. As a standalone package (if you already have agentkernel installed):
pip install agentkernel-mongo

This will automatically install the package and its required dependencies, pymongo.

Configuration

This package is designed to work seamlessly with agentkernel's configuration system.

Once installed, you can enable the MongoDB session store by modifying your config.yaml (or equivalent configuration file) for your agentkernel application.

Example config.yaml

# ... other agentkernel configurations ...

session:
  # 1. Set the type to 'mongo'
  type: mongo

  # 2. Add the 'mongo' configuration block
  mongo:
    url: "mongodb://localhost:27017/"
    database: "agent_sessions"
    collection: "sessions"
    ttl: 604800 # Session TTL in seconds (default: 7 days)

# ... other configurations ...

License

This package is licensed under the MIT.

Metadata

Release files for agentkernel-mongo 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentkernel-mongo 0.2.2
File Size Uploaded Provenance Actions
agentkernel_mongo-0.2.2.tar.gz 21.3 kB Without provenance Details for agentkernel_mongo-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentkernel-mongo 0.2.2
File Interpreter ABI Platform Actions
agentkernel_mongo-0.2.2-py3-none-any.whl Python 3 none any Details for agentkernel_mongo-0.2.2-py3-none-any.whl

Total release size: 26.8 kB

Release files / agentkernel_mongo-0.2.2.tar.gz

Download URL agentkernel_mongo-0.2.2.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
90c52fe5f324c6ea6049886d964248e70f4115d3220b5eb0eb87987774a7a27f
BLAKE2b-256 checksum
How to use checksums
3dd30e99b8e5752f16e180b52ceaed601223916898232ed0bbbb8451f572802c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / agentkernel_mongo-0.2.2-py3-none-any.whl

Download URL agentkernel_mongo-0.2.2-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1205f4828f39080ea6f53d9c4988f7c520a0ee0023f3f5f5b2d8c719d7f3bf9b
BLAKE2b-256 checksum
How to use checksums
bcc4ddf8ac852c17bd9a6e4fa2421e55f22489d62d403fec3ccc157ae8969761
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for agentkernel-mongo 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page