-
Notifications
You must be signed in to change notification settings - Fork 364
Expand file tree
/
Copy pathSemanticModelDTO.java
More file actions
162 lines (126 loc) · 4.22 KB
/
SemanticModelDTO.java
File metadata and controls
162 lines (126 loc) · 4.22 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
/*
* Copyright 2024-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.cloud.ai.dto;
/**
* Semantic model configuration entity class
*/
public class SemanticModelDTO {
private Long id; // Unique identifier
private String agentId; // Agent ID
private String originalFieldName; // Original field name
private String agentFieldName; // Agent field name
private String fieldSynonyms; // Field name synonyms, comma separated
private String fieldDescription; // Field description
private Boolean defaultRecall; // Default recall
private Boolean enabled; // Whether enabled
private String fieldType; // Field type
private String originalDescription; // Original field description
public SemanticModelDTO() {
}
public SemanticModelDTO(String agentId, String originalFieldName, String agentFieldName, String fieldSynonyms,
String fieldDescription, Boolean defaultRecall, Boolean enabled, String fieldType,
String originalDescription) {
this.agentId = agentId;
this.originalFieldName = originalFieldName;
this.agentFieldName = agentFieldName;
this.fieldSynonyms = fieldSynonyms;
this.fieldDescription = fieldDescription;
this.defaultRecall = defaultRecall;
this.enabled = enabled;
this.fieldType = fieldType;
this.originalDescription = originalDescription;
}
public SemanticModelDTO(String originalFieldName, String agentFieldName, String fieldSynonyms,
String fieldDescription, String fieldType, String originalDescription, Boolean defaultRecall,
Boolean enabled) {
this.originalFieldName = originalFieldName;
this.agentFieldName = agentFieldName;
this.fieldSynonyms = fieldSynonyms;
this.fieldDescription = fieldDescription;
this.fieldType = fieldType;
this.originalDescription = originalDescription;
this.defaultRecall = defaultRecall;
this.enabled = enabled;
}
// Getters and Setters
public String getAgentId() {
return agentId;
}
public void setAgentId(String agentId) {
this.agentId = agentId;
}
// Getters and Setters
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getOriginalFieldName() {
return originalFieldName;
}
public void setOriginalFieldName(String originalFieldName) {
this.originalFieldName = originalFieldName;
}
public String getAgentFieldName() {
return agentFieldName;
}
public void setAgentFieldName(String agentFieldName) {
this.agentFieldName = agentFieldName;
}
public String getFieldSynonyms() {
return fieldSynonyms;
}
public void setFieldSynonyms(String fieldSynonyms) {
this.fieldSynonyms = fieldSynonyms;
}
public String getFieldDescription() {
return fieldDescription;
}
public void setFieldDescription(String fieldDescription) {
this.fieldDescription = fieldDescription;
}
public Boolean getDefaultRecall() {
return defaultRecall;
}
public void setDefaultRecall(Boolean defaultRecall) {
this.defaultRecall = defaultRecall;
}
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public String getFieldType() {
return fieldType;
}
public void setFieldType(String fieldType) {
this.fieldType = fieldType;
}
public String getOriginalDescription() {
return originalDescription;
}
public void setOriginalDescription(String originalDescription) {
this.originalDescription = originalDescription;
}
@Override
public String toString() {
return String.format("智能体字段名: %s, 数据库字段名: %s, 字段同义词: %s, 智能体字段描述: %s, 字段类型: %s, 数据库字段描述: %s",
getAgentFieldName(), getOriginalFieldName(), getFieldSynonyms(), getFieldDescription(), getFieldType(),
getOriginalDescription());
}
}