-
Notifications
You must be signed in to change notification settings - Fork 252
Agent V2: Autonomous Agent Capability #115
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
Open
Peteredwardj
wants to merge
75
commits into
main
Choose a base branch
from
peter/langgraph_integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…m-network/ZerePy into peter/langgraph_integration
Peteredwardj
commented
Feb 14, 2025
Peteredwardj
commented
Feb 14, 2025
Contributor
|
i couldnt get it to work with any other connections than twitter. when i tried doing onchain solana actions it always brought in twitter actions |
Contributor
Author
Contributor
|
Nice @Peteredwardj, let's resolve the conflicts? |
Contributor
Author
|
@ayoubed resolved conflicts and fixed some bugs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces Agent V2, that brings autonomous agent capabilities using LangChain and LangGraph. With this new mode, agents can plan their own tasks, execute chains of actions, and evaluate their own decisions, making them more powerful and agentic.
This work was done by @MaxHuber888 and me.
🔑 Key Terms
🚨 Note:
agent.pylegacy-agent.pyAutonomous Mode
A new structured workflow that allows the agent to:
✅ Plan and execute tasks independently, rather than randomly selecting actions.
✅ Use any connection as a LangChain tool, simplifying integrations and reducing manual work.
✅ Perform multi-step actions in natural language, e.g.,
"Tweet the contract address of Zerebro on Solana and include the price."Legacy mode remains available, but existing agent config files must be updated to the new format for compatibility. Use the new command : migrate to easily migrate your agent json to the new format.
Enhancements & Changes
Check auto-example and legacy-example for new formats.
A new wrapper in
BaseConnectionconverts connections into LangChain tools, making them readily available for the agent.migrateto migrate your old agent configs to the new formatqueryto give you the ability to feed single task to the autonomous agent quickly. Useful for testing, or just accomplishing single tasks (with no loop)Notes & Considerations:
Architecture Diagram , designed by @MaxHuber888 :
