Record Class AgentRequest
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.agent.AgentRequest
-
Constructor Summary
ConstructorsConstructorDescriptionAgentRequest
(AgenticScope agenticScope, String agentName, Map<String, Object> inputs) Creates an instance of aAgentRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagenticScope
record component.Returns the value of theagentName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.inputs()
Returns the value of theinputs
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AgentRequest
Creates an instance of aAgentRequest
record class.- Parameters:
agenticScope
- the value for theagenticScope
record componentagentName
- the value for theagentName
record componentinputs
- the value for theinputs
record component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
agenticScope
Returns the value of theagenticScope
record component.- Returns:
- the value of the
agenticScope
record component
-
agentName
Returns the value of theagentName
record component.- Returns:
- the value of the
agentName
record component
-
inputs
-