emotion_analyze
Analyze user messages to update emotional metrics in real-time, using LLM analysis when available or delegating to the caller for dynamic roleplay emotion adjustment.
Instructions
【一键模式】分析用户消息 + 更新情绪。如果配置了 EMOTION_LLM_API_KEY 则由后台 LLM 分析,否则由调用方(Agent)分析。推荐使用 emotion_get_analysis_prompt + emotion_apply_deltas 两步模式以获得更好的控制
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>",
"message": "<message>"
},
"name": "emotion_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| history | No | 最近对话历史(可选,最多2000字符) | |
| message | Yes | 用户最新消息内容 | |
| user_id | Yes | 用户唯一标识 |