Skip to main content

family-emotion-check

家庭情绪倾听与风险觉察 Agent 系统,基于 acps-sdk 的多智能体协作框架。

简介

当家人产生矛盾、情绪压抑时:

  • 倾听 Agent (ListenerAgent) - 承接倾诉、共情安抚
  • 风险觉察 Agent (RiskDetectorAgent) - 识别委屈、自我否定信号,同步提示倾听 Agent 调整节奏,避免激化矛盾,温和引导表达感受

两个 Agent 通过 acps-sdk 的 AIP 协议模型进行交互,由 EmotionOrchestrator 编排协作流程。

安装

pip install family-emotion-check

依赖: acps-sdk >= 2.1.0, Python >= 3.10

快速开始

交互模式

femotion

单条命令

femotion "我好累,我觉得自己没用"

代码调用

from family_emotion_check import EmotionOrchestrator

orch = EmotionOrchestrator()
response = orch.process("我好累,我觉得自己没用")

print(response.content)      # 倾听 Agent 回应
alert = orch.risk_detector.get_current_alert()
print(alert.level)            # 风险等级
print(alert.message)          # 给倾听 Agent 的提示

架构

倾诉者输入
    │
    ▼
RiskDetectorAgent ──► 检测情绪信号 + 评估风险等级
    │
    │ (acps-sdk AIP Message)
    ▼
ListenerAgent ──► 根据风险提示调整策略 → 生成共情回应
    │
    ▼
输出回应

Agent 能力规范 (ACS)

两个 Agent 都通过 acps-sdk 的 ACS 模块声明自身能力:

  • AgentCapabilitySpec - 能力描述
  • AgentSkill - 技能列表
  • AgentEndPoint - 交互端点

Agent 交互协议 (AIP)

Agent 间通过 AIP 协议消息模型交互:

  • Message - 消息封装
  • TextDataItem / StructuredDataItem - 数据载荷

项目结构

family_emotion_check/
├── agents/
│   ├── listener.py          # 倾听 Agent
│   └── risk_detector.py     # 风险觉察 Agent
├── emotion_analyzer.py       # 情绪信号分析器
├── orchestrator.py          # 多 Agent 编排器
├── schemas.py               # 数据模型
└── cli.py                   # 命令行入口

License

MIT

Metadata

Release files for family-emotion-check 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for family-emotion-check 1.0.0
File Interpreter ABI Platform Actions
family_emotion_check-1.0.0-py3-none-any.whl Python 3 none any Details for family_emotion_check-1.0.0-py3-none-any.whl

Release files / family_emotion_check-1.0.0-py3-none-any.whl

Download URL family_emotion_check-1.0.0-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8989b2a0ff7426582793e0d91b22b0300085dedc378c11473d53c683e9fbfce
BLAKE2b-256 checksum
How to use checksums
7c4fe2d9b987faa6fa5a2fc7fed90dd0950b6e5b4563d1eeb4299a75bcaf7cf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.2

Security for family-emotion-check 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page