-
Notifications
You must be signed in to change notification settings - Fork 445
Adding Compass Labs actions. #648
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?
Conversation
No tests.
🟡 Heimdall Review Status
|
No tests.
python/coinbase-agentkit/coinbase_agentkit/action_providers/compass/compass_action_provider.py
Outdated
Show resolved
Hide resolved
python/coinbase-agentkit/tests/action_providers/compass/test_compass_action_provider.py
Outdated
Show resolved
Hide resolved
…ompass_action_provider.py
Hey @murrlincoln Do you have any feedback on this already? |
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.
Hi @scheuclu, thank you for the contribution!
I have two questions,
-
I tried using
compass_action_provider()
in thelangchain-cdp-server-chatbot
example, but didn’t see any new actions added to the agent. Is there additional setup required to get this working? If so, could you include a working example in the examples/ folder that demonstrates the integration? -
It looks like this implementation is tightly coupled to Langchain. AgentKit action providers are meant to be framework-agnostic—they get wrapped into specific formats (like Langchain or OpenAI Agents) via the framework extension packages. The core action providers in AgentKit should ideally remain portable. That said, I'm not opposed to wrapping Langchain tools inside an AgentKit action provider, as long as the interface gets adapted to the AgentKit pattern.
Thank you for your time :)
Thanks for the answer! I'll rebase and make a concrete example. I am not sure I fully follow your last comment. Can you give an example as to what the correct agentit patter is @CarsonRoscoe |
This PR is adding Compass Labs actions to agentkit.
Description
This is done by utilizing the Compass Langchain Toolkit.
This toolkit provides full access to the Compass Labs DeFi API.
At the moment, there's about 45 actions and we are expanding it.
Tests
The Compass Toolkit provides about 45 tools. We write a matrix to call each tools with its example arguments.
Atm, 3 tools are failing because we are testing modifying existing postions on lending protocols. These positions got liquidated in the recent market turmoils. Should be fixed today(April 10th).
Checklist
A couple of things to include in your PR for completeness: