GeezerVison is showing adk.dev — YoutubeToolset | ADK for TypeScript: API Reference - v2.5.0
Toolset for the YouTube Data v3 API.
Constructors
Properties
Readonly[BASE_TOOLSET_SIGNATURE_SYMBOL]
"[BASE_TOOLSET_SIGNATURE_SYMBOL]": true
Readonly[GOOGLE_API_TOOLSET_SIGNATURE_SYMBOL]
"[GOOGLE_API_TOOLSET_SIGNATURE_SYMBOL]": true
Optional ReadonlyapiName
apiName?: string
Optional ReadonlyapiVersion
apiVersion?: string
Optional Readonlyprefix
prefix?: string
Optional Readonlyscopes
scopes?: string[]
Methods
close
-
Closes the toolset.
NOTE: This method is invoked, for example, at the end of an agent server's
lifecycle or when the toolset is no longer needed. Implementations
should ensure that any open connections, files, or other managed
resources are properly released to prevent leaks.
Returns Promise<void>
A Promise that resolves when the toolset is closed.
configureAuth
-
configureAuth(clientId?: string, clientSecret?: string): void
Configures OAuth2 client ID and secret across all tools in the toolset.
Parameters
OptionalclientId: string
OptionalclientSecret: string
Returns void
getTools
-
Returns all tools in the toolset matching the active toolFilter.
ProtectedisToolSelected
-
Returns whether the tool should be exposed to LLM.
Returns boolean
Whether the tool should be exposed to LLM.
processLlmRequest
-
Processes the outgoing LLM request for this toolset. This method will be
called before each tool processes the llm request.
Use cases:
- Instead of let each tool process the llm request, we can let the toolset
process the llm request. e.g. ComputerUseToolset can add computer use
tool to the llm request.
Parameters
- _toolContext: Context
- _llmRequest: LlmRequest
The outgoing LLM request, mutable this method.
Returns Promise<void>
setToolFilter
-
Updates the tool filter used by getTools.
Returns void
Constructors
Properties
Methods