Skip to main content

GAME SDK plugin for OneShot real-world AI agent tools

Project description

game-plugin-oneshot

GAME SDK plugin that gives Virtuals Protocol agents access to OneShot real-world tools.

Install

pip install game-plugin-oneshot

Quick Start

import os
from game_sdk.game.agent import Agent
from game_plugin_oneshot import OneShotPlugin

plugin = OneShotPlugin(
    private_key=os.environ["WALLET_PRIVATE_KEY"],
)

agent = Agent(
    api_key=os.environ["GAME_API_KEY"],
    name="my-agent",
    agent_description="An agent that can interact with the real world",
)

agent.add_worker(plugin.get_worker())
agent.run()

Tools

Tool Description
oneshot_email Send emails to real recipients
oneshot_sms Send SMS text messages
oneshot_voice Make phone calls with AI voice
oneshot_research Deep research reports
oneshot_commerce_search Search for products
oneshot_commerce_buy Purchase products online
oneshot_build Generate and deploy websites

Paid tools are priced in USDC via x402. See Pricing for current rates.

Payment

All paid tools use the x402 payment protocol to deduct USDC from your wallet on Base Mainnet. Fund your wallet with USDC before using paid tools.

Complex Arguments

GAME Argument only supports scalar types. For tools that need structured input (commerce_buy, build), pass JSON strings:

# The agent will generate these automatically, but for manual testing:
import json

shipping = json.dumps({
    "first_name": "John",
    "last_name": "Doe",
    "street": "123 Main St",
    "city": "Austin",
    "state": "TX",
    "zip_code": "78701",
    "phone": "+15551234567",
})

product = json.dumps({
    "name": "Acme SaaS",
    "description": "Project management for teams",
})

Configuration

Parameter Default Description
private_key (required) Hex-encoded Ethereum private key
base_url None Override API URL

Requirements

  • Python >= 3.10
  • game-sdk >= 0.1.5
  • langchain-oneshot >= 0.2.0

Links

License

MIT

Project details


Download files

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

Source Distribution

game_plugin_oneshot-0.7.1.tar.gz (85.0 kB view details)

Uploaded Source

Built Distribution

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

game_plugin_oneshot-0.7.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file game_plugin_oneshot-0.7.1.tar.gz.

File metadata

  • Download URL: game_plugin_oneshot-0.7.1.tar.gz
  • Upload date:
  • Size: 85.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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 game_plugin_oneshot-0.7.1.tar.gz
Algorithm Hash digest
SHA256 96d25a93a01640e67ee86def7cbe52aacf49db620b78182990a9ec6c51df6e1b
MD5 1959b16a3e80d48c75700d60ba37e089
BLAKE2b-256 1854f02e3063141df8aeb4ea9229966b9acfe920c79618e9f289179787a19f00

See more details on using hashes here.

File details

Details for the file game_plugin_oneshot-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: game_plugin_oneshot-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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 game_plugin_oneshot-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c123e90597a393ac43f2298044c0aab7ef91542fc658c3973411cb5698ff25b2
MD5 96a518fe0cd08c0f9d5a19cb22bcf1c1
BLAKE2b-256 10dccf74366757835b9b8a368b2a2274cf1b466c45b130c4e345532cffe8b24f

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 Pingdom Monitoring Sentry Error logging StatusPage Status page