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