Environment
Configure the fundamental settings for your OASIS simulation environment
Basic Environment Settings
OASIS provides a powerful simulation environment for social media platforms. This guide covers the basic configuration options for setting up your simulation environment.
Environment Initialization
To create a simulation environment, use the make
function from OASIS:
Core Environment Parameters
When initializing the OASIS environment, you can configure the following core parameters:
Parameter | Type | Description |
---|---|---|
platform | DefaultPlatformType or Platform | The platform type to use (TWITTER or REDDIT ) or a custom Platform instance |
database_path | str | Path to create a SQLite database (must end with .db ) |
agent_profile_path | str | Path to agent profiles data |
agent_models | BaseModelBackend or List[BaseModelBackend] | Model backend(s) for agent responses |
available_actions | list[ActionType] | List of allowed actions for agents |
semaphore | int | Limit on concurrent LLM requests (default: 128) |
For more details, see the Platform, Agent Profile, Model and Actions Module.
Environment Lifecycle
The OASIS environment has a simple lifecycle you can manage with these methods:
Environment Actions
The environment update through the step
method, which uses EnvAction
.
EnvAction
includes a list of activated agent IDs and predefined SingleAction
interventions. During the step, interventions are applied, the recommendation system cache is refreshed, and activated agents perform actions based on LLMs.
For more action details, see Actions Module