Deepagents upgrade#719
Conversation
updated version added example
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Please update all references of Google toolkit (deprecated) to their more specific toolkit e.g., Gmail, GoogleDocs, etc. (including in the README)
EricGustin
left a comment
There was a problem hiding this comment.
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). | |||
There was a problem hiding this comment.
| 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 |
There was a problem hiding this comment.
| # 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 |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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). |
There was a problem hiding this comment.
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"
|
Closing since |
Note
Adds a DeepAgents-powered research agent example (Google Docs + Gmail with JIT OAuth) and updates dependencies to LangChain 1.x with supporting packages.
contrib/langchain/examples/withresearch_agent.py, README, and.envtemplate.langchain-coreto>=1.0.0.langgraphupper bound; adddeepagents,langchain-openai, andpython-dotenv.Written by Cursor Bugbot for commit 8f4f150. This will update automatically on new commits. Configure here.