-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add a web surfer agent that can search and browse the web. #888
Conversation
Example RunConfiguration:
Abridged Trace:
Detailed Trace (Click to Expand)``` Prompt:On peloton you earn badges for attending certain classes. What is the name of the class that has a Tragically Hip set list, and what badge(s) does it earn? web_surfer (to ai_assistant): On peloton you earn badges for attending certain classes. What is the name of the class that has a Tragically Hip set list, and what badge(s) does it earn? ai_assistant (to web_surfer): Web Surfer, can you search 'Tragically Hip set list class on Peloton and associated badges'?
Address: bing: Tragically Hip set list class on Peloton and associated badges
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #888 +/- ##
==========================================
+ Coverage 26.63% 34.38% +7.75%
==========================================
Files 28 30 +2
Lines 3777 4170 +393
Branches 858 968 +110
==========================================
+ Hits 1006 1434 +428
+ Misses 2700 2609 -91
- Partials 71 127 +56
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…ey can scroll up or down).
Superseded by #1093 |
* add cost budget; move loc of make_dir * remove None in return --------- Co-authored-by: Qingyun Wu <[email protected]>
[Work in Progress -- Updates welcome]
Why are these changes needed?
At present, AutoGen agents need to write code, or be set up with specific function-calling routines to gather information from the web. Inspired by OpenAI's WebGPT work, this PR adds a stateful agent that can command a (simulated) web browser. Add a WebSurferAgent to any conversation to instantly and seamlessly add web content and browsing abilities to your workflows.
This simulated web browser uses Bing web search and renders all webpages as Markdown. It supports a stateful scrollable viewport (to save you context tokens), as well as actions on that viewport (e.g., page up, page down, find on page). Given that this is largely driven by the python requests library and BeautifulSoup, JavaScript and other modern web content are not supported directly. In the future, this simulated browser can be replaced with a real headless browser (e.g., powered by Selenium).
Related issue number
#287 , #132 , etc.
Checks