feat: add Prism Network action provider#1386
Open
winterstacks wants to merge 1 commit into
Open
Conversation
🟡 Heimdall Review Status
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
prismaction provider for renting real NVIDIA GPUs through Prism Network.Five actions:
wallet,list_gpus,lease_and_run,run,end_lease. An agent can price GPUs, rent one, run a command on it, and pay for it onchain in USDG, all in-loop.The provider is self-contained and adds no new runtime dependencies (uses
web3andrequests, already in the tree; SSH uses the standard library). It carries its own funded wallet viaPRISM_AGENT_KEYand settles onchain in USDG, so it composes with any AgentKit wallet provider instead of spending the agent's primary wallet.Testing
ruff checkandruff formatclean.pytest tests/action_providers/prism— 7 passing (mocked client).wallet,list_gpus) were verified live against the Prism control plane; registration verified throughfrom coinbase_agentkit import prism_action_provider.Notes
lease_and_runblocks while the machine provisions (usually one to four minutes) and spends real USDG, capped bymax_usdg.