wangzhibo
2026-10-08 220e4fab27b7f419b3e89e2f2d28ae789aac09d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package xiaozhi.modules.agent.entity;
 
import java.math.BigDecimal;
import java.util.Date;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
@Data
@TableName("ai_agent")
@Schema(description = "智能体信息")
public class AgentEntity {
 
    @TableId(type = IdType.ASSIGN_UUID)
    @Schema(description = "智能体唯一标识")
    private String id;
 
    @Schema(description = "所属用户ID")
    private Long userId;
 
    @Schema(description = "智能体编码")
    private String agentCode;
 
    @Schema(description = "智能体名称")
    private String agentName;
 
    @Schema(description = "语音识别模型标识")
    private String asrModelId;
 
    @Schema(description = "语音活动检测标识")
    private String vadModelId;
 
    @Schema(description = "大语言模型标识")
    private String llmModelId;
 
    @Schema(description = "小模型标识")
    private String slmModelId;
 
    @Schema(description = "VLLM模型标识")
    private String vllmModelId;
 
    @Schema(description = "语音合成模型标识")
    private String ttsModelId;
 
    @Schema(description = "音色标识")
    private String ttsVoiceId;
 
    @Schema(description = "音色语言")
    private String ttsLanguage;
 
    @Schema(description = "TTS音量")
    private Integer ttsVolume;
 
    @Schema(description = "TTS语速")
    private Integer ttsRate;
 
    @Schema(description = "TTS音调")
    private Integer ttsPitch;
 
    @Schema(description = "记忆模型标识")
    private String memModelId;
 
    @Schema(description = "意图模型标识")
    private String intentModelId;
 
    @Schema(description = "聊天记录配置(0不记录 1仅记录文本 2记录文本和语音)")
    private Integer chatHistoryConf;
 
    @Schema(description = "角色设定参数")
    private String systemPrompt;
 
    @Schema(description = "总结记忆", example = "构建可生长的动态记忆网络,在有限空间内保留关键信息的同时,智能维护信息演变轨迹\n" +
            "根据对话记录,总结user的重要信息,以便在未来的对话中提供更个性化的服务", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String summaryMemory;
 
    @Schema(description = "语言编码")
    private String langCode;
 
    @Schema(description = "交互语种")
    private String language;
 
    @Schema(description = "排序")
    private Integer sort;
 
    @Schema(description = "创建者")
    private Long creator;
 
    @Schema(description = "创建时间")
    private Date createdAt;
 
    @Schema(description = "更新者")
    private Long updater;
 
    @Schema(description = "更新时间")
    private Date updatedAt;
}