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