跳转到内容

`openclaw commitments`

列出并管理推断的后续跟进承诺。

承诺是可选加入的、短期存在的后续跟进记忆,根据对话上下文创建。请参阅推断的承诺了解概念指南。

如果没有子命令,openclaw commitments 会列出待处理的承诺。

Terminal window
openclaw commitments [--all] [--agent <id>] [--status <status>] [--json]
openclaw commitments list [--all] [--agent <id>] [--status <status>] [--json]
openclaw commitments dismiss <id...> [--json]
  • --all:显示所有状态,而不仅仅是待处理的承诺。
  • --agent <id>:筛选到一个代理 ID。
  • --status <status>:按状态筛选。值:pendingsentdismissedsnoozedexpired
  • --json:输出机器可读的 JSON。

列出待处理的承诺:

Terminal window
openclaw commitments

列出每个存储的承诺:

Terminal window
openclaw commitments --all

筛选到一个代理:

Terminal window
openclaw commitments --agent main

查找已暂停的承诺:

Terminal window
openclaw commitments --status snoozed

关闭一个或多个承诺:

Terminal window
openclaw commitments dismiss cm_abc123 cm_def456

导出为 JSON:

Terminal window
openclaw commitments --all --json

文本输出包括:

  • 承诺 ID
  • 状态
  • 类型
  • 最早到期时间
  • 范围
  • 建议的签到文本

JSON 输出还包括承诺存储路径和完整的存储记录。