tech.amikos.cohere.CreateEmbeddingResponse Maven / Gradle / Ivy
package tech.amikos.cohere;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.google.gson.internal.LinkedTreeMap;
import java.util.List;
public class CreateEmbeddingResponse {
@SerializedName("id")
public String id;
@SerializedName("texts")
public String[] texts;
@SerializedName("embeddings")
public List> embeddings;
@SerializedName("meta")
public LinkedTreeMap meta;
// create getters for all fields
public String getId() {
return id;
}
public String[] getTexts() {
return texts;
}
public List> getEmbeddings() {
return embeddings;
}
public LinkedTreeMap getMeta() {
return meta;
}
@Override
public String toString() {
return new Gson().toJson(this);
}
}