Skip to main content

Chat-agent runtime (ChatSession + history drivers + truncation) for AgentForge

Project description

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)

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-0.3.1.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentforge_chat-0.3.1-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_chat-0.3.1.tar.gz.

File metadata

  • Download URL: agentforge_chat-0.3.1.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentforge_chat-0.3.1.tar.gz
Algorithm Hash digest
SHA256 355d9636a58402858a4d7020ed5cb322641c41677925f046b345e8784ca0a5d4
MD5 82e93a75d5b9f278e2e35adf238ff1ae
BLAKE2b-256 5e314017d97f2528a5789711fea21c7b95ef120c941fba5dd8bd792879b5acea

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: agentforge_chat-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 27.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentforge_chat-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33951175ece5dee78b0dd3c8022d620c3df7f3642cd3fc6a9e0e0c44e1ac6d49
MD5 abb49e851ca8472b7c424433c8e4263d
BLAKE2b-256 7fdcee94305099547339177cf0b4c2583a700dcce059e0ad2cbba3a6b8c9be29

See more details on using hashes here.

Provenance

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