Record Class DefaultAgenticScope.AgentMessage
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.scope.DefaultAgenticScope.AgentMessage
- Enclosing class:
DefaultAgenticScope
-
Constructor Summary
ConstructorsConstructorDescriptionAgentMessage(String agentName, String agentId, dev.langchain4j.data.message.ChatMessage message) Creates an instance of aAgentMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord 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.dev.langchain4j.data.message.ChatMessagemessage()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentMessage
public AgentMessage(String agentName, String agentId, dev.langchain4j.data.message.ChatMessage message) Creates an instance of aAgentMessagerecord class.- Parameters:
agentName- the value for theagentNamerecord componentagentId- the value for theagentIdrecord 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
-
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-
message
public dev.langchain4j.data.message.ChatMessage message()Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-