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.3.tar.gz (12.3 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.3.tar.gz.

File metadata

  • Download URL: agentforge_chat_history_postgres-0.2.3.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentforge_chat_history_postgres-0.2.3.tar.gz
Algorithm Hash digest
SHA256 b0ba84270acb404580b667c999c52f8ad30d21692270d58c971017a64a0a3cc3
MD5 4e6f337bf70aaeb9d3aa18eefbe84abf
BLAKE2b-256 9dda3705c61998d2f08490fc932636ff6ca404d331d32275e602dd52ef0eb191

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentforge_chat_history_postgres-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentforge_chat_history_postgres-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 161b55574ffa843d4b8545067bbaa70ad9584ebc14dbf7b8d9c2a7ce54b3b3d7
MD5 8c0073f3805aacb2788be518f2ffebd4
BLAKE2b-256 9c9b8201badfd61642a0721cf8dbc3962ff54011f117be82336a6915cdf25093

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