UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

29 lines 1.38 kB
import type { ElementHandle } from 'playwright'; import { z } from 'zod/v4'; import type { ToolCallContext } from '../models/ToolCallContext'; import { ReplayableInteraction } from './ReplayableInteraction'; export declare const ChooseSelectOptionCoreSchema: z.ZodObject<{ optionValues: z.ZodArray<z.ZodString>; }, z.core.$strip>; export declare const ChooseSelectOptionNonGptSchema: z.ZodObject<{ optionValues: z.ZodArray<z.ZodString>; selector: z.ZodObject<{ element: z.ZodArray<z.ZodString>; frame: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.core.$strip>; }, z.core.$strip>; export declare const ChooseSelectOptionGptSchema: z.ZodObject<{ optionValues: z.ZodArray<z.ZodString>; whyThisAnnotation: z.ZodString; annotation: z.ZodString; rationale: z.ZodString; }, z.core.$strip>; export declare class ChooseSelectOptionTool extends ReplayableInteraction<typeof ChooseSelectOptionCoreSchema, typeof ChooseSelectOptionNonGptSchema, typeof ChooseSelectOptionGptSchema> { static readonly NAME = "chooseSelectOption"; constructor(); invoke(context: ToolCallContext, parameters: z.infer<typeof ChooseSelectOptionCoreSchema>, handles: { target: ElementHandle<HTMLElement | SVGElement>; label?: ElementHandle<HTMLElement>; }): Promise<string>; } //# sourceMappingURL=ChooseSelectOptionTool.d.ts.map