Domain-agnostic chat agent with Tool-Use loop
Project description
chat-agent
Domain-agnostic Chat Agent with Tool-Use loop — platform package per ADR-034 §3.
Core Components
- ChatAgent: Core Tool-Use loop (LLM → tool calls → execute → LLM)
- DomainToolkit: ABC for app-specific tool collections
- SessionBackend: Protocol for pluggable session storage (InMemory, Redis)
- ToolkitRegistry: Global registry for toolkit discovery
Installation
pip install -e ".[dev]"
Usage
from chat_agent import ChatAgent, InMemorySessionBackend
agent = ChatAgent(
toolkit=MyToolkit(),
completion=my_llm_client,
session_backend=InMemorySessionBackend(),
system_prompt="You are a helpful assistant.",
)
response = await agent.chat(
session_id="user-123",
user_message="How many rooms are on floor 2?",
tenant_id="tenant-abc",
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iil_chat_agent-0.1.0.tar.gz
(9.4 kB
view details)
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 iil_chat_agent-0.1.0.tar.gz.
File metadata
- Download URL: iil_chat_agent-0.1.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f9e4fc77d27450823c8fee6bbd6b3bee09b67b997f47e4239007914bd115f65
|
|
| MD5 |
c4908046482ecf1aa9c766ef3496ca22
|
|
| BLAKE2b-256 |
b446ee4943c8cbc823ab42b9c5b868fd372eded42110a6d8d31be879db7a473a
|
File details
Details for the file iil_chat_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iil_chat_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ec76e10f2b011a6415d60631d3793864a503d43e69d1eb1ff467566fc33462
|
|
| MD5 |
06e232b4185e72e3d29d8e79c2b493ea
|
|
| BLAKE2b-256 |
2e46074bf44530937505b20e78d697f793f4df460db057269ab1dbf61a51c5bc
|