ee.carlrobert.llm.client.anthropic.completion.ClaudeCompletionDetailedMessage 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 java.util.Collections;
import java.util.List;
public class ClaudeCompletionDetailedMessage implements ClaudeCompletionMessage {
private String role;
private List content;
public ClaudeCompletionDetailedMessage(String role, ClaudeMessageContent content) {
this.role = role;
this.content = Collections.singletonList(content);
}
public ClaudeCompletionDetailedMessage(String role, List content) {
this.role = role;
this.content = content;
}
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;
}
}