-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.py
More file actions
17 lines (11 loc) · 690 Bytes
/
test.py
File metadata and controls
17 lines (11 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# testing a simulation run for Agentopolis
from agentopolis_base.scenarios.sample_scenarios import escape_room_scenario
from agentopolis_base.agents.agents import initialize_agents, perform_scenario_response
from agentopolis_base.world.world_builder import initialize_world_resources
scenario = escape_room_scenario
world_resources = initialize_world_resources(scenario)
print("world_resources:",world_resources)
agents_available = initialize_agents(world_resources)
agents_selected = [agents_available['governor'], agents_available['banker'], agents_available['builder']]
response = perform_scenario_response(scenario,world_resources,agents_available,agents_selected)
print(response)