lavague-ai / LaVague

Large Action Model framework to develop AI Web Agents
https://docs.lavague.ai/en/latest/
Apache License 2.0
5.49k stars 505 forks source link

Create Tab Tool #617

Open dhruvahuja19 opened 1 month ago

dhruvahuja19 commented 1 month ago

Is your feature request related to a problem? Please describe. I recently used LaVague in the OpenAI X Pear Hackathon, and realized that LaVague doesn't support the creation of multiple tabs. Despite the existence of the "switch tabs" tool, there isn't a tool to actually create tabs, which makes the existing "switch tabs" tool pretty obselete if we are initializing LaVague with one tab (which seems to be a pretty common occurrence when performing web automations.

Describe the solution you'd like I've already coded the solution as I needed to create tabs for my hackathon project. It's not too much work; I basically just pattern matched the switch_tabs function. I created a function in base.py, added an elif clause in navigation.py, changed the prompt in world_model, etc.

Additional context I have it completely working.

dhruvahuja19 commented 1 month ago

I've built it out

rahul7932 commented 2 weeks ago

I agree