langchain/chains/flare/prompts.py/FinishedOutputParser/parse
class FinishedOutputParser:    def parse(self, text: str) -> Tuple[str, bool]:
        cleaned = text.strip()
        finished = self.finished_value in cleaned
        return cleaned.replace(self.finished_value, ""), finished