Skip to main content

Postgres-backed ChatHistoryStore for AgentForge

Project description

agentforge-chat-history-postgres

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

Sister package to agentforge-memory-postgres. Drop-in replacement for SqliteChatHistory when chat sessions need multi-writer concurrency or managed-database guarantees (Neon / Supabase / RDS / Cloud SQL).

from agentforge_chat_history_postgres import PostgresChatHistory

history = await PostgresChatHistory.from_dsn(
    "postgresql://user:pw@host:5432/agentforge"
)

Implements the locked ChatHistoryStore contract from agentforge-core plus init_schema() that creates the chat_sessions + chat_turns tables idempotently (CREATE TABLE IF NOT EXISTS).

Run live integration tests with:

RUN_LIVE_POSTGRES_DSN=postgresql://postgres:test@localhost:5432/postgres \
  uv run pytest -m live packages/agentforge-chat-history-postgres/

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_postgres-0.4.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for agentforge_chat_history_postgres-0.4.0.tar.gz
Algorithm Hash digest
SHA256 36bf3dd21eacb94b70baa2c1cfabd720e8bc577c96688587fd7807b2bbddc275
MD5 4aab038f981be519ed15957e587673cf
BLAKE2b-256 d2c9eb1097b7b0bd9b92092b7909269ddc1a454bad32d0bafbdbe6498f040519

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_chat_history_postgres-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_postgres-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_chat_history_postgres-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ccf1efc20fb24abe9f1d562a7a08cdfd6ac5d9bf8e49f914ef73a5a5c3d2a96
MD5 4df75588b06fa3ebbb4157bef126eaac
BLAKE2b-256 ad3cc67f15e1a87d5db0cb44c64c12bdb4e5d00ea3e98ff6917bed0587b4c945

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_chat_history_postgres-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