ToolSpecificationHolder.java
1.08 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
package com.xly.tool;
import dev.langchain4j.service.tool.ToolExecutor;
import dev.langchain4j.agent.tool.ToolSpecification;
public class ToolSpecificationHolder {
private final ToolSpecification toolSpecification;
private final ToolExecutor toolExecutor;
private final String sName;
private final String sMethodName;
private final String stoolDesc;
public ToolSpecificationHolder(ToolSpecification toolSpecification, ToolExecutor toolExecutor,String sName,String sMethodName,String stoolDesc) {
this.toolSpecification = toolSpecification;
this.toolExecutor = toolExecutor;
this.sName = sName;
this.sMethodName = sMethodName;
this.stoolDesc = stoolDesc;
}
public ToolSpecification getToolSpecification() {
return toolSpecification;
}
public ToolExecutor getToolExecutor() {
return toolExecutor;
}
public String getsName() {
return sName;
}
public String getsMethodName() {
return sMethodName;
}
public String getStoolDesc() {
return stoolDesc;
}
}