Skip to content

CG-12194: Add Web Browsing Tool similar to Linear ViewIssue Tool#865

Draft
codegen-sh[bot] wants to merge 2 commits intodevelopfrom
gen/fd0a1ae1-0b19-4e07-9f07-216c5b565bc6
Draft

CG-12194: Add Web Browsing Tool similar to Linear ViewIssue Tool#865
codegen-sh[bot] wants to merge 2 commits intodevelopfrom
gen/fd0a1ae1-0b19-4e07-9f07-216c5b565bc6

Conversation

@codegen-sh
Copy link
Contributor

@codegen-sh codegen-sh bot commented Mar 16, 2025

This PR adds a new Web Browsing Tool that allows agents to browse web pages, search the web, and extract images from web pages. The implementation is similar to the Linear ViewIssue Tool, with the following components:

  1. Web Types: Defines data models for web pages, search results, and images
  2. Web Client: A client for making HTTP requests to web pages with error handling and content extraction
  3. Web Tools: Implementation of the core web browsing functionality
  4. LangChain Integration: Exposes the web browsing tools to the LangChain interface

The tools include:

  • web_browse_page: Browse a web page and extract its content
  • web_search: Search the web (placeholder implementation)
  • web_extract_images: Extract images from a web page

These tools will enable agents to access and process information from the web, similar to how they can access Linear issues.

Note: The search functionality is currently a placeholder and would need to be integrated with a search engine API (like Google Custom Search, Bing, or DuckDuckGo) for production use.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


codegen-bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant