Skip to content

feat: Adds Allora Network price inference to the CDP AgentKit (python) - #110

Merged
0xRAG merged 2 commits into
coinbase:mainfrom
allora-network:feat/allora-network-integration
Mar 13, 2025
Merged

feat: Adds Allora Network price inference to the CDP AgentKit (python)#110
0xRAG merged 2 commits into
coinbase:mainfrom
allora-network:feat/allora-network-integration

Conversation

@fernandofcampos

@fernandofcampos fernandofcampos commented Jan 15, 2025

Copy link
Copy Markdown
Contributor

Relates to:

N/A

Risks

Low

Background

Allora Network is an AI-powered inference platform that delivers real-time, self-improving forecasts and insights for various use cases. By aggregating and analyzing data from diverse sources—such as blockchain networks and off-chain APIs—Allora seamlessly provides low-latency, high-performance analytics without requiring complex infrastructure. The platform’s intuitive approach allows developers to focus on building intelligence-driven solutions, while Allora takes care of the heavy lifting behind the scenes.

What does this PR do?

This PR implements actions that enables agents to leverage the AI price inference available on Allora Network.

What kind of change is this?

Features (non-breaking change which adds functionality)

Why are we doing this? Any context or related work?

We aim to bring real-time, self-improving AI inferences into CDP AgentKit, without any complex infrastructure setup needed. This helps broaden the ecosystem of AI-enabled tools and boosts the agents' ability to provide advanced market insights.

Documentation changes needed?

My changes do not require a change to the project documentation.

Testing

Where should a reviewer start?
Most of the changes are in python/cdp-agentkit-core/cdp_agentkit_core/actions/allora folder.

Detailed testing steps

Available modes:
1. chat    - Interactive chat mode
2. auto    - Autonomous action mode

Choose a mode (enter number or name): 1
Starting chat mode... Type 'exit' to end.

Prompt: get allora topics

