Browse by type
THIS REPOSITORY WILL NO LONGER BE MAINTAINED AND HAS BEEN MIGRATED OVER TO https://github.com/game-by-virtuals/game-python/tree/main. Please move over to use latest SDK and features.
The Virtuals Python SDK is a library that allows you interact with the Virtuals Platform.
GAME is a modular agentic framework which enables an agent to plan actions and make decisions autonomously based on information provided to it.
Please refer to our whitepaper for more information and resources.
Currently, this SDK allows you to develop your agents powered by the GAME architecture in its most fullest and most flexible form.
The python SDK is made up of 3 main components (Agent, Worker, function), each with configurable arguments.
Agent (a.k.a. high level planner) - Takes in a Goal - Drives the agents behaviour through the high level plan which influences the thinking and creation of tasks that would contribute towards this goal - Takes in a Description - Combination of what was previously known as World Info + Agent Description - This include a description of the "world" the agent lives in, and the personality and background of the agent
Worker (a.k.a. low-level planner) - Takes in a Description - Used to control which workers are called by the agent, based on the high-level plan and tasks created to contribute to the goal
Function - Takes in a Description - Used to control which functions are called by the workers, based on each worker's low-level plan - This can be any python executable
ℹ️ Changes from older python SDK version (prior to 8 Jan 2025)
- Ability to fully customise functions (previously, each function was a single API call) - Ability to control the low-level planner via description prompt (previously, only the high-level planner and functions could be controlled via description prompts) - The description defined in the agent is equivalent to what was previously known as world information and agent description
pip install virtuals_sdk
Please refer to test_agent.py and test_worker.py for usage examples.
Contributions are welcome, especially in the form of new plugins! We are working on creating a plugins repo, but in meantime - please contact us via Twitter or Telegram.
Detailed documentation to better understand the configurable components and the GAME architecture can be found on here.
$ claude mcp add virtuals-python \
-- python -m otcore.mcp_server <graph>