-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(agent): add BrowseURLAction to CodeAct (produce markdown from URL) #5285
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we evaluate this in some way? WebArena would be ideal, but barring that miniwob
@neubig this will ONLY be triggered when "http://" or "https://" keywords are detected from user messages -- which a lot of instances (if not all) in miniwob/webarena do not have, means these benchmark likely won't be able to evaluate this changes? |
I think miniwob and webarena tell you the URL to go to? (but if not, maybe they should...) |
@neubig no.. BrowserGym will automatically switch the given page before the eval kicks off. But anyway -- i made some modification and directly made an additional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this LGTM, thank you!
And just to clarify, I wanted to make sure that this didn't break our existing browsing functionality. I think the new solution definitely does not. And actually we might even want to turn the standard browsing functionality off in safety-critical settings, allowing only the web-page read tool. This seems like a great solution!
And I evaluated on a subset of SWE-Bench tasks (30) with browsing enabled - doesn't seem to confuse the agent as well. Will go ahead and merge this.
|
End-user friendly description of the problem this fixes or functionality that this introduces
This PR introduce two browsing mode for default CodeAct agent AND improves the agent's ability to read arbitrary documentation/web page on the internet.
web_read
: simply perform information gathering by browsing URL & convert HTML pages into a markdown file for LLM to comprehend, most useful to read documentation, github issues, etc. It also allows the agent to perform google search by directly visithttps://www.google.com/search?q=YOUR_QUERY
.browser
: more complex browsing that allows the agent to interact with the web page (clicking, input things into form, scroll up and down, etc).Give a summary of what the PR does, explaining any non-trivial design decisions
A new
web_read
tool that directly reads off a given URLScreenshot of it working:
Link of any specific issues this addresses
To run this PR locally, use the following command: