Class LC4jToolMapBuilder<T extends LC4jToolMapBuilder<T>>
java.lang.Object
org.bsc.langgraph4j.langchain4j.tool.LC4jToolMapBuilder<T>
- Direct Known Subclasses:
LC4jToolService.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Tresult()Optional<dev.langchain4j.skills.Skills>skills()final Tskills(dev.langchain4j.skills.Skill... skills) final Tskills(Collection<? extends dev.langchain4j.skills.Skill> skillList) 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(dev.langchain4j.mcp.client.McpClient mcpClient) add tools published by the mcp clientfinal 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.final TtoolsFromObject(Object... objectWithTools)
-
Constructor Details
-
LC4jToolMapBuilder
public LC4jToolMapBuilder()
-
-
Method Details
-
toolMap
public Map<dev.langchain4j.agent.tool.ToolSpecification,dev.langchain4j.service.tool.ToolExecutor> toolMap() -
skills
-
result
-
toolsFromObject
Sets the tool specification for the graph builder.- Parameters:
objectWithTools- the tool specification- Returns:
- the updated GraphBuilder instance
-
toolsFromObject
-
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 builder instance
-
tool
-
tool
add tools published by the mcp client- Parameters:
mcpClient- mcpClient instance- Returns:
- the updated builder instance
-
skills
-
skills
-