Record Class AgentResponse
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.agent.AgentResponse
-
Constructor Summary
ConstructorsConstructorDescriptionAgentResponse
(AgenticScope agenticScope, String agentName, Map<String, Object> inputs, Object output) Creates an instance of aAgentResponse
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.output()
Returns the value of theoutput
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AgentResponse
public AgentResponse(AgenticScope agenticScope, String agentName, Map<String, Object> inputs, Object output) Creates an instance of aAgentResponse
record class.- Parameters:
agenticScope
- the value for theagenticScope
record componentagentName
- the value for theagentName
record componentinputs
- the value for theinputs
record componentoutput
- the value for theoutput
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
-
output
Returns the value of theoutput
record component.- Returns:
- the value of the
output
record component
-