Data Formats
OASIS supports multiple social media platforms, each with its own data format. Note that the type of data format must align with the DefaultPlatformType or RecsysType specified for the platform.Twitter Format (CSV)
For Twitter simulations, OASIS stores user data in CSV files. Each user (agent) requires the following information:
And the
agent_id will be generated based on the order of the CSV file, starting from 0.
Example Twitter CSV Format
Reddit Format (JSON)
For Reddit simulations, OASIS uses JSON files to store user data. Each user object contains the following fields:
And the
agent_id will be generated based on the order of the JSON file, starting from 0.
Example Reddit JSON Format
Preparing User Data
When preparing user data for OASIS, consider the following regardless of platform:- Diverse Personalities: Create agents with varied interests, opinions, and communication styles to simulate realistic social dynamics.
-
Realistic Social Connections: If you want to create a social connection between agents, you can add some
ManualActionduring the simulation to let agents follow each other. -
Initial Content: If you want to add some initial content to the agents, you can add some
ManualActionduring the simulation to let agents post some initial content. -
Consistent Identity: Ensure that the personality descriptors (
user_charanddescriptionfor Twitter;bioandpersonafor Reddit) align with the agent’s intended personality and behavior in the simulation. - Platform-Specific Behaviors: Consider how users interact differently on Twitter versus Reddit. Twitter interactions are more brief and public, while Reddit discussions are often topic-focused and community-based.
SocialAgent class to create agents with different prompt templates, tools, and models.