Package com.hw.langchain.schema
Class NoOpOutputParser
- All Implemented Interfaces:
Serializable
Output parser that just returns the text as is.
- Author:
- HamaWhite
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class com.hw.langchain.schema.BaseOutputParser
getFormatInstructions, parseResult, parseWithPrompt
-
Constructor Details
-
NoOpOutputParser
public NoOpOutputParser()
-
-
Method Details
-
parse
Description copied from class:BaseOutputParser
Parse the output of an LLM call. A method which takes in a string (assumed output of a language model) and parses it into some structure.- Specified by:
parse
in classBaseOutputParser<String>
- Parameters:
text
- output of language model- Returns:
- structured output
-