-------------------
The available topics at Allora Network are:
 [{"topic_id": 22, "topic_name": "Virtual 5min Price Prediction", "description": null, "epoch_length": 30, "ground_truth_lag": 30, "loss_method": "mse", "worker_submission_window": 6, "worker_count": 14, "reputer_count": 5, "total_staked_allo": 1.0000000001002, "total_emissions_allo": 1.2102223958613374, "is_active": true, "updated_at": "2025-03-11T21:15:30.095Z"}, {"topic_id": 27, "topic_name": "Sekoia 5min Price Prediction", "description": null, "epoch_length": 30, "ground_truth_lag": 30, "loss_method": "mse", "worker_submission_window": 6, "worker_count": 10, "reputer_count": 1, "total_staked_allo": 2e-13, "total_emissions_allo": 0.001728773582304731, "is_active": true, "updated_at": "2025-03-11T21:15:30.095Z"}, {"topic_id": 26, "topic_name": "G.A.M.E 5min Price Prediction", "description": null, "epoch_length": 30, "ground_truth_lag": 30, "loss_method": "mse", "worker_submission_window": 6, "worker_count": 12, "reputer_count": 2, "total_staked_allo": 1.00002e-08, "total_emissions_allo": 0.09071685811887609, "is_active": true, "updated_at": "2025-03-11T21:15:30.095Z"}, {"topic_id": 25, "topic_name": "VaderAI 5min Price Prediction", "description": null, "epoch_length": 30, "ground_truth_lag": 30, "loss_method": "mse", "worker_submission_window": 6, "worker_count": 12, "reputer_count": 2, "total_staked_allo": 1.00002e-08, "total_emissions_allo": 0.07812054952082793, "is_active": true, "updated_at": "2025-03-11T21:15:30.095Z"}, {"topic_id": 24, "topic_name": "Luna 5min Price Prediction", "description": null, "epoch_length": 30, "ground_truth_lag": 30, "loss_method": "mse", "worker_submission_window": 6, "worker_count": 10, "reputer_count": 4, "total_staked_allo": 1.01002e-08, "total_emissions_allo": 0.2532634509362148, "is_active": true, "updated_at": "2025-03-11T21:15:30.095Z"}, {"topic_id": 23, "topic_name": "Aixbt 5min Price Prediction", "description": null, "epoch_length": 30, "ground_truth_lag": 30, "loss_method": "mse", "worker_submission_window": 6, "worker_count": 8, "reputer_count": 5, "total_staked_allo": 0.8232356002936814, "total_emissions_allo": 0.2668830021310592, "is_active": true, "updated_at": "2025-03-11T21:15:30.095Z"}, {"topic_id": 38, "topic_name": "SOL/USD - 8h Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 12, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 2.364527146167877, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 28, "topic_name": "ETH/USD - 12h Volatility Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 5082, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 118, "reputer_count": 3, "total_staked_allo": 6.05e-11, "total_emissions_allo": 9.298069491604041, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 29, "topic_name": "Arbitrum ETH/USDC Uniswap Pool - 12h Volume Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 5082, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 113, "reputer_count": 3, "total_staked_allo": 1.002e-10, "total_emissions_allo": 15.505358347497136, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 30, "topic_name": "ETH/USD - 5min Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 35, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 123, "reputer_count": 3, "total_staked_allo": 0.0010000002, "total_emissions_allo": 15.664503944804743, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 31, "topic_name": "Virtual/USDT - 8h Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 12, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 1.576619248794178, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 32, "topic_name": "Aixbt/USDT - 8h Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 12, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 1.6701300897072233, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 33, "topic_name": "Luna/USDT - 8h Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 12, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 1.73062312984903, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 34, "topic_name": "VaderAI/USDT - 8h Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 10, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 2.1928761138865136, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 35, "topic_name": "Game/USDT - 8h Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 12, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 1.7883555298643792, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 36, "topic_name": "Sekoia/USDT - 8h Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 12, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 1.145604617700147, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 37, "topic_name": "SOL/USD - 5min Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 35, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 12, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 2.103665682412457, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 39, "topic_name": "SOL/USD - 5min Volatility Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 35, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 4, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 6.605556183581237, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 40, "topic_name": "SOL/USD - 8h Volatility Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 4, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 12.297363003017537, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 41, "topic_name": "ETH/USD - 8h Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 12, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 2.7978992834051564, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 42, "topic_name": "BTC/USD - 8h Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 6, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 4.815960765525683, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 43, "topic_name": "ETH/USD - 8h Volatility Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 6, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 12.50672052396147, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 44, "topic_name": "BTC/USD - 8h Volatility Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 3388, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 4, "reputer_count": 1, "total_staked_allo": 1e-13, "total_emissions_allo": 25.371578251033686, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 46, "topic_name": "ETH/USDC - 6h Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 2700, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 0, "reputer_count": 0, "total_staked_allo": 0.0, "total_emissions_allo": 0.0, "is_active": false, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 47, "topic_name": "5 min BTC Price Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 40, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 105, "reputer_count": 1, "total_staked_allo": 0.0, "total_emissions_allo": 9.001039133925806, "is_active": true, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 49, "topic_name": "6h BTC Volatility Prediction", "description": null, "epoch_length": 35, "ground_truth_lag": 60, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 0, "reputer_count": 0, "total_staked_allo": 0.0, "total_emissions_allo": 0.0, "is_active": false, "updated_at": "2025-03-11T21:15:05.095Z"}, {"topic_id": 50, "topic_name": "6h BTC Volatility Prediction", "description": null, "epoch_length": 51, "ground_truth_lag": 3927, "loss_method": "mse", "worker_submission_window": 9, "worker_count": 110, "reputer_count": 3, "total_staked_allo": 2.05e-11, "total_emissions_allo": 11.514752517865913, "is_active": true, "updated_at": "2025-03-11T21:13:45.095Z"}, {"topic_id": 14, "topic_name": "BTC 5min Prediction", "description": null, "epoch_length": 60, "ground_truth_lag": 60, "loss_method": "mse", "worker_submission_window": 12, "worker_count": 19452, "reputer_count": 9, "total_staked_allo": 0.0100000000008, "total_emissions_allo": 1.4749813118546402, "is_active": true, "updated_at": "2025-03-11T21:13:00.095Z"}, {"topic_id": 13, "topic_name": "ETH 5min Prediction", "description": null, "epoch_length": 60, "ground_truth_lag": 60, "loss_method": "mse", "worker_submission_window": 12, "worker_count": 20509, "reputer_count": 10, "total_staked_allo": 0.030000000101100006, "total_emissions_allo": 1.5033050015100407, "is_active": true, "updated_at": "2025-03-11T21:13:00.095Z"}, {"topic_id": 16, "topic_name": "BTC 5min Volatility Prediction", "description": null, "epoch_length": 60, "ground_truth_lag": 60, "loss_method": "mse", "worker_submission_window": 12, "worker_count": 564, "reputer_count": 7, "total_staked_allo": 0.0100000000112, "total_emissions_allo": 9.341268153600351, "is_active": true, "updated_at": "2025-03-11T21:13:00.095Z"}, {"topic_id": 15, "topic_name": "ETH 5min Volatility Prediction", "description": null, "epoch_length": 60, "ground_truth_lag": 60, "loss_method": "mse", "worker_submission_window": 12, "worker_count": 919, "reputer_count": 9, "total_staked_allo": 0.010000000001300004, "total_emissions_allo": 7.482535041735979, "is_active": true, "updated_at": "2025-03-11T21:13:00.095Z"}, {"topic_id": 3, "topic_name": "BTC 10min Prediction", "description": null, "epoch_length": 120, "ground_truth_lag": 120, "loss_method": "mse", "worker_submission_window": 12, "worker_count": 32610, "reputer_count": 3170, "total_staked_allo": 7.7716359265438015, "total_emissions_allo": 2.548765976245809, "is_active": true, "updated_at": "2025-03-11T21:08:00.095Z"}, {"topic_id": 1, "topic_name": "ETH 10min Prediction", "description": null, "epoch_length": 120, "ground_truth_lag": 120, "loss_method": "mse", "worker_submission_window": 12, "worker_count": 34968, "reputer_count": 3350, "total_staked_allo": 9.232453019009636, "total_emissions_allo": 39.322177237811836, "is_active": true, "updated_at": "2025-03-11T21:08:00.095Z"}, {"topic_id": 5, "topic_name": "SOL 10min Prediction", "description": null, "epoch_length": 120, "ground_truth_lag": 120, "loss_method": "mse", "worker_submission_window": 12, "worker_count": 26877, "reputer_count": 2737, "total_staked_allo": 1.0200000004893, "total_emissions_allo": 6.811021904294056, "is_active": true, "updated_at": "2025-03-11T21:08:00.095Z"}, {"topic_id": 45, "topic_name": "SUI/USDT - 30min Spot Return Prediction", "description": null, "epoch_length": 212, "ground_truth_lag": 212, "loss_method": "mse", "worker_submission_window": 53, "worker_count": 0, "reputer_count": 0, "total_staked_allo": 0.0, "total_emissions_allo": 0.0, "is_active": false, "updated_at": "2025-03-11T21:00:20.095Z"}, {"topic_id": 48, "topic_name": "SUI/USDT - 30min Price Prediction", "description": null, "epoch_length": 212, "ground_truth_lag": 212, "loss_method": "mse", "worker_submission_window": 53, "worker_count": 0, "reputer_count": 0, "total_staked_allo": 1e-13, "total_emissions_allo": 0.0, "is_active": true, "updated_at": "2025-03-11T21:00:20.095Z"}, {"topic_id": 9, "topic_name": "ARB 20min Prediction", "description": null, "epoch_length": 240, "ground_truth_lag": 240, "loss_method": "mse", "worker_submission_window": 24, "worker_count": 16645, "reputer_count": 3201, "total_staked_allo": 4.588594317931484, "total_emissions_allo": 7.03520033390396, "is_active": true, "updated_at": "2025-03-11T20:58:00.095Z"}, {"topic_id": 7, "topic_name": "ETH 20min Prediction", "description": null, "epoch_length": 240, "ground_truth_lag": 240, "loss_method": "mse", "worker_submission_window": 24, "worker_count": 20584, "reputer_count": 3156, "total_staked_allo": 6.019347117423307, "total_emissions_allo": 1.6874030047424857, "is_active": true, "updated_at": "2025-03-11T20:58:00.095Z"}, {"topic_id": 8, "topic_name": "BNB 20min Prediction", "description": null, "epoch_length": 240, "ground_truth_lag": 240, "loss_method": "mse", "worker_submission_window": 24, "worker_count": 16701, "reputer_count": 3101, "total_staked_allo": 2.215663816126758, "total_emissions_allo": 7.060842946109073, "is_active": true, "updated_at": "2025-03-11T20:58:00.095Z"}, {"topic_id": 10, "topic_name": "Memecoin 1h Prediction", "description": null, "epoch_length": 720, "ground_truth_lag": 720, "loss_method": "mse", "worker_submission_window": 60, "worker_count": 3571, "reputer_count": 414, "total_staked_allo": 19.001003002071883, "total_emissions_allo": 30.41934140280168, "is_active": true, "updated_at": "2025-03-11T20:18:00.095Z"}, {"topic_id": 19, "topic_name": "ETH 8h Volatility Prediction", "description": null, "epoch_length": 5760, "ground_truth_lag": 5760, "loss_method": "mse", "worker_submission_window": 576, "worker_count": 0, "reputer_count": 7, "total_staked_allo": 1.13e-11, "total_emissions_allo": 3.4415549914737484, "is_active": true, "updated_at": "2025-03-11T13:18:00.095Z"}, {"topic_id": 17, "topic_name": "ETH 8h Prediction", "description": null, "epoch_length": 5760, "ground_truth_lag": 5760, "loss_method": "mse", "worker_submission_window": 576, "worker_count": 15, "reputer_count": 8, "total_staked_allo": 8e-13, "total_emissions_allo": 0.5754914406511176, "is_active": true, "updated_at": "2025-03-11T13:18:00.095Z"}, {"topic_id": 18, "topic_name": "BTC 8h Prediction", "description": null, "epoch_length": 5760, "ground_truth_lag": 5760, "loss_method": "mse", "worker_submission_window": 576, "worker_count": 15, "reputer_count": 8, "total_staked_allo": 8e-13, "total_emissions_allo": 0.5602857874754996, "is_active": true, "updated_at": "2025-03-11T13:18:00.095Z"}, {"topic_id": 20, "topic_name": "BTC 8h Volatility Prediction", "description": null, "epoch_length": 5760, "ground_truth_lag": 5760, "loss_method": "mse", "worker_submission_window": 576, "worker_count": 0, "reputer_count": 6, "total_staked_allo": 1.13e-11, "total_emissions_allo": 2.5104855413172036, "is_active": true, "updated_at": "2025-03-11T13:18:00.095Z"}, {"topic_id": 21, "topic_name": "ETH 8h Prediction", "description": null, "epoch_length": 5760, "ground_truth_lag": 5760, "loss_method": "mse", "worker_submission_window": 576, "worker_count": 0, "reputer_count": 0, "total_staked_allo": 0.0, "total_emissions_allo": 0.0, "is_active": false, "updated_at": "2025-03-11T13:18:00.095Z"}, {"topic_id": 11, "topic_name": "US Presidential Election 2024 - Winning Party", "description": null, "epoch_length": 17280, "ground_truth_lag": 17280, "loss_method": "mse", "worker_submission_window": 60, "worker_count": 515, "reputer_count": 325, "total_staked_allo": 1.0100000000274, "total_emissions_allo": 50.407650927040386, "is_active": true, "updated_at": "2025-03-10T21:18:00.095Z"}, {"topic_id": 6, "topic_name": "SOL 24h Prediction", "description": null, "epoch_length": 17280, "ground_truth_lag": 17280, "loss_method": "mse", "worker_submission_window": 60, "worker_count": 952, "reputer_count": 419, "total_staked_allo": 3.111537814736778, "total_emissions_allo": 7.431265575792692, "is_active": true, "updated_at": "2025-03-10T21:18:00.095Z"}, {"topic_id": 2, "topic_name": "ETH 24h Prediction", "description": null, "epoch_length": 17280, "ground_truth_lag": 17280, "loss_method": "mse", "worker_submission_window": 60, "worker_count": 954, "reputer_count": 2863, "total_staked_allo": 6.100419575798628, "total_emissions_allo": 2.2981083470002126, "is_active": true, "updated_at": "2025-03-10T21:18:00.095Z"}, {"topic_id": 4, "topic_name": "BTC 24h Prediction", "description": null, "epoch_length": 17280, "ground_truth_lag": 17280, "loss_method": "mse", "worker_submission_window": 60, "worker_count": 985, "reputer_count": 421, "total_staked_allo": 2.516207657119209, "total_emissions_allo": 3.1469521350037812, "is_active": true, "updated_at": "2025-03-10T21:18:00.095Z"}, {"topic_id": 12, "topic_name": "ETH prediction in 24h", "description": null, "epoch_length": 86400, "ground_truth_lag": 86400, "loss_method": "mse", "worker_submission_window": 60, "worker_count": 0, "reputer_count": 0, "total_staked_allo": 0.0, "total_emissions_allo": 0.0, "is_active": false, "updated_at": "2025-03-06T21:18:00.095Z"}]
-------------------
Here are the available topics from the Allora Network:

1. **Virtual 5min Price Prediction** (ID: 22)
2. **Sekoia 5min Price Prediction** (ID: 27)
3. **G.A.M.E 5min Price Prediction** (ID: 26)
4. **VaderAI 5min Price Prediction** (ID: 25)
5. **Luna 5min Price Prediction** (ID: 24)
6. **Aixbt 5min Price Prediction** (ID: 23)
7. **SOL/USD - 8h Price Prediction** (ID: 38)
8. **ETH/USD - 12h Volatility Prediction** (ID: 28)
9. **Arbitrum ETH/USDC Uniswap Pool - 12h Volume Prediction** (ID: 29)
10. **ETH/USD - 5min Price Prediction** (ID: 30)
11. **Virtual/USDT - 8h Price Prediction** (ID: 31)
12. **Aixbt/USDT - 8h Price Prediction** (ID: 32)
13. **Luna/USDT - 8h Price Prediction** (ID: 33)
14. **VaderAI/USDT - 8h Price Prediction** (ID: 34)
15. **Game/USDT - 8h Price Prediction** (ID: 35)
16. **Sekoia/USDT - 8h Price Prediction** (ID: 36)
17. **SOL/USD - 5min Price Prediction** (ID: 37)
18. **SOL/USD - 5min Volatility Prediction** (ID: 39)
19. **SOL/USD - 8h Volatility Prediction** (ID: 40)
20. **ETH/USD - 8h Price Prediction** (ID: 41)
21. **BTC/USD - 8h Price Prediction** (ID: 42)
22. **ETH/USD - 8h Volatility Prediction** (ID: 43)
23. **BTC/USD - 8h Volatility Prediction** (ID: 44)
24. **ETH/USDC - 6h Price Prediction** (ID: 46)
25. **5 min BTC Price Prediction** (ID: 47)
26. **6h BTC Volatility Prediction** (ID: 49)
27. **6h BTC Volatility Prediction** (ID: 50)
28. **BTC 5min Prediction** (ID: 14)
29. **ETH 5min Prediction** (ID: 13)
30. **BTC 5min Volatility Prediction** (ID: 16)
31. **ETH 5min Volatility Prediction** (ID: 15)
32. **BTC 10min Prediction** (ID: 3)
33. **ETH 10min Prediction** (ID: 1)
34. **SOL 10min Prediction** (ID: 5)
35. **SUI/USDT - 30min Spot Return Prediction** (ID: 45)
36. **SUI/USDT - 30min Price Prediction** (ID: 48)
37. **ARB 20min Prediction** (ID: 9)
38. **ETH 20min Prediction** (ID: 7)
39. **BNB 20min Prediction** (ID: 8)
40. **Memecoin 1h Prediction** (ID: 10)
41. **ETH 8h Volatility Prediction** (ID: 19)
42. **ETH 8h Prediction** (ID: 17)
43. **BTC 8h Prediction** (ID: 18)
44. **BTC 8h Volatility Prediction** (ID: 20)
45. **ETH 8h Prediction** (ID: 21)
46. **US Presidential Election 2024 - Winning Party** (ID: 11)
47. **SOL 24h Prediction** (ID: 6)
48. **ETH 24h Prediction** (ID: 2)
49. **BTC 24h Prediction** (ID: 4)
50. **ETH prediction in 24h** (ID: 12)

If you need more details about any specific topic, let me know!
-------------------

Prompt: get inference for topic 47

-------------------
The inference for topic 47 is:
 {"network_inference": "83060032720684358732457", "network_inference_normalized": "83060.032720684358732457", "confidence_interval_percentiles": ["2280000000000000000", "15870000000000000000", "50000000000000000000", "84130000000000000000", "97720000000000000000"], "confidence_interval_percentiles_normalized": ["2.28", "15.87", "50.0", "84.13", "97.72"], "confidence_interval_values": ["82786963168156800000000", "82991137071733260000000", "83085850482671140000000", "83126074584816180000000", "83231275372114500000000"], "confidence_interval_values_normalized": ["82786.9631681568", "82991.13707173326", "83085.85048267114", "83126.07458481618", "83231.2753721145"], "topic_id": "47", "timestamp": 1741727610, "extra_data": "0x"}
-------------------
Here is the inference for topic **47 (5 min BTC Price Prediction)**:

- **Network Inference**: 83,060,032,720,684,358,732,457
- **Normalized Network Inference**: 83,060.032720684358732457

**Confidence Interval Percentiles**:
- 2.28%
- 15.87%
- 50.0%
- 84.13%
- 97.72%

**Confidence Interval Values**:
- 82,786,963,168,156,800,000,000
- 82,991,137,071,733,260,000,000
- 83,085,850,482,671,140,000,000
- 83,126,074,584,816,180,000,000
- 83,231,275,372,114,500,000,000

**Normalized Confidence Interval Values**:
- 82,786.9631681568
- 82,991.13707173326
- 83,085.85048267114
- 83,126.07458481618
- 83,231.2753721145

- **Timestamp**: 1741727610
- **Extra Data**: 0x

If you need more information or another inference, just let me know!
-------------------

Prompt: get btc price in 8h

-------------------
e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43
-------------------

-------------------
82963.90
-------------------
The current price of Bitcoin (BTC) is **$82,963.90**. If you need further assistance or more information, feel free to ask!
-------------------

@cb-heimdall

cb-heimdall commented Jan 15, 2025

Copy link
Copy Markdown

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/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

@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch 4 times, most recently from 1d63a63 to 743b22f Compare January 17, 2025 16:06
@fernandofcampos fernandofcampos changed the title Adds Allora Network AI price prediction to the CDP AgentKit Adds Allora Network AI price inference to the CDP AgentKit Jan 22, 2025
@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch 2 times, most recently from ecca75f to ef08d19 Compare January 23, 2025 02:26
@fernandofcampos fernandofcampos changed the title Adds Allora Network AI price inference to the CDP AgentKit feat: Adds Allora Network AI price inference to the CDP AgentKit Jan 23, 2025
@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch 2 times, most recently from 838c2f1 to e78c94a Compare January 27, 2025 02:28
@John-peterson-coinbase John-peterson-coinbase added action New action implemented on existing action provider triaged cherry labels Feb 10, 2025
@0xRAG 0xRAG removed the triaged label Feb 10, 2025
@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch from e645f3a to ef1ab58 Compare February 11, 2025 21:58
@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch 5 times, most recently from bd4d6ce to e0710c0 Compare February 11, 2025 23:20
@fernandofcampos fernandofcampos changed the title feat: Adds Allora Network AI price inference to the CDP AgentKit feat: Adds Allora Network AI price inference to the CDP AgentKit (python) Feb 12, 2025
@fernandofcampos fernandofcampos changed the title feat: Adds Allora Network AI price inference to the CDP AgentKit (python) feat: Adds Allora Network price inference to the CDP AgentKit (python) Feb 12, 2025
@0xRAG

0xRAG commented Feb 13, 2025

Copy link
Copy Markdown
Contributor

Hey @fernandofcampos we just released Python v0.1.0, which includes a major change to how actions are structured! Please reference the docs for instructions on creating actions in the new pattern, or reference an implementation, then rebase your branch on main.

Let me know if you have any questions, thanks!

@0xRAG 0xRAG added python changes requested PR / Issue has changes requested action provider New action provider and removed action New action implemented on existing action provider labels Feb 13, 2025
@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch from e0710c0 to 665522a Compare February 17, 2025 22:58
@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch 5 times, most recently from eb38956 to 5e69b93 Compare March 11, 2025 21:38
@github-actions github-actions Bot added the example New example agent label Mar 11, 2025
@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch 2 times, most recently from 2b3cc67 to 83546f2 Compare March 11, 2025 22:03
@fernandofcampos

Copy link
Copy Markdown
Contributor Author

@fernandofcampos thanks for updating the PR, and thanks for your patience! Overall the code looks reasonable, I left some comments and nits. There are a few more items to get through before we can merge:

  1. Please add samples of how you tested with the chatbot end-to-end to the PR description
  2. Please rebase the PR on main
  3. Please run the linter / formatter. See here for more info
  4. Please add a README.md to the allora folder. See here for more info
  5. Please add a changelog entry. See here for more info

Once these items are addressed, we can merge 🚀

Thank you!

Hi @0xRAG . Thanks for the review! All changes are done, let me know if I can help with anything else.

Comment thread python/create-onchain-agent/templates/chatbot/chatbot.py.jinja Outdated
Comment thread python/coinbase-agentkit/tests/action_providers/allora/README.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for simplicity, we should leave the only entry point to running the integration tests to be via pytest -m integration

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I suggest is adding this to the Makefile:

.PHONY: test
test:
	poetry run pytest -m "not integration"

.PHONY: test-integration
test-integration:
	poetry run pytest -m integration

Then we can remove the ALLORA_RUN_INTEGRATION_TESTS env var, and the pytest_collection_modifyitems function in the conftest.py

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch 2 times, most recently from 2c52c3c to fa1723c Compare March 12, 2025 22:05
@0xRAG

0xRAG commented Mar 12, 2025

Copy link
Copy Markdown
Contributor

@fernandofcampos I'm getting this error, have you seen it before?

Prompt: get btc price in 8h

-------------------
Error: AttributeError("'str' object has no attribute 'value'")
 Please fix your mistakes.
-------------------
There seems to be an internal error while trying to fetch the BTC price prediction for the next 8 hours. Please try again later.
-------------------

@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch 2 times, most recently from 0bc6278 to f20bdba Compare March 12, 2025 22:23
Comment thread python/coinbase-agentkit/Makefile Outdated
Comment on lines 20 to 46

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These can be removed now that we are relying on the integration flag

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch 3 times, most recently from 0ffcd17 to e69565a Compare March 13, 2025 01:00
@fernandofcampos
fernandofcampos force-pushed the feat/allora-network-integration branch from e69565a to 677f7fe Compare March 13, 2025 01:08
@fernandofcampos

Copy link
Copy Markdown
Contributor Author

@fernandofcampos I'm getting this error, have you seen it before?

Prompt: get btc price in 8h

-------------------
Error: AttributeError("'str' object has no attribute 'value'")
 Please fix your mistakes.
-------------------
There seems to be an internal error while trying to fetch the BTC price prediction for the next 8 hours. Please try again later.
-------------------

There was a small bug in the code, it should work now.

@0xRAG 0xRAG left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @fernandofcampos! 🚀

@0xRAG
0xRAG merged commit 9e7c530 into coinbase:main Mar 13, 2025
chenciao8 added a commit to TradeOnDESK/agentkit that referenced this pull request Mar 19, 2025
* feat: GHA Publish coinbase-agentkit-openai-agents-sdk to PyPI (coinbase#551)

* feat: python openai agents sdk support (coinbase#550)

* feat: initial commit

* chore: unit tests

* chore: updated readmes

* chore: updated to live openai-agents package

* fix: fix params schema to conform to openai requirements

* chore: updated README in /python

* chore: generated changelog changes (coinbase#552)

* chore: add next-template to workspaces (coinbase#544)

* chore: add next-template to workspaces

* chore: fix lint in next template

* chore: generated changeset

* chore: reverted img change

---------

Co-authored-by: CarsonRoscoe <carsonroscoe7@gmail.com>

* chore: python bump cdp sdk version (coinbase#554)

* chore: bump cdp-sdk version from 0.19.0 to 0.21.0 in python

* chore: generated changelog

* chore: generate changelog changes & bump coinbase-agentkit version

* Update README.md (coinbase#555)

* feat: model context protocol example (coinbase#546)

* feat: initial commit

* feat: working claude example

* chore: removed wallet read/writes

* chore: updated README

* chore: added examples to parent READMEs

* chore: format/lint

* chore: added build to ignore

* fix: package dependencies

* chore: change build folder to dist

* chore: package-lock

* chore: fixed package-lock.json

* chore: removed dotenv dependency

* chore: removed moduleResolution from tsconfig

* fix: package-lock

* pr feedback

* chore: lint format

* fix: package-lock

* fix: claud config arg for server location

* feat: pr feedback

* feat: npm cli - multi framework + Vercel AI SDK (coinbase#548)

* feat: initial commit

* fix: handleNextSelection call

* chore: format and lint

* chore: updated comments

* chore: changelog

* chore: updated readmes

* chore: added todo and removed MCP from Framework list for now

* chore: removed references to mcpServer and MCP. Will readd in its own PR

* chore: updated package-lock

* chore: removed missed mcpServer reference

* chore: lint

* chore: infer types from constants (coinbase#559)

* feat(python): add allora network price inference (coinbase#110)

* fix typo: OpenSeas to OpenSea (coinbase#564)

* fix typo (coinbase#563)

* feat: pipx cli - multi framework support + OpenAI Agents + Beginner template (coinbase#557)

* chore: refactored chatbot into prepare_agent, create_agent and chatbot

* feat: added openai agents sdk

* chore: pyproject.toml dependencies depends on framework selected

* fix: openai agents sdk dependencies

* feat: added paymaster comment to smart wallet scenario

* feat: added introduction template

* feat: cleaned up beginner template

* feat: changed --mode=beginnner arg to --beginner flag

* feat: improved wallet persistance and beginner flag

* chore: changelog

* chore: updated README

* chore: lint

* chore: updated beginner README

* feat(ts): defillama action provider (coinbase#513)

* feat(ts): defillama action provider (coinbase#316)

* feat(ts): defillama action provider refinements (coinbase#513)

---------

Co-authored-by: bilgin-kocak <kocakbilgin@gmail.com>

* chore: rm changelog workflow (coinbase#570)

* chore: add mcp template (coinbase#568)

* fix: readded missing .env.local file (coinbase#567)

* feat(py): hyperbolic action provider (coinbase#531)

* feat(py): hyperbolic action provider (coinbase#154)

* feat(py): hyperbolic action provider 0.1.0 migration (coinbase#509)

* feat(py): hyperbolic action provider refinements (coinbase#531)

---------

Co-authored-by: Kai Huang <kaihuang724@gmail.com>
Co-authored-by: Amr Elhady <theamrelhady@gmail.com>

* chore: fix nightly (coinbase#571)

* feat(create-onchain-agent): add mcp to typescript cli (coinbase#569)

* fix: Morpho Deposit Atomic Unit Conversion (coinbase#573)

* fix: Morpho Deposit Atomic Unit Conversion

* changesets

* chore: rm allora-sdk from example deps (coinbase#574)

* chore: added readme tip to surpress warning (coinbase#575)

* chore: added readme tip to surpress warning

* chore: added tip to agents example readme

* chore: version typescript packages (coinbase#576)

* chore: version python packages (coinbase#577)

* New SVGs in readme (coinbase#578)

* Add files via upload

* Add files via upload

* Update README.md

* Update README.md

* Update defillama.svg

* chore: add changesets action to automate version and publish (coinbase#582)

* feat: added gasless transfers for USDC/CBBTC on Base/Base-Sepolia (coinbase#584)

* docs: update broken links (coinbase#586)

---------

Co-authored-by: John Peterson <98187317+John-peterson-coinbase@users.noreply.github.com>
Co-authored-by: Carson Roscoe <CarsonRoscoe7@gmail.com>
Co-authored-by: Ryan Gilbert <ryangilbert7926@gmail.com>
Co-authored-by: Olexandr88 <radole1203@gmail.com>
Co-authored-by: fernandofcampos <fernandofcampos@gmail.com>
Co-authored-by: Oğuzhan Oğuz <46710637+ozzy35410@users.noreply.github.com>
Co-authored-by: Chris Gerber <csgerber@gmail.com>
Co-authored-by: bilgin-kocak <kocakbilgin@gmail.com>
Co-authored-by: Kai Huang <kaihuang724@gmail.com>
Co-authored-by: Amr Elhady <theamrelhady@gmail.com>
Co-authored-by: murrlincoln <65836530+murrlincoln@users.noreply.github.com>
Co-authored-by: Cypher Pepe <125112044+cypherpepe@users.noreply.github.com>
EdsonAlcala pushed a commit to EdsonAlcala/agentkit that referenced this pull request Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action provider New action provider changes requested PR / Issue has changes requested cherry documentation Improvements or additions to documentation example New example agent python

Development

Successfully merging this pull request may close these issues.

4 participants