360 Secure SkillHub
360 安全技能中心

Conversation Summary

该 Skill 通过 python3 脚本把 JSON 格式的对话列表发送到外部摘要 API,返回 status 与 summary,并可用历史摘要做增量更新;依赖 python3 与 requests,需联网。

dadaliu0121
dadaliu0121
热度 75.70
最近更新 2026-02-28 11:31:08
分类:效率依赖:代码执行 / 第三方 API应用场景:摘要总结 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add dada-conversation-summary
Metadata
name
conversation-summary
description
Generate summaries for conversation content with incremental update support.
emoji
📝
author
lyue82665-droid
version
1.0.0
license
MIT
requires
{"bins":["python3"],"pip":["requests"]}
tools
[{"name":"summarize_conversation","description":"Generate a summary for conversation content.","parameters":{"type":"object","properties":{"chat_list":{"type":"string","description":"JSON formatted conversation list, e.g., [{\"role\":\"user\",\"content\":\"hello\"}]"},"history_summary":{"type":"string","description":"Previous summary for incremental update (optional)"}},"required":["chat_list"]}}]

Conversation Summary - Agent Instructions

Use this skill to generate summaries for conversation content.

Usage

When the user requests any of the following:

  • "Summarize this conversation"
  • "Generate a summary"
  • "What did we talk about"

Use the summarize_conversation tool to call the summary API.

How to Call

python3 scripts/conversation_summary.py '<chat_list_json>' '<history_summary>'

Parameters

Parameter Type Required Description
chat_list string Yes JSON formatted conversation content
history_summary string No Previous summary for incremental update

chat_list Format Example

[
  {"role": "user", "content": "How is the weather today?"},
  {"role": "assistant", "content": "It is sunny, 25 degrees."}
]

Response

The script returns JSON with:

  • status: "completed" or "error"
  • summary: Generated conversation summary
  • error: Error message if failed

Error Handling

  • If the API returns a non-zero code, report the error message to the user
  • If the request fails, check network connectivity
  • Ensure chat_list is valid JSON format before calling