Class AbstractMessageConverterOutputParser<T>

java.lang.Object
org.springframework.ai.parser.AbstractMessageConverterOutputParser<T>
Type Parameters:
T - Specifies the desired response type.
All Implemented Interfaces:
FormatProvider, OutputParser<T>, Parser<T>
Direct Known Subclasses:
MapOutputParser

public abstract class AbstractMessageConverterOutputParser<T> extends Object implements OutputParser<T>
Abstract OutputParser implementation that uses a pre-configured MessageConverter to convert the LLM output into the desired type format.
Author:
Mark Pollack, Christian Tzolov
  • Constructor Details

    • AbstractMessageConverterOutputParser

      public AbstractMessageConverterOutputParser(org.springframework.messaging.converter.MessageConverter messageConverter)
  • Method Details

    • getMessageConverter

      public org.springframework.messaging.converter.MessageConverter getMessageConverter()