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

dev.langchain4j.service.output.BigIntegerOutputParser 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;

import java.math.BigInteger;

class BigIntegerOutputParser implements OutputParser {

    @Override
    public BigInteger parse(String string) {
        return new BigInteger(string.trim());
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy