prism-langchain
Prism Network GPU tools for LangChain and LangGraph agents. The agent sees live GPU capacity and prices, rents a machine with an on-chain USDG payment on Robinhood Chain, runs commands on it over SSH, and releases it. Every lease settles with a verifiable receipt.
pip install prism-langchain langgraph langchain-openai
The package itself depends only on langchain-core; the example below also
needs LangGraph and a model provider.
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
from prism_langchain import get_prism_tools
agent = create_react_agent(ChatOpenAI(model="gpt-4o-mini"), get_prism_tools())
agent.invoke({"messages": [("user", "Rent a GPU with 24GB of VRAM and run nvidia-smi.")]})
Tools
| Tool | What it does |
|---|---|
prism_wallet |
wallet address, USDG and gas balances |
prism_list_gpus |
live capacity: model, VRAM, price per hour, trust class |
prism_lease_and_run |
rent a GPU, run one command, keep the lease open |
prism_run |
run another command on an open lease |
prism_end_lease |
release a lease |
Configuration
PRISM_AGENT_KEY: private key of a wallet holding USDG and gas on Robinhood
Chain (chain id 4663, RPC rpc.mainnet.chain.robinhood.com). PRISM_ESCROW:
optional; defaults to the live lease escrow. Without a key the read-only tools
still answer from the public API. Or construct
PrismToolset(agent=PrismAgent(...)) yourself and pass it to
get_prism_tools.
prism_lease_and_run takes max_usdg (default 1.0), a hard cap on what a
single lease may cost. Set it deliberately when raising duration.
Trust classes run open < isolated < attested < confidential. On an open
supplier the host operator can read anything the workload touches; raise
min_trust_class for anything sensitive.
Prism is pre-production and unaudited. Do not lease with a wallet or workload you cannot lose.
Metadata
Release files for prism-langchain 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prism_langchain-0.2.0.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prism_langchain-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.2 kB
Release files / prism_langchain-0.2.0.tar.gz
| Download URL | prism_langchain-0.2.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
403fd37b47d220dea2d20cc7f7245be1235e950e249a6c897faccfbfc5ffa7af
|
|
BLAKE2b-256 checksum How to use checksums |
6a70aac4c00a15e8c57742262e30ba32fb98a4485ce76a1f9c0c859c1ddd774a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / prism_langchain-0.2.0-py3-none-any.whl
| Download URL | prism_langchain-0.2.0-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44fed5dbbe2e60841f4d1bb197145f1bb955f9d5e93e0e5e805842a81462bb1c
|
|
BLAKE2b-256 checksum How to use checksums |
0ea8156f669703f2a00913029b2fca7556b7d589118944cdfa438d4dcc0340a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|