Package dev.langchain4j.data.message
Interface ChatMessage
-
- All Implemented Interfaces:
public interface ChatMessage
Represents a chat message. Used together with ChatLanguageModel and StreamingChatLanguageModel.
-
-
Method Summary
Modifier and Type Method Description abstract ChatMessageType
type()
The type of the message. abstract String
text()
The text of the message. -
-
Method Detail
-
type
abstract ChatMessageType type()
The type of the message.
- Returns:
the type of the message
-
text
@Deprecated(forRemoval = true) abstract String text()
The text of the message.
- Returns:
the text of the message
-
-
-
-