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

dev.langchain4j.service.output.FloatOutputParser 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: 0.36.2
Show newest version
package dev.langchain4j.service.output;

class FloatOutputParser implements OutputParser {

    @Override
    public Float parse(String string) {
        return Float.parseFloat(string.trim());
    }

    @Override
    public String formatInstructions() {
        return "floating point number";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy