Method: projects.locations.collections.engines.assistants.agents.a2a.v1.tasks.get

從代理程式取得工作目前的狀態。

HTTP 要求

GET https://discoveryengine.googleapis.com/v1/{tenant=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*}/a2a/v1/{name=tasks/*}

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
tenant

string

選用租戶,以路徑參數形式提供。實驗性質,1.0 版發布時可能仍會變更。

name

string

這是必要旗標,工作的資源名稱。格式:tasks/{taskId}

查詢參數

參數
historyLength

integer

要擷取的工作記錄中最新訊息的數量。

要求主體

要求主體必須為空白。

回應主體

如果成功,回應主體會包含 Task 的執行個體。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite
  • https://www.googleapis.com/auth/discoveryengine.serving.readwrite

詳情請參閱Authentication Overview