Skip to main content
列出并管理推断式跟进承诺。 跟进承诺是可选启用的(commitments.enabled)、短期存在的跟进记忆, 会根据对话上下文创建,并由 Heartbeat 递送。概念指南和配置请参阅 推断式跟进承诺 没有子命令时,openclaw commitments 会列出待处理的跟进承诺。

用法

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。
dismiss 会将给定的跟进承诺 ID 标记为 dismissed,这样 Heartbeat 将不会 递送它们。

示例

列出待处理的跟进承诺:
openclaw commitments
列出每个已存储的跟进承诺:
openclaw commitments --all
筛选到一个智能体:
openclaw commitments --agent main
查找已暂停的跟进承诺:
openclaw commitments --status snoozed
解除一个或多个跟进承诺:
openclaw commitments dismiss cm_abc123 cm_def456
导出为 JSON:
openclaw commitments --all --json

输出

文本输出会打印跟进承诺数量、存储路径、任何有效筛选器, 以及每个跟进承诺一行:
  • 跟进承诺 ID
  • 状态
  • 类型(event_check_indeadline_checkcare_check_inopen_loop
  • 最早到期时间
  • 范围(智能体/渠道/目标)
  • 建议的问候文本
JSON 输出包含数量、有效的状态和智能体筛选器、 跟进承诺存储路径,以及完整的已存储记录。

相关