test / parser.py
TheAnkurGoswami
rubric skill notes extraction
9c931a9
Raw History Blame Contribute Delete
422 Bytes
"""
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)