ADK for TypeScript: API Reference
System
Light
Dark
Search…
Preparing search index...
ToolAuthHandler
Class ToolAuthHandler
Constructors
constructor
new
ToolAuthHandler
(
context
:
Context
,
authScheme
?:
AuthScheme
,
authCredential
?:
AuthCredential
,
options
?:
ToolAuthHandlerOptions
,
)
:
ToolAuthHandler
Parameters
context
:
Context
Optional
authScheme
:
AuthScheme
Optional
authCredential
:
AuthCredential
options
:
ToolAuthHandlerOptions
= {}
Returns
ToolAuthHandler
Methods
prepare
Auth
Credentials
prepareAuthCredentials
()
:
Promise
<
AuthPreparationResult
>
Returns
Promise
<
AuthPreparationResult
>
Static
from
Tool
Context
fromToolContext
(
context
:
Context
,
authScheme
?:
AuthScheme
,
authCredential
?:
AuthCredential
,
options
?:
ToolAuthHandlerOptions
,
)
:
ToolAuthHandler
Parameters
context
:
Context
Optional
authScheme
:
AuthScheme
Optional
authCredential
:
AuthCredential
options
:
ToolAuthHandlerOptions
= {}
Returns
ToolAuthHandler
Constructors
constructor
Methods
prepare
Auth
Credentials
from
Tool
Context
ADK for TypeScript: API Reference - v2.2.0
Loading...