快速开始
`openclaw commitments`
列出并管理推断式跟进承诺。
跟进承诺是通过 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>:按状态筛选。可选值:pending、sent、dismissed、snoozed或expired。传入未知值时将报错退出。--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_in、deadline_check、care_check_in或open_loop) - 最早到期时间
- 作用域(智能体/渠道/目标)
- 建议的跟进文本
JSON 输出包括数量、生效的状态和智能体筛选条件、跟进承诺存储路径,以及完整的已存储记录。
相关内容
Was this useful?