liuxinxing123/dph-emotion-arc ↗★ 0

dph-emotion-arc

情绪弧线导演(Emotion Arc Director):文本情绪识别 → 显式情绪状态文件 → 对话策略映射 + 情绪记忆账本。工具/叙事定位的 DSH(DPH)插件。 适合需要AI根据文本情绪变化动态调整对话策略和进行叙事互动的用户。

パッケージ
dph-emotion-arc
互換性
未検証
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/10/01

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:liuxinxing123/dph-emotion-arc

ドキュメント

README 全文を読む ↗

配置(cordis.patch.yml)

config:
  enabled: true
  dataDir: !!js dshHomePath('emotion-arc')
  decayHalfLifeMs: 1800000   # 情绪半衰期 30min
  neutralFloor: 0.15         # 低于此强度回落中性
  minConfidence: 0.5         # 防护①阈值
  hysteresis: 0.15           # 防护②换标签迟滞
  injectThreshold: 0.25      # 触发策略注入的强度变化阈值
  injectCooldownMs: 5000     # 注入冷却
  notifyOnShift: true        # 情绪显著变化时注入通知
  notifyMode: inject         # inject=注入+上下文;context-only=仅稳态上下文(最安静)
  detectorMode: auto         # lexicon=零成本词典;llm=纯 LLM;auto=LLM 优先+词典兜底
  llmTimeoutMs: 4000         # LLM 精判超时(超时走兜底)
  llmMaxTokens: 120          # 精判输出上限
  # llmProvider / llmModel   # 可选:指定精判模型;缺省用 Harness 默认模型(BYOK)
  historyLimit: 20           # 历史保留条数