UNPKG

@gacua/backend

Version:

GACUA Backend

37 lines 1.07 kB
/** * @license * Copyright 2025 MuleRun * SPDX-License-Identifier: Apache-2.0 */ import { BaseGroundableTool, } from './groundable-tool.js'; export class ComputerWait extends BaseGroundableTool { functionDeclaration = { name: 'computer_wait', parametersJsonSchema: { properties: { time: { description: 'The amount of time to wait in seconds', type: 'number', }, }, required: ['time'], type: 'object', }, }; async ground(args, _screenshot, _croppedScreenshotParts, _detectElement) { async function getDescription(_saveImage) { return [{ text: `Wait ${args.time} seconds` }]; } function value() { return { name: '.computer', args: { action: 'wait', time: args.time, }, }; } return { getDescription, value }; } } //# sourceMappingURL=wait.js.map