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 agentUniqueName, ChatMessage message)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAgentMessage(String agentName, String agentUniqueName, ChatMessage message) Creates an instance of aAgentMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentNamerecord component.Returns the value of theagentUniqueNamerecord 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 componentagentUniqueName- the value for theagentUniqueNamerecord 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
-
agentUniqueName
Returns the value of theagentUniqueNamerecord component.- Returns:
- the value of the
agentUniqueNamerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-