Skip to content

Conversation

@Peteredwardj
Copy link
Contributor

@Peteredwardj Peteredwardj commented Feb 12, 2025

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

  • Autonomous Mode: The new agentic mode where the agent follows a structured workflow graph, enabling task planning, execution, and self-evaluation.
  • Legacy Mode: The previous/default mode where the agent randomly selects tasks in each loop.

🚨 Note:

  • Autonomous mode is now the default implementation in agent.py
  • Legacy mode has been moved to legacy-agent.py

Autonomous 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

  1. Streamlined agent configuration files
    Check auto-example and legacy-example for new formats.
  2. Connections as Tools
    A new wrapper in BaseConnection converts connections into LangChain tools, making them readily available for the agent.
  3. Add command migrate to migrate your old agent configs to the new format
  4. Add command query to 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:

  1. Autonomous mode is still in early testing , and contributions are welcome!
  2. Use the new command migrate to easily migrate your agent json to the new format.

Architecture Diagram , designed by @MaxHuber888 :
Screenshot 2025-02-12 at 6 16 48 PM

@rux-eth
Copy link
Contributor

rux-eth commented Feb 20, 2025

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

@Peteredwardj
Copy link
Contributor Author

@ayoubed
Copy link
Contributor

ayoubed commented Mar 8, 2025

Nice @Peteredwardj, let's resolve the conflicts?

@Peteredwardj Peteredwardj requested review from rux-eth and removed request for rux-eth March 10, 2025 02:56
@Peteredwardj
Copy link
Contributor Author

@ayoubed resolved conflicts and fixed some bugs

@Peteredwardj Peteredwardj changed the base branch from main to staging March 11, 2025 19:51
@Peteredwardj Peteredwardj changed the base branch from staging to main March 11, 2025 19:52
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.

6 participants