Method: projects.locations.collections.engines.assistants.agents.tasks.subscribe

tasks.subscribe 是串流呼叫,會傳回工作更新事件的串流。這會將串流附加至現有的處理中工作。如果工作完成,串流會傳回已完成的工作 (例如 tasks.get),並關閉串流。

HTTP 要求

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

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

路徑參數

參數
tenant

string

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

name

string

要訂閱的工作資源名稱。格式:tasks/{taskId}

要求主體

要求主體必須為空白。

回應主體

如果成功,回應主體會包含 StreamResponse 例項的串流。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱Authentication Overview