Skip to main content

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, 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. 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.

Metadata

Release files for prism-autogen 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prism-autogen 0.2.0
File Size Uploaded
prism_autogen-0.2.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prism-autogen 0.2.0
File Interpreter ABI Platform
prism_autogen-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / prism_autogen-0.2.0.tar.gz

Download URL prism_autogen-0.2.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8b7c2ea680d0fd555403443bd86d8b8752018e94ebb4b0f7c22555fb0efe93cf
BLAKE2b-256 checksum
How to use checksums
3e74c2e525f6975ebb9128d23f1db9ad85b5a65fbf425fabead22211f0522ab7
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_autogen-0.2.0-py3-none-any.whl

Download URL prism_autogen-0.2.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6328c2490a57261ba56f1f28c7d5c81fbb182df223bf2788a38d26ffe1279c7c
BLAKE2b-256 checksum
How to use checksums
14a48b927e9961666f12636a92f173af5029446693890cc410c8c57b8b6c2666
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 history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page