Skip to content
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

feat: Add OpenGradient Action Provider #475

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,4 @@ AgentKit is licensed under the [Apache-2.0](LICENSE.md) license.

## 🔒 Legal and Privacy

The AgentKit software is novel and experimental, and is therefore provided on an AS-IS basis. The software is intended to be used only for the purposes of assisting with designing blockchain transactions and enabling other API integrations using natural language inputs, and is not intended to provide (i) an offer, or solicitation of an offer, to invest in, or to buy or sell, any interests or shares, or to participate in any investment or trading strategy, (ii) accounting, legal, tax advice, investment recommendations or other professional advice or (iii) an official statement of Coinbase. Acts proposed or performed by an agent through AgentKit software are NOT acts of Coinbase. You should consult with a professional advisor before making any decisions based on the information provided by the software. You are not permitted to use the proceeds of loans or credit to purchase digital assets on or through coinbase.com, Coinbase's APIs, the Coinbase mobile application, or any other Coinbase website or product, including AgentKit. No representation or warranty is made, expressed or implied, with respect to the accuracy, completeness, reliability, security, or suitability of the software or to any information provided in connection with the software. The risk of loss through use of the software can be substantial, and you assume any and all risks of loss and liability. The software may produce output that is inaccurate, incorrect, unpredictable or undesirable, and it is the user’s exclusive responsibility to evaluate the output and the use-case and determine whether it is appropriate. The right to use the software is contingent on your agreement to the [CDP Terms of Service](https://www.coinbase.com/legal/developer-platform/terms-of-service) (except to the extent it conflicts with the Apache-2.0 license).
The AgentKit software is novel and experimental, and is therefore provided on an AS-IS basis. The software is intended to be used only for the purposes of assisting with designing blockchain transactions and enabling other API integrations using natural language inputs, and is not intended to provide (i) an offer, or solicitation of an offer, to invest in, or to buy or sell, any interests or shares, or to participate in any investment or trading strategy, (ii) accounting, legal, tax advice, investment recommendations or other professional advice or (iii) an official statement of Coinbase. Acts proposed or performed by an agent through AgentKit software are NOT acts of Coinbase. You should consult with a professional advisor before making any decisions based on the information provided by the software. You are not permitted to use the proceeds of loans or credit to purchase digital assets on or through coinbase.com, Coinbase's APIs, the Coinbase mobile application, or any other Coinbase website or product, including AgentKit. No representation or warranty is made, expressed or implied, with respect to the accuracy, completeness, reliability, security, or suitability of the software or to any information provided in connection with the software. The risk of loss through use of the software can be substantial, and you assume any and all risks of loss and liability. The software may produce output that is inaccurate, incorrect, unpredictable or undesirable, and it is the user’s exclusive responsibility to evaluate the output and the use-case and determine whether it is appropriate. The right to use the software is contingent on your agreement to the [CDP Terms of Service](https://www.coinbase.com/legal/developer-platform/terms-of-service) (except to the extent it conflicts with the Apache-2.0 license).
8 changes: 7 additions & 1 deletion python/coinbase-agentkit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Coinbase AgentKit Changelog

<!-- towncrier release notes start -->
## Unreleased
- Added `read_eth_usdt_one_hour_volatility_forecast` to read live volatility forecasts using OpenGradient's ML workflow
- Added `read_btc_one_hour_price_forecast` to read live Bitcoin price forecasts using OpenGradient's ML workflow
- Added `read_eth_one_hour_price_forecast` to read live Ethereum price forecasts using OpenGradient's ML workflow
- Added `read_sol_one_hour_price_forecast` to read live Solana price forecasts using OpenGradient's ML workflow
- Added `prompt_dobby` to prompt the LLM `SentientAGI/Dobby-Mini-Unhinged-Llama-3.1-8B` through OpenGradient's network
- Added `prompt_qwen` to prompt the LLM `Qwen/Qwen2.5-72B-Instruct` through OpenGradient's network

## [0.2.0] - 2025-03-14

Expand Down
2 changes: 2 additions & 0 deletions python/coinbase-agentkit/coinbase_agentkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
erc20_action_provider,
hyperbolic_action_provider,
morpho_action_provider,
opengradient_action_provider,
pyth_action_provider,
ssh_action_provider,
superfluid_action_provider,
Expand Down Expand Up @@ -55,6 +56,7 @@
"erc20_action_provider",
"hyperbolic_action_provider",
"morpho_action_provider",
"opengradient_action_provider",
"pyth_action_provider",
"ssh_action_provider",
"superfluid_action_provider",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
hyperbolic_action_provider,
)
from .morpho.morpho_action_provider import MorphoActionProvider, morpho_action_provider
from .opengradient.opengradient_action_provider import (
OpenGradientActionProvider,
opengradient_action_provider,
)
from .pyth.pyth_action_provider import PythActionProvider, pyth_action_provider
from .ssh.ssh_action_provider import SshActionProvider, ssh_action_provider
from .superfluid.superfluid_action_provider import (
Expand Down Expand Up @@ -47,6 +51,8 @@
"hyperbolic_action_provider",
"MorphoActionProvider",
"morpho_action_provider",
"OpenGradientActionProvider",
"opengradient_action_provider",
"PythActionProvider",
"pyth_action_provider",
"SshActionProvider",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""OpenGradient action provider for on-chain AI inference."""
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# URL for OpenGradient block explorer
BLOCK_EXPLORER_URL = "https://explorer.opengradient.ai/"

# Workflow Contract Addresses
ETH_USDT_ONE_HOUR_VOLATILITY_ADDRESS = "0x58Dd93E1aE6B6f21b479b3B2913B055eFD2E74Ee"
BTC_ONE_HOUR_FORECAST_ADDRESS = "0x5DbC2b798501d08cF2957f005e25a5C34FAC2b1c"
ETH_ONE_HOUR_FORECAST_ADDRESS = "0x2064718C8AB2b725Ff54bdAdB1A007A8C0420316"
SOL_ONE_HOUR_FORECAST_ADDRESS = "0x7b7833492BcC9F76dc27a3D7AF2eAD1885E327d5"

# Default maximum token amount for OpenGraident LLM output
DEFAULT_MAX_TOKENS = 4096
Loading