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 public static class ToolNode.Builder extends LC4jToolMapBuilder<ToolNode.Builder>
Deprecated.
Builder for ToolNode
  • 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 specification
      executor - the executor to use
      Returns:
      the builder
    • specification

      public ToolNode.Builder specification(ToolNode.Specification toolSpecifications)
      Deprecated.
      Adds a tool specification to the node
      Parameters:
      toolSpecifications - the tool specification
      Returns:
      the builder
    • specification

      public ToolNode.Builder specification(Object objectWithTools)
      Deprecated.
      Adds all the methods annotated with Tool to the node
      Parameters:
      objectWithTool - the object containing the tool
      Returns:
      the builder
    • build

      public ToolNode build()
      Deprecated.
      Builds the node
      Returns:
      the node