Skip to content

Commit 1cc324e

Browse files
committed
readme with diagrams
1 parent ef8e8d0 commit 1cc324e

File tree

1 file changed

+34
-6
lines changed

1 file changed

+34
-6
lines changed

README.md

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,47 @@
11
# Virtuals Python SDK Library
22
The Virtuals Python SDK is a library that allows you interact with the Virtuals Platform.
33

4-
Currently, this SDK/API allows you to develop your agents powered by the GAME architecture. There are two main functionalities for this SDK:
4+
## About G.A.M.E.
5+
GAME is a modular agentic framework which enables an agent to plan actions and make decisions autonomously based on information provided to it.
56

6-
1. [Twitter Agent](./src/virtuals_sdk/twitter_agent/README.md): 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](https://game-lite.virtuals.io/) on the [Virtuals Platform](https://app.virtuals.io/) but through a developer-friendly SDK interface.
7+
Please refer to our [whitepaper](https://whitepaper.virtuals.io/developer-documents/game-framework) for more information and resources.
78

9+
## About Virtuals Python SDK
10+
Currently, this SDK allows you to develop your agents powered by the GAME architecture in its most fullest and most flexible form.
811

9-
2. [Custom GAME Agent](./src/virtuals_sdk/game/README.md): This SDK also offers a Python SDK to use the GAME architecture in its most fullest and most flexible form. It allows you to develop your own custom agents for any application or platform. The modularity and flexibilty of this SDK allows you to have full control of what the agent sees (state) and can do (actions/functions). Custom functions do not have to be wrapper in API services, but can be defined as just an executable function in Python.
10-
This same flexibility is also provided as a [TypeScript SDK](https://www.npmjs.com/package/@virtuals-protocol/game) if you prefer to develop your agents in TypeScript.
12+
## Features
13+
![New SDK visual](docs/imgs/new_sdk_visual.png)
14+
- Develop your own custom agents for any application or platform.
15+
- Ability to control your agents and workers via descriptions (prompts)
16+
- Full control of what the agent sees (state) and can do (actions/functions)
17+
- Ability to fully customise functions. This could include various combinations of programmed logic. For example:
18+
- Calling an API to retrieve data
19+
- Calling an API to retrieve data, followed by custom calculations or data processing logic in python code
20+
- 2 API calls chained together (e.g. calling an API to retrieve web data, and then posting a tweet)
1121

12-
## Documentation
13-
Detailed documentation to better understand the configurable components and the GAME architecture can be found on [here](https://whitepaper.virtuals.io/developer-documents/game-framework).
22+
> ### ℹ️ Changes from older python SDK version (prior to 8 Jan 2025)
23+
>![Old SDK visual](docs/imgs/old_sdk_visual.png)
24+
> - Ability to fully customise functions (previously, each function was a single API call)
25+
> - Ability to control the low-level planner via description prompt (previously, only the high-level planner and functions could be controlled via description prompts)
26+
> - The description defined in the agent is equivalent to what was previously known as world information and agent description
1427
1528
## Installation
1629
```bash
1730
pip install virtuals_sdk
1831
```
1932

33+
## Usage
34+
Please refer to `test_agent.py` and `test_worker.py` for usage examples.
35+
36+
## How to Contribute
37+
Contributions are welcome, especially in the form of new plugins! To contribute:
38+
1. Create a new branch
39+
2. Make your changes and commit them with a descriptive message.
40+
3. Open a pull request for the Virtuals Protocol team to review.
41+
42+
## Documentation
43+
Detailed documentation to better understand the configurable components and the GAME architecture can be found on [here](https://whitepaper.virtuals.io/developer-documents/game-framework).
44+
45+
## Useful Resources
46+
- [TypeScript SDK](https://www.npmjs.com/package/@virtuals-protocol/game): The core logic of this SDK mirrors the logic of this python SDK if you prefer to develop your agents in TypeScript.
47+
- [Twitter Agent](./src/virtuals_sdk/twitter_agent/README.md): 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](https://game-lite.virtuals.io/) on the [Virtuals Platform](https://app.virtuals.io/) but through a developer-friendly SDK interface.

0 commit comments

Comments
 (0)