UNPKG

donobu

Version:

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

21 lines 1.05 kB
import { Tool } from './Tool'; import { ToolCallContext } from '../models/ToolCallContext'; import { ToolCallResult } from '../models/ToolCallResult'; import { BaseToolGptParameters } from '../models/BaseToolGptParameters'; export interface GoToWebpageToolCoreParameters { /** * The URL to navigate to. Must use the http, https, or file protocol (example is https://google.com). */ url: string; } export interface GoToWebpageToolGptParameters extends BaseToolGptParameters, GoToWebpageToolCoreParameters { } /** Directly navigate to the specified URL. */ export declare class GoToWebpageTool extends Tool<GoToWebpageToolCoreParameters, GoToWebpageToolGptParameters> { static readonly NAME = "goToWebpage"; private static readonly VALID_PROTOCOLS; constructor(); call(context: ToolCallContext, parameters: GoToWebpageToolCoreParameters): Promise<ToolCallResult>; callFromGpt(context: ToolCallContext, parameters: GoToWebpageToolGptParameters): Promise<ToolCallResult>; } //# sourceMappingURL=GoToWebpageTool.d.ts.map