跳轉到主要內容
列出並管理推斷出的後續承諾。 承諾是選擇啟用的(commitments.enabled)、短期存在的後續記憶, 會從對話脈絡建立,並由心跳偵測送達。概念指南與設定請參閱 推斷出的承諾 沒有子命令時,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,使心跳偵測不會 送達它們。

範例

列出待處理的承諾:
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 輸出包含數量、作用中的狀態與代理篩選器、 承諾儲存路徑,以及完整的已儲存記錄。

相關