Class LC4jToolService
java.lang.Object
org.bsc.langgraph4j.langchain4j.tool.LC4jToolService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forLC4jToolServicestatic final recordDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionLC4jToolService(Map<dev.langchain4j.agent.tool.ToolSpecification, dev.langchain4j.service.tool.ToolExecutor> toolMap) -
Method Summary
Modifier and TypeMethodDescriptionstatic LC4jToolService.Builderbuilder()execute(List<dev.langchain4j.agent.tool.ToolExecutionRequest> requests, dev.langchain4j.invocation.InvocationContext context, String propertyNameToUpdate) List<dev.langchain4j.agent.tool.ToolSpecification>Returns a list ofToolSpecifications that can be executed by this node
-
Constructor Details
-
LC4jToolService
public LC4jToolService(Map<dev.langchain4j.agent.tool.ToolSpecification, dev.langchain4j.service.tool.ToolExecutor> toolMap)
-
-
Method Details
-
builder
-
toolSpecifications
Returns a list ofToolSpecifications that can be executed by this node- Returns:
- a list of tool specifications
-
execute
public CompletableFuture<Command> execute(List<dev.langchain4j.agent.tool.ToolExecutionRequest> requests, dev.langchain4j.invocation.InvocationContext context, String propertyNameToUpdate)
-
Map.Entry<dev.langchain4j.agent.tool.ToolSpecification,dev.langchain4j.service.tool.ToolExecutor> instead