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

    Class ComputerUseToolset

    A toolset that exposes the actions of a BaseComputer to an agent.

    The toolset initializes the computer on first use and wraps each action in a ComputerUseTool. Actions on one computer run one at a time, and the computer's prepare() runs before each of them. When the agent builds a request, the toolset registers its tools and adds the computer use configuration that tells the model which predefined actions it may call.

    const agent = new LlmAgent({
    name: 'browser_agent',
    model: 'gemini-flash-latest',
    tools: [new ComputerUseToolset({computer: new MyBrowserComputer()})],
    });

    Hierarchy (View Summary)

    "[BASE_TOOLSET_SIGNATURE_SYMBOL]": true
    "[COMPUTER_USE_TOOLSET_SIGNATURE_SYMBOL]": true

    A unique symbol to identify ADK computer use toolset class.

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