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.3.1.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.3.1.tar.gz.

File metadata

File hashes

Hashes for agentforge_chat_history_postgres-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9830897cc32cd3104d1a56192d0e8a951a81693977d5d8394c00f45bc7bb9aa5
MD5 6a6f2dd287e9948dd04a8b374ae38c8a
BLAKE2b-256 d15bfac5187db60661531cbbee530df1c3e5d7d98fc452ad3125948599c79b1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for agentforge_chat_history_postgres-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5b2720a28da51843eff5c19c71fda1eec860d13470227840d27fad6a33b748d
MD5 b89aba3ec3f55b9188b4b77672172850
BLAKE2b-256 301fa556630f99886b440540e9864dcaed719cbd66448bcd2fb9883994d06cb0

See more details on using hashes here.

Provenance

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