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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentforge_chat-0.4.0.tar.gz.
File metadata
- Download URL: agentforge_chat-0.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be1123e315ebf32fa7abdf9c3a95bb75d885bf8c07ec8cf879886d9328462501
|
|
| MD5 |
f065a8d6f31f86ef7ebacab70a046cda
|
|
| BLAKE2b-256 |
3c2f669adfde756f0f2eba5d8d98c4fcda549be86a7834535597af572946ca0c
|
Provenance
The following attestation bundles were made for agentforge_chat-0.4.0.tar.gz:
Publisher:
release.yml on Scaffoldic/agentforge-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentforge_chat-0.4.0.tar.gz -
Subject digest:
be1123e315ebf32fa7abdf9c3a95bb75d885bf8c07ec8cf879886d9328462501 - Sigstore transparency entry: 1940670510
- Sigstore integration time:
-
Permalink:
Scaffoldic/agentforge-py@be9bf8607d24c7e0916e4c6d8d2eb8ce88c3633f -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/Scaffoldic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@be9bf8607d24c7e0916e4c6d8d2eb8ce88c3633f -
Trigger Event:
push
-
Statement type:
File details
Details for the file agentforge_chat-0.4.0-py3-none-any.whl.
File metadata
- Download URL: agentforge_chat-0.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e778beadaf078c7a82eeff18fb4f519ccbbc106ed95e10fb1fffe1a02a1def1
|
|
| MD5 |
815cbcd8a5ce0a2dcbe01dafba2cbe1e
|
|
| BLAKE2b-256 |
54bd47479323b2022690bb9b09e6193ade69c134c8efbaf75645bc703a788fb8
|
Provenance
The following attestation bundles were made for agentforge_chat-0.4.0-py3-none-any.whl:
Publisher:
release.yml on Scaffoldic/agentforge-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentforge_chat-0.4.0-py3-none-any.whl -
Subject digest:
0e778beadaf078c7a82eeff18fb4f519ccbbc106ed95e10fb1fffe1a02a1def1 - Sigstore transparency entry: 1937991346
- Sigstore integration time:
-
Permalink:
Scaffoldic/agentforge-py@be9bf8607d24c7e0916e4c6d8d2eb8ce88c3633f -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/Scaffoldic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@be9bf8607d24c7e0916e4c6d8d2eb8ce88c3633f -
Trigger Event:
push
-
Statement type: