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

File metadata

File hashes

Hashes for agentforge_chat_history_postgres-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1a7ac3b9841dced0c2fb1d438b2fc41909aadcdfb799e95065ca4244816ad43b
MD5 3f4bbb22701fd3d65678f3c4eeceb807
BLAKE2b-256 c597d4a3ee891151a22c433a2271be2c82e33ac645a9b17d723e666251ebc09f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for agentforge_chat_history_postgres-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 173d9d81f76c8e0d0e1b2e5097199fa0730874cdaf55917d7a6af92b24320c0a
MD5 eb8621cae6ac52ce248f3d255b23eb65
BLAKE2b-256 765411d501d465b89ed39f0202e30233eb48823352f0faca4d1caa957756b812

See more details on using hashes here.

Provenance

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