Record Class DefaultAgenticScope.AgentMessage
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.scope.DefaultAgenticScope.AgentMessage
- Enclosing class:
DefaultAgenticScope
public static record DefaultAgenticScope.AgentMessage(String agentName, String agentagentId, ChatMessage message)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAgentMessage(String agentName, String agentagentId, ChatMessage message) Creates an instance of aAgentMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentagentIdrecord component.Returns the value of theagentNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentMessage
Creates an instance of aAgentMessagerecord class.- Parameters:
agentName- the value for theagentNamerecord componentagentagentId- the value for theagentagentIdrecord componentmessage- the value for themessagerecord 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). -
agentName
Returns the value of theagentNamerecord component.- Returns:
- the value of the
agentNamerecord component
-
agentagentId
Returns the value of theagentagentIdrecord component.- Returns:
- the value of the
agentagentIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-