GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — BigQueryToolset | ADK for TypeScript: API Reference - v2.5.0

  • BigQueryToolset

Class BigQueryToolset

Toolset for the Google BigQuery v2 API.

Hierarchy (View Summary)

  • GoogleApiToolset
    • BigQueryToolset
  • Defined in core/src/tools/google_api_tool/google_api_toolsets.ts:17

Constructors

constructor

  • new BigQueryToolset(options?: GoogleApiToolsetOptions): BigQueryToolset

    Parameters

    • options: GoogleApiToolsetOptions = {}

    Returns BigQueryToolset

    Overrides GoogleApiToolset.constructor

    • Defined in core/src/tools/google_api_tool/google_api_toolsets.ts:18

Properties

Readonly[BASE_TOOLSET_SIGNATURE_SYMBOL]

"[BASE_TOOLSET_SIGNATURE_SYMBOL]": true

Inherited from GoogleApiToolset.[BASE_TOOLSET_SIGNATURE_SYMBOL]

  • Defined in core/src/tools/base_toolset.ts:42

Readonly[GOOGLE_API_TOOLSET_SIGNATURE_SYMBOL]

"[GOOGLE_API_TOOLSET_SIGNATURE_SYMBOL]": true

Inherited from GoogleApiToolset.[GOOGLE_API_TOOLSET_SIGNATURE_SYMBOL]

  • Defined in core/src/tools/google_api_tool/google_api_toolset.ts:59

Optional ReadonlyapiName

apiName?: string

Inherited from GoogleApiToolset.apiName

  • Defined in core/src/tools/google_api_tool/google_api_toolset.ts:61

Optional ReadonlyapiVersion

apiVersion?: string

Inherited from GoogleApiToolset.apiVersion

  • Defined in core/src/tools/google_api_tool/google_api_toolset.ts:62

Optional Readonlyprefix

prefix?: string

Inherited from GoogleApiToolset.prefix

  • Defined in core/src/tools/base_toolset.ts:46

Optional Readonlyscopes

scopes?: string[]

Inherited from GoogleApiToolset.scopes

  • Defined in core/src/tools/google_api_tool/google_api_toolset.ts:63

toolFilter

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

Inherited from GoogleApiToolset.toolFilter

  • Defined in core/src/tools/google_api_tool/google_api_toolset.ts:60

Methods

close

  • close(): Promise<void>

    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.

    Inherited from GoogleApiToolset.close

    • Defined in core/src/tools/google_api_tool/google_api_toolset.ts:178

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

    Inherited from GoogleApiToolset.configureAuth

    • Defined in core/src/tools/google_api_tool/google_api_toolset.ts:169

getTools

  • getTools(context?: ReadonlyContext): Promise<GoogleApiTool[]>

    Returns all tools in the toolset matching the active toolFilter.

    Parameters

    • Optionalcontext: ReadonlyContext

    Returns Promise<GoogleApiTool[]>

    Inherited from GoogleApiToolset.getTools

    • Defined in core/src/tools/google_api_tool/google_api_toolset.ts:152

ProtectedisToolSelected

  • isToolSelected(tool: BaseTool, context?: ReadonlyContext): boolean

    Returns whether the tool should be exposed to LLM.

    Parameters

    • tool: BaseTool

      The tool to check.

    • Optionalcontext: ReadonlyContext

      Context used to filter tools available to the agent.

    Returns boolean

    Whether the tool should be exposed to LLM.

    Inherited from GoogleApiToolset.isToolSelected

    • Defined in core/src/tools/base_toolset.ts:77

processLlmRequest

  • processLlmRequest(_toolContext: Context, _llmRequest: LlmRequest): Promise<void>

    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>

    Inherited from GoogleApiToolset.processLlmRequest

    • Defined in core/src/tools/base_toolset.ts:109

setToolFilter

  • setToolFilter(
        toolFilter:
            | string[]
            | ((tool: BaseTool, readonlyContext?: ReadonlyContext) => boolean),
    ): void

    Updates the tool filter used by getTools.

    Parameters

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

    Returns void

    Inherited from GoogleApiToolset.setToolFilter

    • Defined in core/src/tools/google_api_tool/google_api_toolset.ts:161
Constructors
constructor
Properties
[BASE_TOOLSET_SIGNATURE_SYMBOL][GOOGLE_API_TOOLSET_SIGNATURE_SYMBOL]apiNameapiVersionprefixscopestoolFilter
Methods
closeconfigureAuthgetToolsisToolSelectedprocessLlmRequestsetToolFilter
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.