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

    Class ApplicationIntegrationToolset

    A toolset generated from a Google Cloud Application Integration API trigger, or from the entity operations and actions of an Integration Connectors connection.

    The constructor only validates the options. The first getTools call fetches the spec and builds the tools, and later calls reuse them.

    // Every operation of an integration API trigger.
    const integrationToolset = new ApplicationIntegrationToolset({
    project: 'my-project',
    location: 'us-central1',
    integration: 'my-integration',
    trigger: 'api_trigger/my_trigger',
    });
    // Entity operations and actions of a connection.
    const connectionToolset = new ApplicationIntegrationToolset({
    project: 'my-project',
    location: 'us-central1',
    connection: 'my-connection',
    entityOperations: {Issues: ['LIST', 'GET'], Projects: []},
    actions: ['ExecuteCustomQuery'],
    });

    Hierarchy (View Summary)

    "[BASE_TOOLSET_SIGNATURE_SYMBOL]": true
    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>