All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.langchain4j.service.output.OutputParser Maven / Gradle / Ivy

Go to download

Java implementation of LangChain: Integrate your Java application with countless AI tools and services smoothly

There is a newer version: 1.0.0-alpha1
Show newest version
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