Agentic AI - Agent Safety and Guardrails
This AI agent code is meant to block unsafe commands but has a bug:
What is the error and how to fix it?
def guardrail(action):
if action = 'shutdown':
return 'Blocked'
else:
return 'Allowed'What is the error and how to fix it?
