Skip to content

Deepagents upgrade#719

Closed
avoguru wants to merge 2 commits into
mainfrom
deepagents-upgrade
Closed

Deepagents upgrade#719
avoguru wants to merge 2 commits into
mainfrom
deepagents-upgrade

Conversation

@avoguru

@avoguru avoguru commented Dec 9, 2025

Copy link
Copy Markdown

Note

Adds a DeepAgents-powered research agent example (Google Docs + Gmail with JIT OAuth) and updates dependencies to LangChain 1.x with supporting packages.

  • Examples:
    • Add contrib/langchain/examples/ with research_agent.py, README, and .env template.
    • Research agent supports interactive/single-query modes, web search, Google Doc creation, and email delivery with just-in-time OAuth.
  • Dependencies:
    • Update langchain-core to >=1.0.0.
    • Dev extras: relax langgraph upper bound; add deepagents, langchain-openai, and python-dotenv.

Written by Cursor Bugbot for commit 8f4f150. This will update automatically on new commits. Configure here.

@codecov

codecov Bot commented Dec 9, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

key_tools = [
"Search_SearchGoogle", # Web search for research
"Google_CreateDocumentFromText", # Create research reports
"Google_SendEmail", # Email the reports

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Wrong tool name Google_SendEmail should be Gmail_SendEmail

The pre_authorize_tools function references "Google_SendEmail" and the system prompt also uses Google_SendEmail, but the code loads tools from the Gmail toolkit (line 251). Tools from the Gmail toolkit are prefixed with Gmail_, not Google_, so the correct tool name is Gmail_SendEmail. This mismatch causes the tool to not be found in manager.tools during pre-authorization, and the LLM will attempt to use a non-existent tool.

Additional Locations (1)

Fix in Cursor Fix in Web

@EricGustin EricGustin Dec 11, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update all references of Google toolkit (deprecated) to their more specific toolkit e.g., Gmail, GoogleDocs, etc. (including in the README)

@EricGustin EricGustin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @avoguru thanks for the contribution!

In addition to the comments below, the GIthub actions are failing due to linting errors.
Running make check from contrib/langchain should resolve this.

@@ -0,0 +1,187 @@
# LangChain-Arcade Examples

Examples demonstrating the integration between [Arcade AI](https://arcade.dev) tools and [LangChain](https://langchain.com)/[DeepAgents](https://github.com/langchain-ai/deepagents).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Examples demonstrating the integration between [Arcade AI](https://arcade.dev) tools and [LangChain](https://langchain.com)/[DeepAgents](https://github.com/langchain-ai/deepagents).
Examples demonstrating the integration between [Arcade](https://arcade.dev) tools and [LangChain](https://langchain.com)/[DeepAgents](https://github.com/langchain-ai/deepagents).

Edit `.env` with your credentials:

```env
# Get your Arcade API key at https://arcade.dev

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Get your Arcade API key at https://arcade.dev
# Get your Arcade API key at https://api.arcade.dev

key_tools = [
"Search_SearchGoogle", # Web search for research
"Google_CreateDocumentFromText", # Create research reports
"Google_SendEmail", # Email the reports

@EricGustin EricGustin Dec 11, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update all references of Google toolkit (deprecated) to their more specific toolkit e.g., Gmail, GoogleDocs, etc. (including in the README)

dependencies = [
"arcadepy>=1.7.0",
"langchain-core>=0.3.49,<0.4",
"langchain-core>=1.0.0",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you could tie these to the major version, then it will help prevent a dependency's breaking change from breaking this langchain-arcade library.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to bump langchain-arcade's version, otherwise it won't be published! Updating from version = "1.4.4" to version = "1.5.0" should do the trick.


An AI agent that researches topics, creates Google Docs reports, and emails them to you.

> **Note:** This example requires **Python 3.11+** (deepagents requirement).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean we need to update the pyproject.toml to define the project as only working with 3.11+? Currently it is requires-python = ">=3.10"

@EricGustin

Copy link
Copy Markdown
Member

Closing since langchain-arcade is deprecated

@EricGustin EricGustin closed this Feb 18, 2026
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.

2 participants