Skip to main content

Virtuals Python SDK Library

The Virtuals Python SDK is a library that allows you interact with the Virtuals Platform.

About G.A.M.E.

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.

About Virtuals Python SDK

Currently, this SDK allows you to develop your agents powered by the GAME architecture in its most fullest and most flexible form.

New SDK visual 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

Features

  • Develop your own custom agents for any application or platform.
  • Ability to control your agents and workers via descriptions (prompts)
  • Full control of what the agent sees (state) and can do (actions/functions)
  • Ability to fully customise functions. This could include various combinations of programmed logic. For example:
    • Calling an API to retrieve data
    • Calling an API to retrieve data, followed by custom calculations or data processing logic in python code
    • 2 API calls chained together (e.g. calling an API to retrieve web data, and then posting a tweet)

ℹ️ Changes from older python SDK version (prior to 8 Jan 2025)

Old SDK visual

  • 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

Installation

pip install virtuals_sdk

Usage

Please refer to test_agent.py and test_worker.py for usage examples.

How to Contribute

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.

Documentation

Detailed documentation to better understand the configurable components and the GAME architecture can be found on here.

Useful Resources

  • TypeScript SDK: The core logic of this SDK mirrors the logic of this python SDK if you prefer to develop your agents in TypeScript.
  • Twitter Agent: The Virtuals Platform offers a out-of-the-box hosted agent that can be used to interact with the Twitter/X platform, powered by GAME. This agent comes with existing functions/actions that can be used to interact with the Twitter/X platform and can be immediately hosted/deployed as you configure it. This is similar to configuring your agent in the Agent Sandbox on the Virtuals Platform but through a developer-friendly SDK interface.

Metadata

Release files for virtuals-sdk 0.1.6

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

Source distribution (sdist)

Source distribution for virtuals-sdk 0.1.6
File Size Uploaded
virtuals_sdk-0.1.6.tar.gz 532.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for virtuals-sdk 0.1.6
File Interpreter ABI Platform
virtuals_sdk-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 559.0 kB

Release files / virtuals_sdk-0.1.6.tar.gz

Download URL virtuals_sdk-0.1.6.tar.gz
Size 532.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7f0917f47ec8066c7f5529d4627e1e7f1fd2cf4d179e77b87d99e7b9662aadd1
BLAKE2b-256 checksum
How to use checksums
d90c118ffbbf1af6dbfceeb7f8e79c4ae4e2ce4d19fc262543665172857b300c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release files / virtuals_sdk-0.1.6-py3-none-any.whl

Download URL virtuals_sdk-0.1.6-py3-none-any.whl
Size 26.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef6b11cb8b1e7abbaeb71e66a015f8fca144d66d05ab8f55777de3f6be323864
BLAKE2b-256 checksum
How to use checksums
ad473d32614759c314ca44340d67ba8b12ad9dceb5b2bd7336534a9127547efb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

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