package tech.aiflowy.ai.entity.base;
|
|
import tech.aiflowy.common.entity.DateEntity;
|
import com.mybatisflex.annotation.Column;
|
import com.mybatisflex.annotation.Id;
|
import com.mybatisflex.annotation.KeyType;
|
import com.mybatisflex.core.handler.FastjsonTypeHandler;
|
|
import java.io.Serializable;
|
import java.math.BigInteger;
|
import java.util.Date;
|
import java.util.Map;
|
|
|
public class AiChatMessageBase extends DateEntity implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@Id(keyType = KeyType.Generator, value = "snowFlakeId")
|
private BigInteger id;
|
|
private BigInteger topicId;
|
|
private String role;
|
|
private String content;
|
|
private String image;
|
|
private Integer promptTokens;
|
|
private Integer completionTokens;
|
|
private Integer totalTokens;
|
|
private String tools;
|
|
@Column(typeHandler = FastjsonTypeHandler.class)
|
private Map<String, Object> options;
|
|
private Date created;
|
|
private Date modified;
|
|
public BigInteger getId() {
|
return id;
|
}
|
|
public void setId(BigInteger id) {
|
this.id = id;
|
}
|
|
public BigInteger getTopicId() {
|
return topicId;
|
}
|
|
public void setTopicId(BigInteger topicId) {
|
this.topicId = topicId;
|
}
|
|
public String getRole() {
|
return role;
|
}
|
|
public void setRole(String role) {
|
this.role = role;
|
}
|
|
public String getContent() {
|
return content;
|
}
|
|
public void setContent(String content) {
|
this.content = content;
|
}
|
|
public String getImage() {
|
return image;
|
}
|
|
public void setImage(String image) {
|
this.image = image;
|
}
|
|
public Integer getPromptTokens() {
|
return promptTokens;
|
}
|
|
public void setPromptTokens(Integer promptTokens) {
|
this.promptTokens = promptTokens;
|
}
|
|
public Integer getCompletionTokens() {
|
return completionTokens;
|
}
|
|
public void setCompletionTokens(Integer completionTokens) {
|
this.completionTokens = completionTokens;
|
}
|
|
public Integer getTotalTokens() {
|
return totalTokens;
|
}
|
|
public void setTotalTokens(Integer totalTokens) {
|
this.totalTokens = totalTokens;
|
}
|
|
public String getTools() {
|
return tools;
|
}
|
|
public void setTools(String tools) {
|
this.tools = tools;
|
}
|
|
public Map<String, Object> getOptions() {
|
return options;
|
}
|
|
public void setOptions(Map<String, Object> options) {
|
this.options = options;
|
}
|
|
public Date getCreated() {
|
return created;
|
}
|
|
public void setCreated(Date created) {
|
this.created = created;
|
}
|
|
public Date getModified() {
|
return modified;
|
}
|
|
public void setModified(Date modified) {
|
this.modified = modified;
|
}
|
|
}
|