donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
33 lines • 1.26 kB
TypeScript
import { z } from 'zod/v4';
import type { ToolCallContext } from '../models/ToolCallContext';
import { ToolCallResult } from '../models/ToolCallResult';
import { Tool } from './Tool';
export declare const AssertPageCoreSchema: z.ZodObject<{
type: z.ZodEnum<{
content: "content";
title: "title";
url: "url";
}>;
expected: z.ZodString;
isRegex: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, z.core.$strip>;
export declare const AssertPageToolGptSchema: z.ZodObject<{
type: z.ZodEnum<{
content: "content";
title: "title";
url: "url";
}>;
expected: z.ZodString;
isRegex: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
rationale: z.ZodString;
}, z.core.$strip>;
export declare class AssertPageTool extends Tool<typeof AssertPageCoreSchema, typeof AssertPageToolGptSchema> {
static readonly NAME = "assertPage";
constructor();
call(context: ToolCallContext, parameters: z.infer<typeof AssertPageCoreSchema>): Promise<ToolCallResult>;
private assertContent;
private assertTitle;
private assertUrl;
callFromGpt(context: ToolCallContext, parameters: z.infer<typeof AssertPageToolGptSchema>): Promise<ToolCallResult>;
}
//# sourceMappingURL=AssertPageTool.d.ts.map