langchainjs icon indicating copy to clipboard operation
langchainjs copied to clipboard

community[minor]: Add puppeteer agent tool

Open stevenmichaelthomas opened this issue 1 year ago • 4 comments

Adds puppeteer agent tool. When testing out projects using the in-built WebBrowser, we found the lack of JS execution with Cheerio to be challenging.

This instead leverages Puppeteer to handle full page execution, returning a lightly cleaned version of HTML, plus the ability to generate embeddings and send valid chunks to the specified model.

This is my first contribution here, so please let me know if I've missed anything, or if there is any feedback. Thank you!

stevenmichaelthomas avatar Jun 11 '24 19:06 stevenmichaelthomas

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2024 9:23pm
langchainjs-docs ✅ Ready (Inspect) Visit Preview Jun 13, 2024 9:23pm

vercel[bot] avatar Jun 11 '24 19:06 vercel[bot]

Hey @stevenmichaelthomas! Thanks for the PR. Looks really cool!

I ran yarn format and registered the entrypoint artifacts to langchain.config.js. Could you add some docs and possibly an integration test as well?

jacoblee93 avatar Jun 13 '24 21:06 jacoblee93

Thanks so much for the feedback! I'll incorporate changes and ping you when everything is added in and tests are passing.

stevenmichaelthomas avatar Jun 13 '24 21:06 stevenmichaelthomas

I like this idea

TimSusa avatar Aug 28 '24 12:08 TimSusa

Hey @stevenmichaelthomas, sorry to revive an old PR!

The community package has become rather unwieldy, so generally we recommend repackaging changes like this into a standalone NPM module. You can keep this in your own GitHub repo and publish it to NPM yourself without our involvement, but to make it discoverable you can still create a PR that adds a page about it in our integration docs.

We're happy to support this in any way we can, but adding additional maintenance burden to the langchain.js monorepo currently isn't tenable for us right now.

hntrl avatar Sep 11 '25 18:09 hntrl