Package dev.langchain4j.data.message
Interface ChatMessage
- All Known Implementing Classes:
AiMessage
,SystemMessage
,ToolExecutionResultMessage
,UserMessage
public interface ChatMessage
A chat message.
-
Method Details
-
type
ChatMessageType type()The type of the message.- Returns:
- the type of the message
-
text
Deprecated.decode throughtype()
instead.The text of the message.- Returns:
- the text of the message
-
type()
instead.