ensuring AI agent reliability