Agentic AI - Production Agent Architecture
Given this code snippet, what will be printed?
from threading import Thread
class Agent:
def __init__(self, id):
self.id = id
def run(self):
print(f"Agent {self.id} running")
agents = [Agent(i) for i in range(3)]
threads = [Thread(target=agent.run) for agent in agents]
for t in threads:
t.start()
for t in threads:
t.join()