Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions clink-serversdk/src/main/java/com/tinet/clink/aikb/PathEnum.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.tinet.clink.aikb;

/**
* @author wangll
* @date 2019/2/19
*/
public enum PathEnum {
//-------------------会话问答API--------
ChatConversation("aikb/chat_conversation_on_open"),
ChatListConversations("aikb/list_conversations"),
ChatDescribeConversation("aikb/describe_conversation"),
ChatUpdateConversation("aikb/update_conversation"),
ChatDeleteConversation("aikb/delete_conversation"),
SearchKnowledgeOnOpen("aikb/search_knowledge_on_open"),
DescribeFileMediaUrl("aikb/describe_file_media_url"),
DescribeFaqMediaUrl("aikb/describe_faq_media_url")

;

//-------------------知识库API--------



private String value;

PathEnum(String value) {
this.value = value;
}

public String value() {
return value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
package com.tinet.clink.aikb.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.Date;

/**
* @author zhangpc
* @since 2024/05/29
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class ChatConversationResponseModel {

/**
* 会话ID
*/
private String conversationId;

/**
* 会话内容
*/
private String title;

/**
* 会话类型
*/
private String contentType;

/**
* 对话创建时间
*/
private Date createTime;

/**
* 对话修改时间
*/
private Date updateTime;

public String getConversationId() {
return conversationId;
}

public void setConversationId(String conversationId) {
this.conversationId = conversationId;
}

public String getTitle() {
return title;
}

public void setTitle(String title) {
this.title = title;
}

public String getContentType() {
return contentType;
}

public void setContentType(String contentType) {
this.contentType = contentType;
}

public Date getCreateTime() {
return createTime;
}

public void setCreateTime(Date createTime) {
this.createTime = createTime;
}

public Date getUpdateTime() {
return updateTime;
}

public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
package com.tinet.clink.aikb.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.Date;
import java.util.List;

/**
* @author zhangpc
* @since 2024/05/29
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class ChatDescribeConversationResponseModel {

private String content;

/**
* 对话创建时间
*/
private Date createTime;

/**
* 消息角色:BOT,机器人
* USER,用户
*/
private String role;

/**
* 文件来源集合
*/
private List<FileKnowledgeSource> files;

/**
* 问答知识来源集合
*/
private List<FaqKnowledgeSource> faqs;

public String getContent() {
return content;
}

public void setContent(String content) {
this.content = content;
}

public Date getCreateTime() {
return createTime;
}

public void setCreateTime(Date createTime) {
this.createTime = createTime;
}

public String getRole() {
return role;
}

public void setRole(String role) {
this.role = role;
}

public List<FileKnowledgeSource> getFiles() {
return files;
}

public void setFiles(List<FileKnowledgeSource> files) {
this.files = files;
}

public List<FaqKnowledgeSource> getFaqs() {
return faqs;
}

public void setFaqs(List<FaqKnowledgeSource> faqs) {
this.faqs = faqs;
}

public static class FileKnowledgeSource {
/**
* 知识来源id
*/
private Integer id;

/**
* 知识来源名称
*/
private String name;

/**
* oss fileKey
*/
private String fileKey;

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getFileKey() {
return fileKey;
}

public void setFileKey(String fileKey) {
this.fileKey = fileKey;
}
}

public static class FaqKnowledgeSource {
/**
* 知识来源id
*/
private Integer id;

/**
* 知识来源名称
*/
private String name;

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}
}
}
Loading