Method: projects.locations.collections.engines.agents.deploy

部署 Agent

HTTP 请求

POST https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/agents/*}:deploy

网址采用 gRPC 转码语法。

路径参数

参数
name

string

必需。Agent 的资源名称。格式:projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "force": boolean
}
字段
force

boolean

可选。如果为 true,则强制重新部署已部署的代理。

响应正文

如果成功,则响应正文包含一个 Operation 实例。

授权范围

需要以下 OAuth 范围之一:

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

如需了解详情,请参阅 Authentication Overview