feat: Adds Allora Network price inference to the CDP AgentKit (python) - #110
Conversation
✅ Heimdall Review Status
|
1d63a63 to
743b22f
Compare
ecca75f to
ef08d19
Compare
838c2f1 to
e78c94a
Compare
e645f3a to
ef1ab58
Compare
bd4d6ce to
e0710c0
Compare
|
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 Let me know if you have any questions, thanks! |
e0710c0 to
665522a
Compare
eb38956 to
5e69b93
Compare
2b3cc67 to
83546f2
Compare
Hi @0xRAG . Thanks for the review! All changes are done, let me know if I can help with anything else. |
There was a problem hiding this comment.
I think for simplicity, we should leave the only entry point to running the integration tests to be via pytest -m integration
There was a problem hiding this comment.
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
2c52c3c to
fa1723c
Compare
|
@fernandofcampos I'm getting this error, have you seen it before? |
0bc6278 to
f20bdba
Compare
There was a problem hiding this comment.
These can be removed now that we are relying on the integration flag
0ffcd17 to
e69565a
Compare
e69565a to
677f7fe
Compare
There was a small bug in the code, it should work now. |
0xRAG
left a comment
There was a problem hiding this comment.
LGTM, thank you @fernandofcampos! 🚀
* 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>
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/allorafolder.Detailed testing steps