Live_System / agent_sim.py
LordXido's picture
Upload 5 files
922ff89 verified
raw
history blame contribute delete
477 Bytes
# Reflex Agent Lifecycle Simulator
import time
class ReflexAgent:
def __init__(self):
self.state = "Idle"
self.log = []
def update_state(self, command):
self.state = f"Processing: {command}"
self.log.append(self.state)
time.sleep(1)
self.state = "Complete"
self.log.append(self.state)
return self.log
if __name__ == "__main__":
agent = ReflexAgent()
print(agent.update_state("Render spiral"))