prism-autogen
Prism Network GPU tools for AG2 and Microsoft AutoGen 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.
The tools are plain typed functions, so they work unchanged with both lineages:
pip install prism-autogen
AG2 v1 (pip install 'ag2[openai]'):
import asyncio
from ag2 import Agent
from ag2.config import OpenAIConfig
from prism_autogen import prism_tools
agent = Agent(
"gpu_agent",
prompt="You rent GPUs on Prism Network when a task needs one.",
config=OpenAIConfig(model="gpt-4o-mini"),
tools=prism_tools(),
)
async def main():
reply = await agent.ask("Rent a GPU with 24GB of VRAM and run nvidia-smi.")
print(reply.body)
asyncio.run(main())
Microsoft AutoGen (autogen-agentchat):
from autogen_agentchat.agents import AssistantAgent
from prism_autogen import prism_tools
agent = AssistantAgent(name="gpu_agent", model_client=..., tools=prism_tools())
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. prism_lease_and_run takes max_usdg (default 1.0), a hard cap on what
a single lease may cost.
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_autogen-0.1.0.tar.gz.
File metadata
- Download URL: prism_autogen-0.1.0.tar.gz
- Upload date:
- Size: 2.7 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 |
c8083802840dda0877a5c5dd250f7d571c10f6a2c70ea954c443a514724916bb
|
|
| MD5 |
554d0b106769a50f0250e5e18c55a935
|
|
| BLAKE2b-256 |
7e7abb31762bb9bacb690daacd90751cbab2164896ddb365eee10eab479a81fa
|
File details
Details for the file prism_autogen-0.1.0-py3-none-any.whl.
File metadata
- Download URL: prism_autogen-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 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 |
24bad7acd78791ef9ac2d355145214e835a0f031cc6d5d3ab09aae850f03001d
|
|
| MD5 |
e863731ab1bcac4743d2d2b46dbd2681
|
|
| BLAKE2b-256 |
e23b11114c480503e8a9aadf08d52ae7a2ad9d2e1796935b94d17f5d5453eb30
|