SendMessageConfiguration

发送消息请求的配置。

JSON 表示法
{
  "acceptedOutputModes": [
    string
  ],
  "taskPushNotificationConfig": {
    object (TaskPushNotificationConfig)
  },
  "returnImmediately": boolean,
  "historyLength": integer
}
字段
acceptedOutputModes[]

string

客户端准备好接受的媒体类型列表,用于响应部分。代理应使用此参数来调整其输出。

taskPushNotificationConfig

object (TaskPushNotificationConfig)

代理的配置,用于发送有关任务更新的推送通知。在 message.send 请求中发送此配置时,任务 ID 应为空。

returnImmediately

boolean

如果值为 true,则即使处理仍在进行中,操作也会在创建任务后立即返回。如果值为 false(默认值),则操作必须等到任务达到终止状态(COMPLETEDFAILEDCANCELEDREJECTED)或中断状态(INPUT_REQUIREDAUTH_REQUIRED)后才能返回。

historyLength

integer

要在响应中检索的任务历史记录中的最新消息数量上限。如果未设置值,则表示客户端不施加任何限制。值为零表示请求不包含任何消息。服务器不得返回超出所提供值的消息,但可以应用更低的限制。

TaskPushNotificationConfig

一种将推送通知配置与特定任务相关联的容器。

JSON 表示法
{
  "tenant": string,
  "id": string,
  "taskId": string,
  "url": string,
  "token": string,
  "authentication": {
    object (AuthenticationInfo)
  }
}
字段
tenant

string

可选。不透明的路由标识符。如果设置了该字段,则必须与代理卡片中所选 AgentInterfacetenant 值一致。

id

string

推送通知配置详细信息。相应推送通知配置的唯一标识符(例如 UUID)。

taskId

string

相应配置所关联的任务的 ID。

url

string

必需。应发送通知的网址。

token

string

相应任务或会话的唯一令牌。

authentication

object (AuthenticationInfo)

发送通知所需的身份验证信息。

AuthenticationInfo

定义身份验证详细信息,用于推送通知。

JSON 表示法
{
  "scheme": string,
  "credentials": string
}
字段
scheme

string

必需。IANA 注册表中的 HTTP 身份验证方案。示例:BearerBasicDigest。根据 RFC 9110 第 11.1 节,方案名称不区分大小写。

credentials

string

推送通知凭据。格式取决于方案(例如,Bearer 的令牌)。