UNPKG

donobu

Version:

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

16 lines 841 B
import type { LocateResult } from './locateTypes'; /** * Thrown when {@link PageAiCallable.locate} cannot resolve a natural-language * description to a single DOM element after exhausting retries. */ export declare class LocateException extends Error { readonly description: string; readonly reason: 'no_matches' | 'too_many_matches' | 'llm_error'; readonly details?: string | undefined; /** The last {@link LocateResult} the LLM returned before giving up (if any). */ readonly lastResult?: LocateResult | undefined; constructor(description: string, reason: 'no_matches' | 'too_many_matches' | 'llm_error', details?: string | undefined, /** The last {@link LocateResult} the LLM returned before giving up (if any). */ lastResult?: LocateResult | undefined); } //# sourceMappingURL=LocateException.d.ts.map