UNPKG

@gacua/backend

Version:

GACUA Backend

23 lines (22 loc) 850 B
/** * @license * Copyright 2025 MuleRun * SPDX-License-Identifier: Apache-2.0 */ import type { FunctionDeclaration, Part } from '@google/genai'; import { type GroundedToolCall, BaseGroundableTool } from './groundable-tool.js'; import { type Box, type Image } from '../screen.js'; interface ComputerClickArgs { image_id: number; element_description: string; num_clicks?: number; button_type?: 'left' | 'middle' | 'right'; hold_keys?: string[]; } export declare class ComputerClick extends BaseGroundableTool<ComputerClickArgs> { readonly functionDeclaration: FunctionDeclaration; ground(args: ComputerClickArgs, screenshot: Image, croppedScreenshotParts: { imagePart: Part; }[], detectElement: (imagePart: Part, elementDescription: string) => Promise<Box>): Promise<GroundedToolCall | string>; } export {};