Concepts
Output Parser
Transforms raw model outputs into clean Python objects — StringOutputParser and JsonOutputParser.
Why it exists
LLM responses come back as message objects; parsers extract just the usable content (a string, or parsed JSON) so downstream code doesn't have to handle raw model output.
educhain.py
from educhain.output_parsers import StringOutputParser, JsonOutputParser
parser = StringOutputParser()
json_parser = JsonOutputParser()