Skip to main content
The Social Platform module is a core component of Oasis that simulates a social media environment for agent interactions. It provides a complete infrastructure for social network activities, including user management, content creation, engagement metrics, recommendation systems, and user interactions. We support passing in two types of platforms. One is the DefaultPlatformType, which includes Twitter and Reddit. Otherwise, you can customize the Platform settings and pass them in.

Default Platform Type (Recommend)

OASIS supports two built-in platform types, which can be specified during environment creation:

Twitter-like Platform

The Twitter-like platform simulates a microblogging service with features like posts, likes, retweets, and following.

Reddit-like Platform

Customized Platform

The platform uses an asynchronous architecture to handle agent actions and maintain a consistent timeline within the simulation.

Key Features

Time Management

  • Configurable time acceleration using sandbox_clock
  • Support for simulated timeline progression

Database Integration

  • SQLite-based storage for all social activities and relationships
  • Comprehensive logging of user actions and system events

Recommendation Systems

Several recommendation system types are supported:
  • Random: Simple randomized content recommendation
  • Reddit: Reddit-style recommendation based on engagement metrics
  • Twitter: Personalized recommendations based on user history
  • TWHin: Advanced recommendation using graph embedding (optional OpenAI embedding integration)

Social Actions

The platform supports a wide range of social media actions.

Initialization

Configuration Options

Recommendation System

Different recommendation algorithms can be configured through the recsys_type parameter: The available recommendation system types are: