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.2.4.tar.gz (12.5 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.2.4-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for agentforge_chat_history_redis-0.2.4.tar.gz
Algorithm Hash digest
SHA256 9818e710c652876e49e7e2b0ba85fbbe875aff63c9da3180372e666d15c1b1fd
MD5 43300af90268f19688fd9b9bceb1d040
BLAKE2b-256 6925af92130fa75ca26306fcae410bbc60a29ff18b7a6c77b47ae6087000a04d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentforge_chat_history_redis-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0cd72edb77c3578fbc0163745697f3f4c9554259a9fffe3ff86dc6601da520f6
MD5 94aa0bedfd9804fbb811f079e0e54a82
BLAKE2b-256 b6f9d1a437a90b827b0b57754c33cf76d87e769e992b8daa5be957c7438b12cf

See more details on using hashes here.

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