""" Centralized output parsers for the pipeline. Currently home to the extractor's router/judge parsers. Add new parsers here rather than inlining them next to the chains that use them. """ from langchain_core.output_parsers import JsonOutputParser from schema import JudgeResult, RouterResult router_parser = JsonOutputParser(pydantic_object=RouterResult) judge_parser = JsonOutputParser(pydantic_object=JudgeResult)