搜索

PythonReactSEOPDF
OpenClaw

conversation-summary

Generate summaries for conversation content with incremental update support.

dadaliu01210 来源安装数☆ 0 仓库 Starsv1.0.0

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install dadaliu0121/skills-ai-assistant

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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

来源信息

Source
github
Repository
openclaw/skills
Path
skills/dadaliu0121/skills-ai-assistant
Version
1.0.0
Commit
8733b25bbf69a611320660fa8076b844c1532ac3
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# 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

```bash
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

```json
[
  {"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

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.