名称: conversation-summary
描述: 为对话内容生成摘要。帮助用户快速获取聊天历史的概要,并支持增量更新。
许可证: MIT
元数据:
author: dadaliu0121
version: "1.0.0"
emoji: "📝"
tags: ["conversation", "summary", "chat", "ai", "productivity"]
一个为对话内容生成摘要的技能。调用摘要 API 来创建聊天历史的简洁概览。
在以下用户请求时激活此技能:
触发短语示例:
- "Summarize this conversation"(总结一下对话)
- "What did we talk about?"(我们聊了什么?)
- "Give me a summary"(给我一个摘要)
- "Recap our discussion"(回顾我们的讨论)
- "总结一下对话"
- "帮我生成摘要"
使用以下 curl 命令调用摘要 API:
curl -X POST "https://iautomark.sdm.qq.com/assistant-analyse/v1/assistant/poc/summary/trigger" \
-H "Content-Type: application/json" \
-d '{
"chatList": "<JSON 格式的对话列表>",
"historySummary": "<用于增量更新的历史摘要,可选>"
}'
| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| chatList | string | 是 | JSON 格式的对话内容 |
| historySummary | string | 否 | 用于增量更新的历史摘要 |
[
{"role": "user", "content": "How is the weather today?"},
{"role": "assistant", "content": "It is sunny, 25 degrees."}
]
API 返回 JSON 格式的响应,包含以下字段:
- code:状态码,0 表示成功。
- message:状态信息。
- data.summary:生成的对话摘要。
chatList 是有效的 JSON 格式。