Class LC4jToolService.Builder
java.lang.Object
org.bsc.langgraph4j.langchain4j.tool.LC4jToolMapBuilder<LC4jToolService.Builder>
org.bsc.langgraph4j.langchain4j.tool.LC4jToolService.Builder
- Enclosing class:
- LC4jToolService
Builder for
LC4jToolService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the nodespecification(dev.langchain4j.agent.tool.ToolSpecification spec, dev.langchain4j.service.tool.ToolExecutor executor) Deprecated.specification(Object objectWithTool) Deprecated.specification(LC4jToolService.Specification toolSpecification) Deprecated.Methods inherited from class org.bsc.langgraph4j.langchain4j.tool.LC4jToolMapBuilder
result, tool, tool, toolMap, toolsFromObject
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
specification
@Deprecated public LC4jToolService.Builder specification(dev.langchain4j.agent.tool.ToolSpecification spec, dev.langchain4j.service.tool.ToolExecutor executor) Deprecated.Adds a tool specification to the node- Parameters:
spec- the tool specificationexecutor- the executor to use- Returns:
- the builder
-
specification
@Deprecated public LC4jToolService.Builder specification(LC4jToolService.Specification toolSpecification) Deprecated.Adds a tool specification to the node- Parameters:
toolSpecification- the tool specification- Returns:
- the builder
-
specification
Deprecated.Adds all the methods annotated withToolto the node- Parameters:
objectWithTools- the object containing the tools- Returns:
- the builder
-
build
Builds the node- Returns:
- the node
-