“Sign”可以表示“签名”或“标志”(symbol)。在某些上下文中,它也可能指“信号”(signal)或“标志物”(marker)。具体含义需要根据上下文来判断。在……里面;在……期间请求

A request from ADK for a credential one of the agent's tools needs, as Event.signInRequests finds it. Send the user to authUri when there is one, then answer with reply.

属性(Properties)

Link copied to clipboard

该工具所需的信息包括:协议(scheme);对于 OAuth2 和 OpenID Connect 来说,还需要授权 URL(authorization URL)。

Link copied to clipboard

根据请求中的 OAuth2 信息,应该将用户引导到哪个页面进行登录? authUri如果不存在,则返回 `null`。

Link copied to clipboard
val id: String

该对象的 ID 是…… adk_request_credential “打电话吧;答案会通过电话传达给你。”

函数

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun reply(credential: AuthCredential): Content

返回用于回答此请求的消息。 credential用户登录时使用的那个账户。OAuth2 令牌(包括令牌本身、代码、有效期以及任何重定向 URI)会作为请求中的认证信息被包含在请求中。请通过合并所有未处理的请求的相关信息来一次性回复所有这些请求;因为一个支持“可恢复操作”(resumable operations)的应用程序可以在收到第一个响应后就结束当前的请求处理流程。

Link copied to clipboard
open override fun toString(): String