API 參考

列出工具執行

GET/v1/runs

使用 limit、status 和不透明的 cursor 依最新優先列出屬於目前呼叫者的執行。摘要不含輸入和輸出。有界掃描可能回傳空的篩選頁,但仍帶有 cursor;請繼續查詢直到 cursor 為 null。此介面會跳過無法表示其計價規則的執行,可透過 GET /v1/tool-runs/{run_id} 讀取。

鑑權與許可權

使用當前 GloopAPI Key。模型、功能與許可權以當前 Key 的目錄及介面說明為準。

Authorization: Bearer $GLOOP_API_KEY

鑑權方案: BearerAuth

請求

查詢引數

  • limitinteger選填
    預設值
    10
    最小值
    1
    最大值
    100
  • cursorstring選填
  • statusstring選填
    列舉
    ["READY","RUNNING","STOPPING","COMPLETED","FAILED","BLOCKED","STOPPED","TIMED_OUT"]

響應與錯誤

HTTP 200

成功回應。

application/json

型別
object
額外屬性
false
必填欄位
itemscursor
  • itemsarray必填
    items 子欄位(1)
    • []object選填
      額外屬性
      false
      [] 子欄位(13)
      • runIdstring必填
      • callerstring必填
      • providerstring必填
        最短長度
        1
      • endpointstring必填
        最短長度
        1
      • statusstring必填
        列舉
        ["READY","RUNNING","STOPPING","COMPLETED","FAILED","BLOCKED","STOPPED","TIMED_OUT"]
      • stoppableboolean選填
      • providerResponseobject選填
        額外屬性
        false
        providerResponse 子欄位(2)
      • priceobject必填
        額外屬性
        false
        price 子欄位(3)
        • typestring必填
          列舉
          ["PER_CALL","PER_RESULT"]
        • amountobject必填
          額外屬性
          false
          amount 子欄位(2)
        • flatFeeobject選填
          額外屬性
          false
          flatFee 子欄位(2)
      • costobject選填
        額外屬性
        false
        cost 子欄位(2)
      • billedUnitsinteger選填
        最小值
        0
      • createdAtstring必填
        格式
        "date-time"
      • completedAtstring選填
        格式
        "date-time"
      • resultExpiredboolean選填
  • cursorstring必填允許 null

HTTP 401

數字錯誤碼和安全的提示訊息。驗證身分、存取控制、參數驗證及流量限制錯誤均採用此格式。

application/json

型別
object
額外屬性
false
必填欄位
codemessage

HTTP default

數字錯誤碼和安全的提示訊息。驗證身分、存取控制、參數驗證及流量限制錯誤均採用此格式。

application/json

型別
object
額外屬性
false
必填欄位
codemessage