Package org.springframework.ai.converter
Class MapOutputConverter
java.lang.Object
org.springframework.ai.converter.AbstractMessageOutputConverter<Map<String,Object>>
org.springframework.ai.converter.MapOutputConverter
- All Implemented Interfaces:
FormatProvider,StructuredOutputConverter<Map<String,,Object>> org.springframework.core.convert.converter.Converter<String,Map<String, Object>>
StructuredOutputConverter implementation that uses a pre-configured
MappingJackson2MessageConverter to convert the LLM output into a
java.util.Map<String, Object> instance.- Author:
- Mark Pollack, Christian Tzolov
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.ai.converter.AbstractMessageOutputConverter
getMessageConverterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
MapOutputConverter
public MapOutputConverter()
-
-
Method Details
-
convert
-
getFormat
Description copied from interface:FormatProviderGet the format of the output of a language generative.- Returns:
- Returns a string containing instructions for how the output of a language generative should be formatted.
-