fitness-auto-adjust
训练自适应双 Agent(基于 ACPs 智能体互联协议 / acps-sdk 2.1.0)。
架构
| Agent | 角色 | 职责 |
|---|---|---|
| 身体状态 Agent | Leader(客户端) | 采集疲惫程度、心率反馈、伤病提醒;持续跟踪身体感受,识别高负荷风险信号 |
| 训练规划 Agent | Partner(服务端) | 修改训练强度、更换高冲击动作、安排休息日;收到降负荷信号时及时下调训练量 |
两个 Agent 通过 ACPs AIP v2 RPC(AipRpcClient + add_aip_rpc_router)互联。
安装
pip install fitness-auto-adjust
# 使用 serve 子命令需安装服务端依赖
pip install "fitness-auto-adjust[server]"
快速开始
一键演示(本地启动规划 Agent + 状态 Agent 发送示例反馈):
fitness-auto-adjust demo
仅启动训练规划 Agent 服务:
fitness-auto-adjust serve --port 8836
从身体状态 Agent 同步反馈:
fitness-auto-adjust adjust --url http://127.0.0.1:8836/aip/rpc \
--fatigue 9 --heart-rate 158 --injuries 膝盖不适 --previous 7 \
--actions 跑步 深蹲跳 高强度间歇
设计边界
- 降负荷触发条件:疲惫 ≥8、心率 ≥150、存在伤病提醒,或疲惫加重且 ≥6。
- 降负荷时:强度减半、心率控制轻松区间,高冲击动作换低冲击替代(跑步→快走等),安排休息日。
- 身体反馈平稳且疲惫下降时可小幅渐进(每周增幅 ≤10%)。
- 不含姓名/账号等身份字段,输出为训练参考,不替代专业教练或医嘱;持续疼痛、胸闷眩晕请立即停止并就医。
许可
MIT
Metadata
Release files for fitness-auto-adjust 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fitness_auto_adjust-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for fitness_auto_adjust-1.0.1-py3-none-any.whl |
Release files / fitness_auto_adjust-1.0.1-py3-none-any.whl
| Download URL | fitness_auto_adjust-1.0.1-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5be31033fb29b9443f6ffdbb2db5232c25d0c3519aa44a2a99253e792f91bb62
|
|
BLAKE2b-256 checksum How to use checksums |
38165f69355d6d575b1114259818d1f2ad6a58a4bdb60e84b227140f82183c06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.1
|
Security for fitness-auto-adjust 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.