ADK for TypeScript: API Reference
System
Light
Dark
Search…
Preparing search index...
ToolAuthHandler
Class ToolAuthHandler
构造函数(Constructors)
构造函数
new
ToolAuthHandler
(
context
:
Context
,
authScheme
?:
AuthScheme
,
authCredential
?:
AuthCredential
,
options
?:
ToolAuthHandlerOptions
,
)
:
ToolAuthHandler
参数
上下文(context)
:
上下文(Context)
Optional
authScheme
:
AuthScheme
Optional
authCredential
:
AuthCredential
选项
:
ToolAuthHandlerOptions
= {}
返回值
ToolAuthHandler
方法(Methods)
`prepare`
Auth
凭据(Credentials)
prepareAuthCredentials
()
:
Promise
<
AuthPreparationResult
>
返回值
Promise
<
AuthPreparationResult
>
Static
from
工具
上下文(Context)
fromToolContext
(
context
:
Context
,
authScheme
?:
AuthScheme
,
authCredential
?:
AuthCredential
,
options
?:
ToolAuthHandlerOptions
,
)
:
ToolAuthHandler
参数
上下文(context)
:
上下文(Context)
Optional
authScheme
:
AuthScheme
Optional
authCredential
:
AuthCredential
选项
:
ToolAuthHandlerOptions
= {}
返回值
ToolAuthHandler
Constructors
constructor
Methods
prepare
Auth
Credentials
from
Tool
Context
ADK for TypeScript: API Reference - v2.5.0
Loading...