
dev.langchain4j.service.output.OutputParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of langchain4j Show documentation
Show all versions of langchain4j Show documentation
Java implementation of LangChain: Integrate your Java application with countless AI
tools and services smoothly
package dev.langchain4j.service.output;
/**
* Represents an output parser.
*
* @param the type of the output.
*/
interface OutputParser {
/**
* Parse the given text.
*
* @param text the text to parse.
* @return the parsed output.
*/
T parse(String text);
/**
* Description of the text format.
*
* @return the description of the text format.
*/
String formatInstructions();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy