Class LC4jToolService.Builder

java.lang.Object
org.bsc.langgraph4j.langchain4j.tool.LC4jToolMapBuilder<LC4jToolService.Builder>
org.bsc.langgraph4j.langchain4j.tool.LC4jToolService.Builder
Enclosing class:
LC4jToolService

public static class LC4jToolService.Builder extends LC4jToolMapBuilder<LC4jToolService.Builder>
Builder for LC4jToolService
  • 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 specification
      executor - 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 public LC4jToolService.Builder specification(Object objectWithTool)
      Deprecated.
      Adds all the methods annotated with Tool to the node
      Parameters:
      objectWithTools - the object containing the tools
      Returns:
      the builder
    • build

      public LC4jToolService build()
      Builds the node
      Returns:
      the node