Skip to content

`openclaw commitments`

列出並管理推斷的後續追蹤承諾(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
  • 狀態
  • 種類
  • 最早到期時間
  • 範圍
  • 建議的 check-in 文字

JSON 輸出也包含承諾儲存路徑與完整的已儲存紀錄。