Package org.springframework.ai.parser
Class AbstractConversionServiceOutputParser<T>
java.lang.Object
org.springframework.ai.parser.AbstractConversionServiceOutputParser<T>
- Type Parameters:
T
- Specifies the desired response type.
- All Implemented Interfaces:
FormatProvider
,OutputParser<T>
,Parser<T>
- Direct Known Subclasses:
ListOutputParser
public abstract class AbstractConversionServiceOutputParser<T>
extends Object
implements OutputParser<T>
Abstract
OutputParser
implementation that uses a pre-configured
DefaultConversionService
to convert the LLM output into the desired type
format.- Author:
- Mark Pollack, Christian Tzolov
-
Constructor Summary
ConstructorDescriptionAbstractConversionServiceOutputParser
(org.springframework.core.convert.support.DefaultConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.convert.support.DefaultConversionService
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ai.parser.FormatProvider
getFormat
-
Constructor Details
-
AbstractConversionServiceOutputParser
public AbstractConversionServiceOutputParser(org.springframework.core.convert.support.DefaultConversionService conversionService)
-
-
Method Details
-
getConversionService
public org.springframework.core.convert.support.DefaultConversionService getConversionService()
-