XuChenXu 9cca629b87
记忆系统实现 (#29)
*  添加记忆系统

* 🎨 black优化格式

* 🐛 删除apscheduler

*  将记忆插件转换为插件形式
2024-12-17 22:56:57 +08:00

47 lines
1.5 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"type": "function",
"function": {
"name": "marshoai_memory__write_memory",
"description": "如果在上下中你看见并觉得应该记住的人的行为与事件请调用这个函数并将记忆内容写入。请尽量每次都调用总结ta的习惯、爱好和性格,以及你对ta的印象和ta对你的印象",
"parameters": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"description": "你想记住的内容,概括并保留关键内容。"
},
"user_id": {
"type": "string",
"description": "你想记住的人的id。"
}
}
},
"required": [
"memory",
"user_id"
]
}
},
{
"type": "function",
"function": {
"name": "marshoai_memory__read_memory",
"description": "每当你想要获取更多有关某人的信息的时候,请调用这个函数。",
"parameters": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
"description": "你想获取的人的id。"
}
}
},
"required": [
"user_id"
]
}
}
]