UNPKG

@gacua/backend

Version:

GACUA Backend

48 lines (47 loc) 1.54 kB
/** * @license * Copyright 2025 MuleRun * SPDX-License-Identifier: Apache-2.0 */ import type { Part } from '@google/genai'; import { type GroundedToolCall, BaseGroundableTool } from './groundable-tool.js'; import type { Box, Image } from '../screen.js'; export interface ComputerScrollArgs { image_id?: number; element_description?: string; clicks: number; shift?: boolean; } export declare class ComputerScroll extends BaseGroundableTool<ComputerScrollArgs> { readonly functionDeclaration: { name: string; parametersJsonSchema: { properties: { image_id: { description: string; type: string; minimum: number; }; element_description: { description: string; type: string; }; clicks: { description: string; type: string; }; shift: { description: string; type: string; default: boolean; }; }; required: string[]; type: string; }; }; validate(args: ComputerScrollArgs): string | null; ground(args: ComputerScrollArgs, screenshot: Image, croppedScreenshotParts: { imagePart: Part; }[], detectElement: (imagePart: Part, elementDescription: string) => Promise<Box>): Promise<GroundedToolCall | string>; }