UNPKG

donobu

Version:

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

28 lines 1.38 kB
import { z } from 'zod/v4'; import type { ToolCallContext } from '../models/ToolCallContext'; import type { ToolCallResult } from '../models/ToolCallResult'; import { Tool } from './Tool'; export declare const RememberPageTextNonGptSchema: z.ZodObject<{ name: 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 RememberPageTextToolGptSchema: z.ZodObject<{ name: z.ZodString; text: z.ZodString; rationale: z.ZodString; }, z.core.$strip>; /** * Persists text from the current page into the flow env data so subsequent tools can reference it. * - `call` is driven by an explicit selector to extract text from the page. * - `callFromGpt` is driven by provided text and attempts to infer selectors for replayability. */ export declare class RememberPageTextTool extends Tool<typeof RememberPageTextNonGptSchema, typeof RememberPageTextToolGptSchema> { static readonly NAME = "rememberPageText"; constructor(); call(context: ToolCallContext, parameters: z.infer<typeof RememberPageTextNonGptSchema>): Promise<ToolCallResult>; callFromGpt(context: ToolCallContext, parameters: z.infer<typeof RememberPageTextToolGptSchema>): Promise<ToolCallResult>; } //# sourceMappingURL=RememberPageTextTool.d.ts.map