Class CommaSeparatedListOutputParser
java.lang.Object
com.hw.langchain.schema.BaseLLMOutputParser<T>
com.hw.langchain.schema.BaseOutputParser<List<String>>
com.hw.langchain.output.parsers.list.ListOutputParser
com.hw.langchain.output.parsers.list.CommaSeparatedListOutputParser
- All Implemented Interfaces:
Serializable
Parse out comma separated lists.
- Author:
- HamaWhite
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class com.hw.langchain.schema.BaseOutputParser
parseResult, parseWithPrompt
-
Constructor Details
-
CommaSeparatedListOutputParser
public CommaSeparatedListOutputParser()
-
-
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<List<String>>
- Parameters:
text
- output of language model- Returns:
- structured output
-
getFormatInstructions
Description copied from class:BaseOutputParser
Instructions on how the LLM output should be formatted.- Overrides:
getFormatInstructions
in classBaseOutputParser<List<String>>
- Returns:
- format instructions
-