Skip to main content

Redis-backed ChatHistoryStore and SessionLock for AgentForge

Project description

agentforge-chat-history-redis

Redis-backed ChatHistoryStore for AgentForge (feat-020 v0.2).

Also ships RedisSessionLock — the cross-process per-session lock used by multi-worker chat-http deployments so a single session can't be processed concurrently across pods.

from agentforge_chat_history_redis import (
    RedisChatHistory,
    redis_session_lock_factory,
)

history = await RedisChatHistory.from_url("redis://localhost:6379")
lock_factory = redis_session_lock_factory("redis://localhost:6379")

Run live integration tests with:

docker run --rm -d -p 6379:6379 redis:7
REDIS_URL=redis://localhost:6379 \
  uv run pytest -m live packages/agentforge-chat-history-redis/

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

agentforge_chat_history_redis-0.4.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

agentforge_chat_history_redis-0.4.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_chat_history_redis-0.4.0.tar.gz.

File metadata

File hashes

Hashes for agentforge_chat_history_redis-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0607ea754bf67d7dfa424aa3d1a5781320b99b06b32d09d71ac3a94f931c992e
MD5 1b1d4381e213a936c39f8dd3a01a269d
BLAKE2b-256 0c70f9fa69f94daf329c3fe05ade3688724cafb1485e26f49e5b491a341767db

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_chat_history_redis-0.4.0.tar.gz:

Publisher: release.yml on Scaffoldic/agentforge-py

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

File details

Details for the file agentforge_chat_history_redis-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_chat_history_redis-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18986355da122ae7167e64ab1d682096a83ae5df0a2599cd046a50725745fdb0
MD5 71bce2314ccdd66527c6e0a2fcf6d2f5
BLAKE2b-256 9bf6683dc5b91b13dd4931e3817ac0ac8335c3a5a881729783c9a21265c0a7e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_chat_history_redis-0.4.0-py3-none-any.whl:

Publisher: release.yml on Scaffoldic/agentforge-py

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