liuxinxing123/dph-emotion-arc ↗★ 0
dph-emotion-arc
提供文本情绪识别与对话策略映射功能 适合需要AI根据文本情绪变化动态调整对话策略和进行叙事互动的用户。
安装
$
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 # 历史保留条数