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.2.4.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.

File details

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

File metadata

File hashes

Hashes for agentforge_chat_history_postgres-0.2.4.tar.gz
Algorithm Hash digest
SHA256 ef8a6ae495e7c1efa994979e8c3ca52e34eb19278631e5151d61f9e4bf18e089
MD5 b5bbce507d6495320dee3803eb67b2ef
BLAKE2b-256 3e4abf284d3338ac10a113f6ede2d7e7fba30db7a86590e36c579cbe33b07e83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentforge_chat_history_postgres-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f14540a7e048944156f0ff561f3e5bc13e14804017a11236aa0a3320eacc736c
MD5 62d5cb3d31bd97d912b8846ac1d62d0f
BLAKE2b-256 db337c5616fe87e9c0ea15cc26459f14cdadbb5a45ee07ad530612ae2dc4ee9f

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