Skip to content

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.

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
2 if repo is sensitive 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 1
Sum 2

@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

@github-actions github-actions bot added the example New example agent label Jun 13, 2025
@scheuclu
Copy link
Author

Hey! I updated a file in the langchain-cdp-server-chatbot to also load our action provider.

It wont work though if you are on base-sepolia as our action-provider only supports mainnet.
(We generally find it much more useful to test on mainnet forks rather then testnets...)

If you change to mainnet, you'll see our actions there.

@scheuclu scheuclu requested a review from CarsonRoscoe June 13, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action provider New action provider example New example agent python

Development

Successfully merging this pull request may close these issues.

3 participants