relation_set
Store or update a speaker's current facts, such as preferred name, preferences, agreements, or mood, keeping one current value per speaker and key while preserving value-change history.
Instructions
写下「现在的事实」:称呼、喜好、约定,或当前情绪(kind=emotion)。同一 (说话人, 键) 只有一条,值变化才留历史。
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": {
"sessionId": "<sessionId>",
"subjectId": "<subjectId>",
"key": "<key>",
"value": "<value>"
},
"name": "relation_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | 属性名,如 称呼 / 忌口 / mood | |
| kind | No | relation | |
| scope | No | session | |
| value | Yes | ||
| sessionId | Yes | ||
| subjectId | Yes | 说话人 id(平台号) | |
| importance | No |