output_parsers library
Contains core abstractions related to output parsers.
Classes
-
BaseOutputParser<
ParserInput extends Object?, CallOptions extends OutputParserOptions, ParserOutput extends Object?> - Class to parse the output of a Runnable invocation.
-
JsonOutputParser<
ParserInput extends Object?> - Output parser that returns the output of the previous Runnable as a JSON Map.
- OutputParserOptions
- Options to pass to an output parser.
- ParsedToolCall
- A parsed tool call from the model.
-
StringOutputParser<
ParserInput extends Object?> -
Output parser that returns the output of the previous Runnable as a
String
. - ToolsOutputParser
- A parser that returns the list of tool calls returned by the model.
Exceptions / Errors
- OutputParserException
- Exception that output parsers should raise to signify a parsing error.