File size: 1,039 Bytes
edc59bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

# ===== Agent Base and Specialized Agents =====
class Agent:
    def __init__(self, name, perspective, trust=1.0):
        self.name = name
        self.perspective = perspective
        self.trust = trust

    def propose(self, situation):
        return f"{self.name}: No specific proposal."

class MedicalAgent(Agent):
    def propose(self, situation):
        return f"Medical: Allocate by severity and resource - fastest save wins. {situation}"

class GovernmentAgent(Agent):
    def propose(self, situation):
        return f"Government: Reserve some for leaders/critical infrastructure. {situation}"

class SocialAgent(Agent):
    def propose(self, situation):
        return f"Social: Balance speed with fairness, consider public fear. {situation}"

class EconomicAgent(Agent):
    def propose(self, situation):
        return f"Economic: Keep logistics flowing, avoid total focus on health. {situation}"

class MisinfoAgent(Agent):
    def propose(self, situation):
        return "Misinfo: Virus is harmless, no action needed."