Package org.springframework.ai.parser
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 Summary
ConstructorDescriptionAbstractMessageConverterOutputParser
(org.springframework.messaging.converter.MessageConverter messageConverter) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.messaging.converter.MessageConverter
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
-
AbstractMessageConverterOutputParser
public AbstractMessageConverterOutputParser(org.springframework.messaging.converter.MessageConverter messageConverter)
-
-
Method Details
-
getMessageConverter
public org.springframework.messaging.converter.MessageConverter getMessageConverter()
-