Package org.springframework.ai.parser
Class ListOutputParser
java.lang.Object
org.springframework.ai.parser.AbstractConversionServiceOutputParser<List<String>>
org.springframework.ai.parser.ListOutputParser
- All Implemented Interfaces:
OutputParser<List<String>>
,Parser<List<String>>
,FormatProvider
OutputParser
implementation that uses a DefaultConversionService
to
convert the LLM output into a List
instance.- Author:
- Mark Pollack, Christian Tzolov
-
Constructor Summary
ConstructorDescriptionListOutputParser
(org.springframework.core.convert.support.DefaultConversionService defaultConversionService) -
Method Summary
Methods inherited from class org.springframework.ai.parser.AbstractConversionServiceOutputParser
getConversionService
-
Constructor Details
-
ListOutputParser
public ListOutputParser(org.springframework.core.convert.support.DefaultConversionService defaultConversionService)
-
-
Method Details
-
getFormat
- Returns:
- Returns a string containing instructions for how the output of a language model should be formatted.
-
parse
-