closed loop agentic ai