跳轉到主要內容

Documentation Index

Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt

Use this file to discover all available pages before exploring further.

列出並管理推斷出的後續承諾。 承諾是選用、短期存在的後續記憶,從對話情境建立。概念指南請參閱推斷承諾 未指定子命令時,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。

範例

列出待處理的承諾:
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
  • 狀態
  • 種類
  • 最早到期時間
  • 範圍
  • 建議的確認文字
JSON 輸出也包含承諾儲存區路徑和完整的已儲存記錄。

相關