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

    Class ToolboxToolset

    Provides asynchronous access to Toolbox tools and toolsets as a BaseToolset.

    Hierarchy (View Summary)

    "[BASE_TOOLSET_SIGNATURE_SYMBOL]": true
    "[TOOLBOX_TOOLSET_SIGNATURE_SYMBOL]": true

    A unique symbol to identify ADK ToolboxToolset class.

    authTokenGetters: Record<string, () => string | Promise<string>>

    Mapping of authentication service names to token getters.

    boundParams: Record<string, unknown>

    Mapping of parameter names to bound values or value getters.

    prefix?: string
    serverUrl: string

    The URL of the Toolbox server.

    The underlying Toolbox client instance.

    toolFilter:
        | string[]
        | ((tool: BaseTool, readonlyContext?: ReadonlyContext) => boolean)
    toolNames?: readonly string[]

    The names of the individual tools to load, if configured.

    toolsetName?: string

    The name of the Toolbox toolset to load, if configured.

    • 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>