跳至內容

取得 Agent

GET/v1/agents/{agent_id}

讀取 Agent,包括已封存的 Agent。

路徑參數

stringagent_id必填

Agent ID(agt_ 前綴)。

Agent 物件

由 create、get、update、archive、unarchive、restore 與 clone 傳回。

stringid必填

帶有 agt_ 前綴的 Agent ID。

stringobject必填

固定為 agent。

integerversion必填

目前版本。每次有效寫入都會建立新版本。

integerrow_version必填

用於 PATCH、archive、unarchive 與 restore 的比較並設定(compare-and-set)權杖。

stringstatus必填

active 或 archived。

stringprojection_status必填

目前版本的執行就緒狀態。工作階段需要 ready;新建立的 Agent 可能短暫回報 pending。

stringruntime_profile必填

codex、claude 或 mcode。

stringvisibility必填

您的 Agent 為 private;目錄項目為 public。

integer · nullcreated_at · updated_at · archived_at必填

Unix 秒數。啟用期間 archived_at 為 null。