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.5langchain-oneshot >= 0.2.0
Links
- Documentation
- langchain-oneshot on PyPI — Full 26-tool LangChain integration
- oneshot-python on PyPI — Core HTTP client
- TypeScript SDK
- MCP Server
- GitHub
License
MIT
Project details
Release history Release notifications | RSS feed
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 game_plugin_oneshot-0.4.0.tar.gz.
File metadata
- Download URL: game_plugin_oneshot-0.4.0.tar.gz
- Upload date:
- Size: 8.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c1299d90e05458452044dca591d5835ffa94fb7a4bff36cf7709378fba01bfb
|
|
| MD5 |
ce3bd1f122a5e39718d3fc66ea1cb77d
|
|
| BLAKE2b-256 |
3e61d5db620e2e07282a0dbc9ecba67205e6ac9171e41bdae01c9276f5f7d2a2
|
File details
Details for the file game_plugin_oneshot-0.4.0-py3-none-any.whl.
File metadata
- Download URL: game_plugin_oneshot-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ffc2ddbebd7ee2d60fcdec8d0d07fd9e57b335a68dcd88d01ab978f7fb25fb3
|
|
| MD5 |
f85d7aea0576f2fbcae61da6841c0f2b
|
|
| BLAKE2b-256 |
403fe400c604b946785e19b360f074f8a8430aa982120bbdf913610d9036c43d
|