Understand LaVague Agent Architecture and Workflow
mainLaVague operates as a loop consisting of four primary components that transform a high-level user goal into automated web actions:
- Objective: The global goal provided by the user (e.g.,
"Log into my account and change my username to The WaveHunter."). - World Model: Analyzes the current webpage state (via screenshots and HTML) and the user's objective to generate the next specific Instruction.
- Action Engine: Receives a text instruction and generates/executes the corresponding automation code.
- Driver: A webdriver (like Playwright or Selenium) that executes the code and provides perception (screenshots and HTML source) back to the World Model.
The Workflow Loop:
- The World Model generates an instruction based on the objective and current state.
- The Action Engine converts that instruction into code and executes it via the Driver.
- The Driver captures the new state (updated screenshot/HTML).
- The World Model processes the new state to generate the next instruction.
- This repeats until the objective is met.