annaban / main.py
Faucetfan's picture
Upload 32 files
de8e64f verified
from agents.task_agent import TaskAgent
from environment.environment import Environment
import json
env = Environment()
# Load tasks
with open("tasks/task_scenarios.json") as f:
tasks = json.load(f)
# Create agents
alice = TaskAgent("Alice")
bob = TaskAgent("Bob")
env.register_agent(alice)
env.register_agent(bob)
# Simulate actions
alice.act(tasks[0])
bob.act(tasks[1])
alice.send_tokens(bob, 2.0)