Class MapOutputParser

All Implemented Interfaces:
FormatProvider, OutputParser<Map<String,Object>>, Parser<Map<String,Object>>

public class MapOutputParser extends AbstractMessageConverterOutputParser<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 Details

    • MapOutputParser

      public MapOutputParser()
  • Method Details

    • parse

      public Map<String,Object> parse(String text)
    • getFormat

      public String getFormat()
      Returns:
      Returns a string containing instructions for how the output of a language generative should be formatted.