Skip to content

Commit

Permalink
remove annotate
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Dec 20, 2024
1 parent a926a96 commit 2085003
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.springframework.stereotype.Component;

import dev.langchain4j.agent.tool.JsonSchemaProperty;
import dev.langchain4j.agent.tool.Tool;
import dev.langchain4j.agent.tool.ToolSpecification;
import dev.langchain4j.service.tool.ToolExecutor;
import lombok.extern.slf4j.Slf4j;
Expand All @@ -41,7 +40,6 @@ public class ClusterInfoFunctions {
@Resource
private ClusterService clusterService;

@Tool("Get cluster list")
public Map<ToolSpecification, ToolExecutor> list() {
ToolSpecification toolSpecification = ToolSpecification.builder()
.name("list")
Expand All @@ -53,7 +51,6 @@ public Map<ToolSpecification, ToolExecutor> list() {
return Map.of(toolSpecification, toolExecutor);
}

@Tool("Get cluster information based on ID")
public Map<ToolSpecification, ToolExecutor> get() {
ToolSpecification toolSpecification = ToolSpecification.builder()
.name("get")
Expand All @@ -69,7 +66,6 @@ public Map<ToolSpecification, ToolExecutor> get() {
return Map.of(toolSpecification, toolExecutor);
}

@Tool("Get cluster information based on cluster name")
public Map<ToolSpecification, ToolExecutor> getByName() {
ToolSpecification toolSpecification = ToolSpecification.builder()
.name("getByName")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.springframework.stereotype.Component;

import dev.langchain4j.agent.tool.JsonSchemaProperty;
import dev.langchain4j.agent.tool.Tool;
import dev.langchain4j.agent.tool.ToolSpecification;
import dev.langchain4j.service.tool.ToolExecutor;
import lombok.extern.slf4j.Slf4j;
Expand All @@ -42,7 +41,6 @@ public class HostInfoFunctions {
@Resource
private HostService hostService;

@Tool("Get host information based on ID")
public Map<ToolSpecification, ToolExecutor> get() {
ToolSpecification toolSpecification = ToolSpecification.builder()
.name("get")
Expand All @@ -58,7 +56,6 @@ public Map<ToolSpecification, ToolExecutor> get() {
return Map.of(toolSpecification, toolExecutor);
}

@Tool("Get host information based on cluster name")
public Map<ToolSpecification, ToolExecutor> getByName() {
ToolSpecification toolSpecification = ToolSpecification.builder()
.name("getByName")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public Map<ToolSpecification, ToolExecutor> list() {

public Map<ToolSpecification, ToolExecutor> getServiceByName() {
ToolSpecification toolSpecification = ToolSpecification.builder()
.name("getByName")
.name("getServiceByName")
.description("Get service information and configs based on service name")
.addParameter(
"serviceName",
Expand Down

0 comments on commit 2085003

Please sign in to comment.