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 Details

    • AbstractConversionServiceOutputParser

      public AbstractConversionServiceOutputParser(org.springframework.core.convert.support.DefaultConversionService conversionService)
  • Method Details

    • getConversionService

      public org.springframework.core.convert.support.DefaultConversionService getConversionService()