@hyperbrowser/agent
Version:
Hyperbrowsers Web Agent
2 lines (1 loc) • 1.21 kB
TypeScript
export declare const INPUT_FORMAT = "=== Final Goal ===\n[The final goal that needs to be accomplished]\n=== Open Tabs ===\n[The open tabs]\n=== Current URL ===\n[The current URL]\n=== Variables ===\n[Variables that can be used in the task]\n- Variables are referenced using <<name>> syntax\n- Each variable has a name and description\n- Variables persist across actions and can be referenced in subsequent steps\n- Format: <<name>> - {description}\n=== Elements ===\n[A list of the elements on the page in the following format]\n[index]<type attributes...>value</type>\n- type: HTML element type (button, input, etc.)\n- index: Numeric identifier for interaction \n- attributes: All HTML attributes of the element like type, name, value, class, etc. This can include:\n * Data attributes\n * ARIA attributes \n * Custom attributes\n * Any other valid HTML attributes\n * The attributes provide important context about the element's behavior, accessibility, and styling\n=== Previous Actions ===\n[The previous steps of the task]\n=== Page Screenshot ===\n- A screenshot of the current page with the interactive elements highlighted with their index\n=== Page State ===\n- Pixels below\n- Pixels above";