chore: sync current WechatHookBot workspace
This commit is contained in:
@@ -613,7 +613,8 @@ class ChatRoomSummary(PluginBase):
|
||||
]
|
||||
appmsg_xml = "".join(appmsg_parts)
|
||||
|
||||
await bot._send_data_async(11214, {"to_wxid": from_wxid, "content": appmsg_xml})
|
||||
# 使用新的 HTTP API 发送 XML 消息
|
||||
await bot.send_xml(from_wxid, appmsg_xml)
|
||||
logger.success(f"已发送聊天记录: {title}")
|
||||
|
||||
except Exception as e:
|
||||
@@ -669,18 +670,23 @@ class ChatRoomSummary(PluginBase):
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "generate_summary",
|
||||
"description": "仅当用户明确要求“群聊总结/今日总结/昨日总结”时调用;不要在闲聊或无总结需求时触发。",
|
||||
"description": (
|
||||
"生成群聊总结(今日或昨日),并发送结构化总结结果。"
|
||||
"仅当用户明确要求群聊总结/今日总结/昨日总结时调用;"
|
||||
"普通对话中不要触发。"
|
||||
),
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"time_period": {
|
||||
"type": "string",
|
||||
"description": "时间段,可选值:'today'(今日)或'yesterday'(昨日)",
|
||||
"description": "总结时间范围:today=今日,yesterday=昨日。缺省建议为 yesterday。",
|
||||
"enum": ["today", "yesterday"],
|
||||
"default": "yesterday"
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
"required": [],
|
||||
"additionalProperties": False
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user