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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prism_autogen-0.2.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prism_autogen-0.2.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file prism_autogen-0.2.0.tar.gz.

File metadata

  • Download URL: prism_autogen-0.2.0.tar.gz
  • Upload date:
  • Size: 2.8 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

Hashes for prism_autogen-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8b7c2ea680d0fd555403443bd86d8b8752018e94ebb4b0f7c22555fb0efe93cf
MD5 95c0c69ef9211c1a4f6f92350d55285e
BLAKE2b-256 3e74c2e525f6975ebb9128d23f1db9ad85b5a65fbf425fabead22211f0522ab7

See more details on using hashes here.

File details

Details for the file prism_autogen-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: prism_autogen-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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

Hashes for prism_autogen-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6328c2490a57261ba56f1f28c7d5c81fbb182df223bf2788a38d26ffe1279c7c
MD5 24a5706d9514e23e164e000e24ff15d9
BLAKE2b-256 14a48b927e9961666f12636a92f173af5029446693890cc410c8c57b8b6c2666

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page