Optionaltools: (RestApiTool | GoogleApiTool)[]Readonly[Readonly[Optional ReadonlyapiOptional ReadonlyapiOptional ReadonlyprefixReadonlytoolCloses 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.
Finds a tool in the toolset by name.
Returns all tools in the toolset matching the active toolFilter.
Optionalcontext: ReadonlyContextProtectedisReturns whether the tool should be exposed to LLM.
The tool to check.
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.
StaticloadFetches and converts a Google API Discovery document and returns a GoogleApiToolSet containing its operations.
StaticloadBuilds an OpenAPIToolset from an OpenAPI specification dictionary or YAML/JSON file and configures it with Google's OpenID Connect endpoints.
Toolset that wraps Google Discovery API operations as GoogleApiTool instances configured for Google OpenID Connect authentication.