dev.langchain4j.model.ollama.RunningModelsListResponse Maven / Gradle / Ivy
package dev.langchain4j.model.ollama;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import java.util.List;
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(NON_NULL)
@JsonNaming(SnakeCaseStrategy.class)
class RunningModelsListResponse {
private List models;
RunningModelsListResponse() {
}
RunningModelsListResponse(List models) {
this.models = models;
}
public List getModels() {
return models;
}
public void setModels(List models) {
this.models = models;
}
static Builder builder() {
return new Builder();
}
static class Builder {
private List models;
Builder models(List models) {
this.models = models;
return this;
}
RunningModelsListResponse build() {
return new RunningModelsListResponse(models);
}
}
}