All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ee.carlrobert.llm.client.anthropic.completion.ClaudeCompletionDetailedMessage Maven / Gradle / Ivy

There is a newer version: 0.8.28
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy