Skip to content

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

scheuclu
Copy link

@scheuclu scheuclu commented Apr 3, 2025

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:

  • Added documentation to all relevant README.md files
  • Added a changelog entry

@scheuclu scheuclu requested a review from murrlincoln as a code owner April 3, 2025 12:56
@cb-heimdall
Copy link

cb-heimdall commented Apr 3, 2025

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@github-actions github-actions bot added action provider New action provider example New example agent python labels Apr 3, 2025
@scheuclu scheuclu marked this pull request as draft April 3, 2025 12:57
@scheuclu scheuclu changed the title First working version. Addin Compass Labs actions. Apr 3, 2025
@scheuclu scheuclu marked this pull request as ready for review April 10, 2025 10:33
@scheuclu scheuclu changed the title Addin Compass Labs actions. Adding Compass Labs actions. Apr 10, 2025
@scheuclu
Copy link
Author

Hey @murrlincoln

Do you have any feedback on this already?

@github-actions github-actions bot removed the example New example agent label May 27, 2025
Copy link
Contributor

@CarsonRoscoe CarsonRoscoe left a 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,

  1. I tried using compass_action_provider() in the langchain-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?

  2. 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 :)

@scheuclu
Copy link
Author

scheuclu commented Jun 5, 2025

Hi @scheuclu, thank you for the contribution!

I have two questions,

  1. I tried using compass_action_provider() in the langchain-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?
  2. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action provider New action provider python
Development

Successfully merging this pull request may close these issues.

3 participants