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
-
Method Summary
Methods inherited from class org.springframework.ai.converter.AbstractMessageOutputConverter
getMessageConverter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
Methods inherited from interface org.springframework.ai.converter.StructuredOutputConverter
parse
-
Constructor Details
-
MapOutputConverter
public MapOutputConverter()
-
-
Method Details
-
convert
-
getFormat
- Returns:
- Returns a string containing instructions for how the output of a language generative should be formatted.
-