-
Notifications
You must be signed in to change notification settings - Fork 82
Deepagents upgrade #719
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
base: main
Are you sure you want to change the base?
Deepagents upgrade #719
Conversation
updated version added example
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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). | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # 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.
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", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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). |
There was a problem hiding this comment.
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"
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.