Enum Class的使用
dev.langchain4j.data.message.ChatMessageType
使用ChatMessageType的程序包
-
dev.langchain4j.data.message中ChatMessageType的使用
修饰符和类型方法说明AiMessage.type()ChatMessage.type()The type of the message.SystemMessage.type()ToolExecutionResultMessage.type()UserMessage.type()static ChatMessageTypeReturns the enum constant of this class with the specified name.static ChatMessageType[]ChatMessageType.values()Returns an array containing the constants of this enum class, in the order they are declared.