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
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). PRISM_ESCROW — optional; defaults to the live lease
escrow. 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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prism_langchain-0.1.0.tar.gz.
File metadata
- Download URL: prism_langchain-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6405cebac3bfc0a969e6ca457a10b6557065404779cd2e92edba2c85bc9e2626
|
|
| MD5 |
036dafe8f9b70f3be853cad059603037
|
|
| BLAKE2b-256 |
edbd4e08bc79dfefbf25fc84afdaffada400a11e89e515bac36f8a81d73dbe12
|
File details
Details for the file prism_langchain-0.1.0-py3-none-any.whl.
File metadata
- Download URL: prism_langchain-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e76ee75165a3be86de05cab7a6bcd64b319046406563bb2b9b3ff732dbe04608
|
|
| MD5 |
1c68f326b73e14b6fdf9afd65c762a98
|
|
| BLAKE2b-256 |
ef12dca43b2c40823fdf0414ed46a91b9fb5e8359f311775eb9291bca9d051c3
|