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.3.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.3.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for agentforge_chat_history_redis-0.3.0.tar.gz
Algorithm Hash digest
SHA256 381a7a74b0092ced33c1af786d00cb7b1e88c2254be7005d8954e8d33328406c
MD5 214dee2b679d6898aa35d25912575ebe
BLAKE2b-256 4fdd557e9ecff14e0952b4e8acfcb3d9c0e56bef70ccab41eb281138c1a83269

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_chat_history_redis-0.3.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.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_chat_history_redis-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccb68628f5e695b35d0ab1d70986b7e89d9e51227db7189addaed42879f33908
MD5 967478a56008d0681b198034440eb143
BLAKE2b-256 9c8819e839bf4bcd5d0a5d894d2c0ef35598ab8f2e810320f8b1567828dbdd5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_chat_history_redis-0.3.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