Package dev.langchain4j.data.message
Interface ChatMessage
- All Known Implementing Classes:
AiMessage
,CustomMessage
,SystemMessage
,ToolExecutionResultMessage
,UserMessage
public interface ChatMessage
Represents a chat message.
Used together with
ChatLanguageModel
and StreamingChatLanguageModel
.- See Also:
-
Method Summary
-
Method Details
-
type
ChatMessageType type()The type of the message.- Returns:
- the type of the message
-