Interface OutputParser<T>

Type Parameters:
T - Specifies the desired response type.
All Superinterfaces:
FormatProvider, Parser<T>
All Known Implementing Classes:
AbstractConversionServiceOutputParser, AbstractMessageConverterOutputParser, BeanOutputParser, ListOutputParser, MapOutputParser

public interface OutputParser<T> extends Parser<T>, FormatProvider
Converts the (raw) LLM output into a structured responses of type. The FormatProvider.getFormat() method should provide the LLM prompt description of the desired format.
Author:
Mark Pollack, Christian Tzolov
  • Method Summary

    Methods inherited from interface org.springframework.ai.parser.FormatProvider

    getFormat

    Methods inherited from interface org.springframework.ai.parser.Parser

    parse