io.quarkiverse.langchain4j.vertexai.runtime.Parameters Maven / Gradle / Ivy
package io.quarkiverse.langchain4j.vertexai.runtime;
public class Parameters {
private final Double temperature;
private final Integer maxOutputTokens;
private final Integer topK;
private final Double topP;
public Parameters(Builder builder) {
this.temperature = builder.temperature;
this.maxOutputTokens = builder.maxOutputTokens;
this.topK = builder.topK;
this.topP = builder.topP;
}
public Double getTemperature() {
return temperature;
}
public Integer getMaxOutputTokens() {
return maxOutputTokens;
}
public Integer getTopK() {
return topK;
}
public Double getTopP() {
return topP;
}
public static Builder builder() {
return new Builder();
}
public static final class Builder {
private Double temperature;
private Integer maxOutputTokens;
private Integer topK;
private Double topP;
public Builder temperature(Double temperature) {
this.temperature = temperature;
return this;
}
public Builder maxOutputTokens(Integer maxOutputTokens) {
this.maxOutputTokens = maxOutputTokens;
return this;
}
public Builder topK(Integer topK) {
this.topK = topK;
return this;
}
public Builder topP(Double topP) {
this.topP = topP;
return this;
}
public Parameters build() {
return new Parameters(this);
}
}
}