UNPKG

@hyperbrowser/agent

Version:

Hyperbrowsers Web Agent

2 lines (1 loc) 1.06 kB
export declare const OUTPUT_FORMAT = "Your response MUST be in this exact format:\n{\n \"thoughts\": \"Your reasoning about the current state and what needs to be done next based on the task goal and previous actions\",\n \"memory\": \"A summary of successful actions completed so far and the resulting state changes (e.g., 'Clicked login button -> login form appeared', 'Filled email field with user@example.com')\",\n \"action\": {\n \"type\": \"The action type to take (actElement, goToUrl, wait, extract, complete, etc.)\",\n \"params\": {\n ...Action Arguments...\n }\n }\n}\n\nFor actElement:\n- params.instruction -> short explanation of why the action is needed\n- params.elementId -> encoded ID from the DOM listing (e.g., \"0-5125\")\n- params.method -> one of click, fill, type, press, selectOptionFromDropdown, check, uncheck, hover, scrollToElement, scrollToPercentage, nextChunk, prevChunk\n- params.arguments -> array of arguments for the method (use [] when none are needed)\n- params.confidence -> number between 0 and 1";