def formatter_node(output): """ Cleans up LLM output for exact match. Removes prefixes, trims whitespace, ensures lowercase. """ answer = output.strip() # Optionally add more cleanup rules here return answer