-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAiAssistant.java
More file actions
270 lines (202 loc) · 6.26 KB
/
AiAssistant.java
File metadata and controls
270 lines (202 loc) · 6.26 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
package com.github.aiassistant.entity;
import com.github.aiassistant.service.text.AssistantConfig;
import java.io.Serializable;
import java.util.Date;
//// @Data
//// @TableName("ai_assistant")
public class AiAssistant implements AssistantConfig, Serializable {
// // @TableId(value = "id", type = IdType.NONE)
private String id;
// // @ApiModelProperty(value = "名称", required = true)
private String name;
// // @ApiModelProperty(value = "描述", required = true)
private String description;
// // @ApiModelProperty(value = "打招呼", required = true)
private String helloMessage;
// // @ApiModelProperty(value = "Logo URL", required = true)
private String logoUrl;
// // @ApiModelProperty(value = "系统提示文本", required = true)
private String systemPromptText;
// // @ApiModelProperty(value = "KN提示文本", required = true)
private String knPromptText;
// // @ApiModelProperty(value = "状态枚举(1发布 0未发布)", required = true)
private Integer statusEnum;
// // @ApiModelProperty(value = "排序", required = true)
private Integer sorted;
// // @ApiModelProperty(value = "工具枚举", required = true)
private String aiToolIds;
// // @ApiModelProperty(value = "子智能体", required = true)
private String aiJsonschemaIds;
// // @ApiModelProperty(value = "最大记忆", required = true)
private Integer maxMemoryTokens;
// // @ApiModelProperty(value = "最多记忆几轮对话", required = true)
private Integer maxMemoryRounds;
// // @ApiModelProperty(value = "指令生成的回答中包含的最大token数。例如,如果设置为100,那么模型生成的回答中token数不会超过100个", required = true)
private Integer maxCompletionTokens;
private String chatApiKey;
private String chatBaseUrl;
private String chatModelName;
private Date createTime;
private Integer createUid;
private Date updateTime;
private Integer updateUid;
private Double temperature;
private String mstatePromptText;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public String getTableName() {
return "ai_assistant";
}
@Override
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getHelloMessage() {
return helloMessage;
}
public void setHelloMessage(String helloMessage) {
this.helloMessage = helloMessage;
}
public String getLogoUrl() {
return logoUrl;
}
public void setLogoUrl(String logoUrl) {
this.logoUrl = logoUrl;
}
@Override
public String getSystemPromptText() {
return systemPromptText;
}
public void setSystemPromptText(String systemPromptText) {
this.systemPromptText = systemPromptText;
}
public String getKnPromptText() {
return knPromptText;
}
public void setKnPromptText(String knPromptText) {
this.knPromptText = knPromptText;
}
public Integer getStatusEnum() {
return statusEnum;
}
public void setStatusEnum(Integer statusEnum) {
this.statusEnum = statusEnum;
}
public Integer getSorted() {
return sorted;
}
public void setSorted(Integer sorted) {
this.sorted = sorted;
}
@Override
public String getAiToolIds() {
return aiToolIds;
}
public void setAiToolIds(String aiToolIds) {
this.aiToolIds = aiToolIds;
}
@Override
public String getAiJsonschemaIds() {
return aiJsonschemaIds;
}
public void setAiJsonschemaIds(String aiJsonschemaIds) {
this.aiJsonschemaIds = aiJsonschemaIds;
}
@Override
public Integer getMaxMemoryTokens() {
return maxMemoryTokens;
}
public void setMaxMemoryTokens(Integer maxMemoryTokens) {
this.maxMemoryTokens = maxMemoryTokens;
}
@Override
public Integer getMaxMemoryRounds() {
return maxMemoryRounds;
}
public void setMaxMemoryRounds(Integer maxMemoryRounds) {
this.maxMemoryRounds = maxMemoryRounds;
}
@Override
public Integer getMaxCompletionTokens() {
return maxCompletionTokens;
}
public void setMaxCompletionTokens(Integer maxCompletionTokens) {
this.maxCompletionTokens = maxCompletionTokens;
}
@Override
public String getChatApiKey() {
return chatApiKey;
}
public void setChatApiKey(String chatApiKey) {
this.chatApiKey = chatApiKey;
}
@Override
public String getChatBaseUrl() {
return chatBaseUrl;
}
public void setChatBaseUrl(String chatBaseUrl) {
this.chatBaseUrl = chatBaseUrl;
}
@Override
public String getChatModelName() {
return chatModelName;
}
public void setChatModelName(String chatModelName) {
this.chatModelName = chatModelName;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Integer getCreateUid() {
return createUid;
}
public void setCreateUid(Integer createUid) {
this.createUid = createUid;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getUpdateUid() {
return updateUid;
}
public void setUpdateUid(Integer updateUid) {
this.updateUid = updateUid;
}
@Override
public Double getTemperature() {
return temperature;
}
public void setTemperature(Double temperature) {
this.temperature = temperature;
}
public String getMstatePromptText() {
return mstatePromptText;
}
public void setMstatePromptText(String mstatePromptText) {
this.mstatePromptText = mstatePromptText;
}
@Override
public String toString() {
return id + "#" + name;
}
}