Logic Agent: Enhancing Validity with Logic Rule Invocation