Readonly[Readonly[Optional ReadonlyapiOptional ReadonlyapiOptional ReadonlyprefixCloses 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.
A Promise that resolves when the toolset is closed.
Configures OAuth2 client ID and secret across all tools in the toolset.
OptionalclientId: stringOptionalclientSecret: stringReturns all tools in the toolset matching the active toolFilter.
Optionalcontext: ReadonlyContextProtectedisReturns whether the tool should be exposed to LLM.
The tool to check.
Optionalcontext: ReadonlyContext
Context used to filter tools available to the agent.
Whether the tool should be exposed to LLM.
Processes the outgoing LLM request for this toolset. This method will be called before each tool processes the llm request.
Use cases:
The context of the tool.
The outgoing LLM request, mutable this method.
Updates the tool filter used by getTools.
Toolset that wraps Google Discovery API operations as GoogleApiTool instances configured for Google OpenID Connect authentication.