donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
22 lines • 1.12 kB
TypeScript
import { z } from 'zod/v4';
import type { ToolCallContext } from '../models/ToolCallContext';
import type { ToolCallResult } from '../models/ToolCallResult';
import { Tool } from './Tool';
export declare const HandleBrowserDialogCoreSchema: z.ZodObject<{
text: z.ZodNullable<z.ZodString>;
}, z.core.$strip>;
export declare const HandleBrowserDialogGptSchema: z.ZodObject<{
text: z.ZodNullable<z.ZodString>;
rationale: z.ZodString;
}, z.core.$strip>;
/**
* A no-op tool that exists just to record the decisioning around browser alert
* dialogs/confirmations. See DonobuFlow#onDialog for details.
*/
export declare class HandleBrowserDialogTool extends Tool<typeof HandleBrowserDialogCoreSchema, typeof HandleBrowserDialogGptSchema> {
static readonly NAME = "handleBrowserDialog";
constructor();
call(context: ToolCallContext, parameters: z.infer<typeof HandleBrowserDialogCoreSchema>): Promise<ToolCallResult>;
callFromGpt(context: ToolCallContext, parameters: z.infer<typeof HandleBrowserDialogGptSchema>): Promise<ToolCallResult>;
}
//# sourceMappingURL=HandleBrowserDialogTool.d.ts.map