ADK for TypeScript: API Reference
    Preparing search index...

    Class GoogleApiToolSet

    Toolset that wraps Google Discovery API operations as GoogleApiTool instances configured for Google OpenID Connect authentication.

    Hierarchy (View Summary)

    "[BASE_TOOLSET_SIGNATURE_SYMBOL]": true
    "[GOOGLE_API_TOOL_SET_SIGNATURE_SYMBOL]": true
    apiName?: string
    apiVersion?: string
    prefix?: string
    toolFilter: string[] | ToolPredicate
    • 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.

    • 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

        The context of the tool.

      • _llmRequest: LlmRequest

        The outgoing LLM request, mutable this method.

      Returns Promise<void>