Skip to main content

agentforge-chat

Chat-agent runtime for AgentForge: ChatSession, InMemoryChatHistory / SqliteChatHistory drivers, and four truncation strategies (sliding-window, token-budget, summarise-oldest, hybrid).

See docs/features/feat-020-chat-agents.md for the design and runbook.

Install

pip install agentforge-chat

The SQLite history driver (SqliteChatHistory) works out of the box — aiosqlite ships as a hard dependency.

Three-line chat from a one-shot agent

from agentforge import Agent
from agentforge_chat import ChatSession, SqliteChatHistory

agent = Agent(model="anthropic:claude-sonnet-4-6", strategy="react")
session = ChatSession(
    agent=agent,
    history_store=await SqliteChatHistory.from_path("./chat.db"),
)
print((await session.send("Hi")).content)
print((await session.send("What did I just say?")).content)

Metadata

Release files for agentforge-chat 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentforge-chat 0.4.0
File Size Uploaded
agentforge_chat-0.4.0.tar.gz 30.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentforge-chat 0.4.0
File Interpreter ABI Platform
agentforge_chat-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 57.6 kB

Release files / agentforge_chat-0.4.0.tar.gz

Download URL agentforge_chat-0.4.0.tar.gz
Size 30.0 kB
Tags Source
SHA-256 checksum
How to use checksums
be1123e315ebf32fa7abdf9c3a95bb75d885bf8c07ec8cf879886d9328462501
BLAKE2b-256 checksum
How to use checksums
3c2f669adfde756f0f2eba5d8d98c4fcda549be86a7834535597af572946ca0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

Release files / agentforge_chat-0.4.0-py3-none-any.whl

Download URL agentforge_chat-0.4.0-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e778beadaf078c7a82eeff18fb4f519ccbbc106ed95e10fb1fffe1a02a1def1
BLAKE2b-256 checksum
How to use checksums
54bd47479323b2022690bb9b09e6193ade69c134c8efbaf75645bc703a788fb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page