-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAiTool.java
More file actions
116 lines (95 loc) · 2.94 KB
/
AiTool.java
File metadata and controls
116 lines (95 loc) · 2.94 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
package com.github.aiassistant.entity;
import java.io.Serializable;
import java.util.Date;
/**
* AI工具提示词
* UNIQUE INDEX `uniq_tool_function_name`(`tool_function_name`) USING BTREE,
* UNIQUE INDEX `uniq_tool_enum_function_enum`(`tool_enum`, `tool_function_enum`) USING BTREE
*/
// @Data
// @TableName("ai_tool")
public class AiTool implements Serializable {
// @TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 函数名称,给AI和让用户看的名称(需要全局唯一)
* UNIQUE INDEX `uniq_tool_function_name`(`tool_function_name`) USING BTREE,
*/
private String toolFunctionName;
/**
* 函数枚举(就是研发实现的工具类对象的方法名)
* UNIQUE INDEX `uniq_tool_enum_function_enum`(`tool_enum`, `tool_function_enum`) USING BTREE
*/
private String toolFunctionEnum;
/**
* 工具枚举(就是研发实现的工具类在spring中的beanName)
* UNIQUE INDEX `uniq_tool_enum_function_enum`(`tool_enum`, `tool_function_enum`) USING BTREE
*/
private String toolEnum;
/**
* 函数提示词(给AI用的)
*/
private String toolFunctionDescription;
private Date createTime;
private Date updateTime;
private Integer createUid;
private Integer updateUid;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getToolFunctionName() {
return toolFunctionName;
}
public void setToolFunctionName(String toolFunctionName) {
this.toolFunctionName = toolFunctionName;
}
public String getToolFunctionEnum() {
return toolFunctionEnum;
}
public void setToolFunctionEnum(String toolFunctionEnum) {
this.toolFunctionEnum = toolFunctionEnum;
}
public String getToolEnum() {
return toolEnum;
}
public void setToolEnum(String toolEnum) {
this.toolEnum = toolEnum;
}
public String getToolFunctionDescription() {
return toolFunctionDescription;
}
public void setToolFunctionDescription(String toolFunctionDescription) {
this.toolFunctionDescription = toolFunctionDescription;
}
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;
}
public Integer getCreateUid() {
return createUid;
}
public void setCreateUid(Integer createUid) {
this.createUid = createUid;
}
public Integer getUpdateUid() {
return updateUid;
}
public void setUpdateUid(Integer updateUid) {
this.updateUid = updateUid;
}
@Override
public String toString() {
return id + "#" + toolEnum + "." + toolFunctionEnum + ")";
}
}