Spaces:
Running
Running
File size: 422 Bytes
9c931a9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | """
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)
|