Package org.springframework.ai.parser
Class MapOutputParser
java.lang.Object
org.springframework.ai.parser.AbstractMessageConverterOutputParser<Map<String,Object>>
org.springframework.ai.parser.MapOutputParser
- All Implemented Interfaces:
FormatProvider
,OutputParser<Map<String,
,Object>> Parser<Map<String,
Object>>
OutputParser
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.parser.AbstractMessageConverterOutputParser
getMessageConverter
-
Constructor Details
-
MapOutputParser
public MapOutputParser()
-
-
Method Details
-
parse
-
getFormat
- Returns:
- Returns a string containing instructions for how the output of a language generative should be formatted.
-