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:
OutputParser<T>,Parser<T>,FormatProvider
- 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
ConstructorsConstructorDescriptionAbstractMessageConverterOutputParser(org.springframework.messaging.converter.MessageConverter messageConverter) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.messaging.converter.MessageConverterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.prompt.FormatProvider
getFormat
-
Constructor Details
-
AbstractMessageConverterOutputParser
public AbstractMessageConverterOutputParser(org.springframework.messaging.converter.MessageConverter messageConverter)
-
-
Method Details
-
getMessageConverter
public org.springframework.messaging.converter.MessageConverter getMessageConverter()
-