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.0.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.0-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentforge_chat-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d89fa9961e7c0652e032899528d922666021595a9077b709a578c3b1960bc4c4
MD5 a5dcb58a28fe667893474c1aba410496
BLAKE2b-256 fb459e6eecd0c8fe5d751426b93c2ad585eaffe9a25140712476f5c38a85b336

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: agentforge_chat-0.3.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 795a1cde8971d9708a90b1025be087cc6665b7bdd1d2cd9685c096265108a840
MD5 72c7960579a928841de7ff8ff5693a25
BLAKE2b-256 4fd6d25b707902714e5c8bffd67de266d948f59254c76b84b7e91ac405cf7434

See more details on using hashes here.

Provenance

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