Record Class TextChatMessage.TextChatMessageUser
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.watsonx.bean.TextChatMessage.TextChatMessageUser
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkiverse.langchain4j.watsonx.bean.TextChatMessage
TextChatMessage.StreamingToolFetcher, TextChatMessage.TextChatMessageAssistant, TextChatMessage.TextChatMessageSystem, TextChatMessage.TextChatMessageTool, TextChatMessage.TextChatMessageUser, TextChatMessage.TextChatParameterTool, TextChatMessage.TextChatToolCall -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.of(dev.langchain4j.data.message.UserMessage userMessage) Creates aTextChatMessage.TextChatMessageUserfrom aUserMessage.Creates aTextChatMessage.TextChatMessageUser.role()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextChatMessageUser
Creates an instance of aTextChatMessageUserrecord class.- Parameters:
role- the value for therolerecord componentcontent- the value for thecontentrecord componentname- the value for thenamerecord component
-
-
Method Details
-
of
public static TextChatMessage.TextChatMessageUser of(dev.langchain4j.data.message.UserMessage userMessage) Creates aTextChatMessage.TextChatMessageUserfrom aUserMessage.- Parameters:
userMessage- the user message to convert- Returns:
- the created
TextChatMessage.TextChatMessageUser
-
of
Creates aTextChatMessage.TextChatMessageUser.- Parameters:
message- the content of the system message to be created.- Returns:
- the created
TextChatMessage.TextChatMessageUser.
-
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). -
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
content
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-