Class LC4jToolMapBuilder<T extends LC4jToolMapBuilder<T>>
java.lang.Object
org.bsc.langgraph4j.langchain4j.tool.LC4jToolMapBuilder<T>
- Direct Known Subclasses:
LC4jToolService.Builder,ToolNode.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Tresult()final Ttool(dev.langchain4j.agent.tool.ToolSpecification spec, dev.langchain4j.service.tool.ToolExecutor executor) Sets the tool specification with executor for the graph builder.final Ttool(Map.Entry<dev.langchain4j.agent.tool.ToolSpecification, dev.langchain4j.service.tool.ToolExecutor> entry) Map<dev.langchain4j.agent.tool.ToolSpecification,dev.langchain4j.service.tool.ToolExecutor> toolMap()final TtoolsFromObject(Object objectWithTools) Sets the tool specification for the graph builder.
-
Constructor Details
-
LC4jToolMapBuilder
public LC4jToolMapBuilder()
-
-
Method Details
-
toolMap
public Map<dev.langchain4j.agent.tool.ToolSpecification,dev.langchain4j.service.tool.ToolExecutor> toolMap() -
result
-
toolsFromObject
Sets the tool specification for the graph builder.- Parameters:
objectWithTools- the tool specification- Returns:
- the updated GraphBuilder instance
-
tool
public final T tool(dev.langchain4j.agent.tool.ToolSpecification spec, dev.langchain4j.service.tool.ToolExecutor executor) Sets the tool specification with executor for the graph builder.- Parameters:
spec- the tool specificationexecutor- the tool executor- Returns:
- the updated GraphBuilder instance
-
tool
-