Add initial setup for TinyTroupe simulation: environment, agents, configuration, and example world interaction

This commit is contained in:
geoffsee
2025-06-22 10:18:48 -04:00
commit e67a7e9e01
11 changed files with 531 additions and 0 deletions

25
main.py Normal file
View File

@@ -0,0 +1,25 @@
import json
import sys
from dotenv import load_dotenv
from agents import create_diego, create_aisha, create_elena, create_nakamura
sys.path.insert(0, '..')
import tinytroupe
from tinytroupe.agent import TinyPerson
from tinytroupe.environment import TinyWorld, TinySocialNetwork
# from tinytroupe.examples import *
# Load environment variables from .env file
load_dotenv()
world = TinyWorld("Focus group", [create_diego(), create_aisha(), create_elena(), create_nakamura()])
world.broadcast("""
Hello everyone! Let's start by introducing ourselves. What is your job and what are some major problems you face
in your work? What are major challenges for your industry as a whole? Don't discuss solutions yet,
just the problems you face.
""")
world.run(1)