ee.carlrobert.llm.client.anthropic.completion.ClaudeCompletionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of llm-client Show documentation
Show all versions of llm-client Show documentation
Java http client wrapped around the OkHttp3 library
package ee.carlrobert.llm.client.anthropic.completion;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import ee.carlrobert.llm.completion.CompletionResponse;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
public class ClaudeCompletionResponse implements CompletionResponse {
private String id;
private String type;
private String role;
private List content;
private ClaudeCompletionResponseUsage usage;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public List getContent() {
return content;
}
public void setContent(
List content) {
this.content = content;
}
public ClaudeCompletionResponseUsage getUsage() {
return usage;
}
public void setUsage(
ClaudeCompletionResponseUsage usage) {
this.usage = usage;
}
}