Skip to content
masterclass Buddy

LangChain · Interface

BaseOutputParser

BaseOutputParser is the base class for turning language model output into a chosen type. Create a subclass and define how its text should be parsed.

Last updated

Since
v1.7

Syntax

class BaseOutputParser(BaseLLMOutputParser[T], RunnableSerializable[LanguageModelOutput, T])

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • BaseLLMOutputParser
  • RunnableSerializable
  • OutputParserException
  • BasePromptTemplate.output_parser

Source: BaseOutputParser | langchain_core | LangChain Reference. Checked 2026-11-03.