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