Class: Langchain::OutputParsers::Base Abstract
- Inherits:
-
Object
- Object
- Langchain::OutputParsers::Base
- Defined in:
- lib/langchain/output_parsers/base.rb
Overview
This class is abstract.
Structured output parsers from the LLM.
Direct Known Subclasses
Instance Method Summary collapse
-
#get_format_instructions ⇒ String
Return a string describing the format of the output.
-
#parse(text:) ⇒ Object
Parse the output of an LLM call.
Instance Method Details
#get_format_instructions ⇒ String
Return a string describing the format of the output.
“‘json
"foo": "bar"
“‘
27 28 29 |
# File 'lib/langchain/output_parsers/base.rb', line 27 def get_format_instructions raise NotImplementedError end |
#parse(text:) ⇒ Object
Parse the output of an LLM call.
13 14 15 |
# File 'lib/langchain/output_parsers/base.rb', line 13 def parse(text:) raise NotImplementedError end |