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

取消代理程式中的工作。如果支援,使用者應該不會再收到該工作的更新資訊。

HTTP 要求

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

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

路徑參數

參數
tenant

string

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

name

string

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

要求主體

要求主體必須為空白。

回應主體

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

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱Authentication Overview