Record Class AgentArgument
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.planner.AgentArgument
-
Constructor Summary
ConstructorsConstructorDescriptionAgentArgument(Type type, String name) AgentArgument(Type type, String name, Object defaultValue) AgentArgument(Type type, String name, Object defaultValue, boolean isOptional) Creates an instance of aAgentArgumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisOptionalrecord component.name()Returns the value of thenamerecord component.Class<?> rawType()final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AgentArgument
-
AgentArgument
-
AgentArgument
Creates an instance of aAgentArgumentrecord class.- Parameters:
type- the value for thetyperecord componentname- the value for thenamerecord componentdefaultValue- the value for thedefaultValuerecord componentisOptional- the value for theisOptionalrecord component
-
-
Method Details
-
rawType
-
toString
-
hashCode
-
equals
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
isOptional
public boolean isOptional()Returns the value of theisOptionalrecord component.- Returns:
- the value of the
isOptionalrecord component
-