CLI 命令
`openclaw commitments`
检查并清除已停用的推断式跟进承诺实验所留下的记录。 OpenClaw 不再创建或交付新的跟进承诺,但仍保留维护命令, 以便升级时审计并清理现有的 SQLite 行。
不带子命令时,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>:按一个 Agent ID 筛选。--status <status>:按状态筛选。可选值:pending、sent、dismissed、snoozed或expired。未知值会导致程序报错退出。--json:输出机器可读的 JSON。
dismiss 将给定的跟进承诺 ID 标记为 dismissed。
示例
列出待处理的跟进承诺:
openclaw commitments列出所有已存储的跟进承诺:
openclaw commitments --all筛选到一个 Agent:
openclaw commitments --agent main查找已延后的跟进承诺:
openclaw commitments --status snoozed清除一个或多个跟进承诺:
openclaw commitments dismiss cm_abc123 cm_def456导出为 JSON:
openclaw commitments --all --json输出
文本输出会显示跟进承诺数量、共享 SQLite 数据库路径、所有生效的筛选条件, 并为每项跟进承诺输出一行:
- 跟进承诺 ID
- 状态
- 类型(
event_check_in、deadline_check、care_check_in或open_loop) - 最早到期时间
- 范围(Agent/渠道/目标)
- 建议的跟进文本
JSON 输出包含数量、生效的状态和 Agent 筛选条件、 共享 SQLite 数据库路径以及完整的存储记录。
相关内容
Was this useful?