Class CustomMessage
java.lang.Object
dev.langchain4j.data.message.CustomMessage
- All Implemented Interfaces:
ChatMessage
Represents a custom message.
Can be used only with
ChatModel implementations that support this type of message.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the message attributes.static CustomMessagecustomMessage(Map<String, Object> attributes) Creates a new custom message.booleanstatic CustomMessageCreates a new custom message.inthashCode()toString()type()The type of the message.
-
Constructor Details
-
CustomMessage
-
-
Method Details
-
attributes
-
type
Description copied from interface:ChatMessageThe type of the message.- Specified by:
typein interfaceChatMessage- Returns:
- the type of the message
-
equals
-
hashCode
-
toString
-
from
Creates a new custom message.- Parameters:
attributes- the message attributes.- Returns:
- the custom message.
-
customMessage
Creates a new custom message.- Parameters:
attributes- the message attributes.- Returns:
- the custom message.
-