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
# or, with the SQLite driver pre-pulled:
pip install "agentforge-chat[sqlite]"

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.2.3.tar.gz (27.2 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.2.3-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentforge_chat-0.2.3.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for agentforge_chat-0.2.3.tar.gz
Algorithm Hash digest
SHA256 1923118ddc2ff224f23e9e6555fef9542098d8b2aab75d25cc1e4edc526603a5
MD5 241eec189969c28171800cf839a713c0
BLAKE2b-256 d785c1573f8f04e351f52e9cfa88adbf11412016920821e1e0e54759b803f600

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentforge_chat-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d63b2862499ef55ac283134b8655cf840f5b7f412a2d705ad22034440f384103
MD5 f3e463a2a0a278bd06b5472ea905d747
BLAKE2b-256 6341d87bcad8cfb283184e149ad6ec0653e71ad3aa3daccae29833a6145a827e

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