Agentic AI - Future of AI Agents
What will be the output of this agent decision code?
class Agent:
def __init__(self):
self.energy = 5
def decide(self):
if self.energy > 3:
return 'explore'
else:
return 'rest'
agent = Agent()
print(agent.decide())
agent.energy = 2
print(agent.decide())
