Record Class ToolNode.Specification
java.lang.Object
java.lang.Record
org.bsc.langgraph4j.langchain4j.tool.ToolNode.Specification
- Enclosing class:
- ToolNode
@Deprecated
public static record ToolNode.Specification(dev.langchain4j.agent.tool.ToolSpecification value, dev.langchain4j.service.tool.ToolExecutor executor)
extends Record
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionSpecification(dev.langchain4j.agent.tool.ToolSpecification value, dev.langchain4j.service.tool.ToolExecutor executor) Deprecated.Creates an instance of aSpecificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated.Indicates whether some other object is "equal to" this one.dev.langchain4j.service.tool.ToolExecutorexecutor()Deprecated.Returns the value of theexecutorrecord component.final inthashCode()Deprecated.Returns a hash code value for this object.static ToolNode.Specificationof(dev.langchain4j.agent.tool.ToolSpecification value, dev.langchain4j.service.tool.ToolExecutor executor) Deprecated.final StringtoString()Deprecated.Returns a string representation of this record class.dev.langchain4j.agent.tool.ToolSpecificationvalue()Deprecated.Returns the value of thevaluerecord component.
-
Constructor Details
-
Specification
public Specification(dev.langchain4j.agent.tool.ToolSpecification value, dev.langchain4j.service.tool.ToolExecutor executor) Deprecated.Creates an instance of aSpecificationrecord class.- Parameters:
value- the value for thevaluerecord componentexecutor- the value for theexecutorrecord component
-
-
Method Details
-
of
public static ToolNode.Specification of(dev.langchain4j.agent.tool.ToolSpecification value, dev.langchain4j.service.tool.ToolExecutor executor) Deprecated. -
toString
Deprecated.Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated.Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
value
public dev.langchain4j.agent.tool.ToolSpecification value()Deprecated.Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
executor
public dev.langchain4j.service.tool.ToolExecutor executor()Deprecated.Returns the value of theexecutorrecord component.- Returns:
- the value of the
executorrecord component
-