Class BeanOutputParser<T>

java.lang.Object
org.springframework.ai.parser.BeanOutputParser<T>
All Implemented Interfaces:
OutputParser<T>, Parser<T>, FormatProvider

public class BeanOutputParser<T> extends Object implements OutputParser<T>
  • Constructor Details

    • BeanOutputParser

      public BeanOutputParser(Class<T> clazz)
    • BeanOutputParser

      public BeanOutputParser(Class<T> clazz, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • parse

      public T parse(String text)
      Specified by:
      parse in interface Parser<T>
    • getObjectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
    • getFormat

      public String getFormat()
      Specified by:
      getFormat in interface FormatProvider