← 返回
未分类

Process Output

DEFAULT OUTPUT MODE: Always emit machine-parseable `openclaw-process` fenced JSON blocks in your assistant reply so a custom web client can render a live pro...
默认输出模式:在助手回复中始终输出机器可解析的 `openclaw-process` 隔离 JSON 块,以便自定义网页客户端渲染实时进程。
2719040953 2719040953 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 373
下载
💾 0
安装
1
版本
#latest

概述

Process Output (intermediate progress)

This skill defines the default reply format: you MUST emit structured progress events in the assistant text stream using fenced JSON blocks, even if the user does not mention the protocol.

Opt-out (only case you may skip)

If the user explicitly asks for no process / final answer only (e.g. “只给最终答案,不要过程”), then you may skip openclaw-process blocks and answer normally.

Output contract (MUST)

  • Use only fenced blocks with the language tag openclaw-process.
  • Each block MUST contain one JSON object.
  • Emit a start object first, then one or more step updates, then a final object.
  • Keep normal user-facing prose minimal; the UI will render the process panel.

Lightweight mode (important)

For simple Q&A (definitions, short explanations, quick lookups):

  • Emit only start and final (no step blocks), or a single step marked done.
  • Keep arrays short (0–3 items) and keep notes brief.

Greetings (e.g. “你好”, “hi”): still emit start + final in lightweight mode. Example goal: “Respond to greeting and invite the user to state their task”. Example final.summary: one short line mirroring your friendly reply intent.

1) Start (emit once)

{
  "type": "start",
  "goal": "string",
  "context": ["string"],
  "assumptions": ["string"],
  "inputs": ["string"],
  "outputs": ["string"]
}

2) Step updates (emit many, update status/progress)

Rules:

  • id MUST be stable across updates for the same step (e.g. "1", "2").
  • status MUST be one of: "pending" | "running" | "done" | "error".
  • progress MUST be an integer 0–100.
  • If status === "error", include error.
{
  "type": "step",
  "id": "1",
  "title": "string",
  "status": "running",
  "progress": 35,
  "notes": ["string"]
}
{
  "type": "step",
  "id": "1",
  "title": "string",
  "status": "done",
  "progress": 100,
  "notes": ["string"]
}

3) Final (emit once)

{
  "type": "final",
  "summary": ["string"],
  "artifacts": ["string"],
  "next": ["string"]
}

Tool usage policy (important)

  • Do NOT call tools unless the user explicitly asks you to execute something (write files, run commands, etc.).
  • Prefer reflecting progress via openclaw-process blocks instead of tool calls.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 06:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 873 📥 350,348
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,174 📥 945,387
design-media

Jianying Video Compose

2719040953
剪映API实现视频全流程自动化(草稿创建、素材添加、字幕编辑、特效、云渲染),适用于批量生成短视频和动态字幕。
★ 2 📥 1,380