friend-chat-calibrate
基于 智能体互联 SDK (agentcp) 的话术校准双 Agent 系统:
- 话术生成 Agent — 针对朋友发来的消息,产出多版风格各异的回复
- 情绪预估 Agent — 逐一评估每句话带给对方的感受,筛掉生硬/冒犯的表达,挑选自然得体的版本
两个 Agent 通过 ACP 协议互联协作,形成 生成 → 评估 → 筛选 的闭环。
安装
pip install friend-chat-calibrate
快速使用(CLI)
# 方式一:直接输入消息
friend-chat-calibrate "朋友发来:你这周末有空吗?"
# 方式二:指定 LLM API Key(默认使用内置 mock,可切换到真实模型)
friend-chat-calibrate "朋友发来:最近还好吗?" --api-key sk-xxx --model deepseek-chat
作为库使用
from friend_chat_calibrate import calibrate
result = calibrate("朋友发来:你这周末有空吗?")
print("推荐回复:", result.best_reply)
print("全部版本:")
for r in result.all_replies:
print(f" [{r.emotion}] {r.text} (得分 {r.score})")
开发
pip install -e ".[dev]"
python -m build # 生成 dist/*.whl
Metadata
Release files for friend-chat-calibrate 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| friend_chat_calibrate-1.0.1.tar.gz | 13.8 kB | Without provenance | Details for friend_chat_calibrate-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| friend_chat_calibrate-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for friend_chat_calibrate-1.0.1-py3-none-any.whl |
Total release size: 30.2 kB
Release files / friend_chat_calibrate-1.0.1.tar.gz
| Download URL | friend_chat_calibrate-1.0.1.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e65cba662fd305b9d368b5cd7426b00ac46c33df1157e829446d1c2773dfd052
|
|
BLAKE2b-256 checksum How to use checksums |
f7a8288bec0f6aaeaa4bcdc5432edb9c911781711cfffb83980b23aa4460aaca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.2
|
Release files / friend_chat_calibrate-1.0.1-py3-none-any.whl
| Download URL | friend_chat_calibrate-1.0.1-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d07bdfb6390a20746a9d28b9d1119c49b069a559eae3b0833b49adc7b050076d
|
|
BLAKE2b-256 checksum How to use checksums |
65a896dae682ab5a16a6903c4e4cfed3d4866138ceeff4b1b242e0d670e689f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.2
|
Security for friend-chat-calibrate 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.