Skip to content
masterclass Buddy

LangChain · Class

StrOutputParser

StrOutputParser converts model outputs into plain strings. It also passes input strings through unchanged and supports streamed chunks.

Last updated

Since
v1.7

Syntax

StrOutputParser(self, args: Any = (), kwargs: Any = {})

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

Subscribe
  • BaseTransformOutputParser
  • BaseOutputParser
  • transform
  • invoke
  • parse_result
  • aparse_result
  • parse

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