Class ChatMessage

java.lang.Object
com.hw.langchain.schema.BaseMessage
com.hw.langchain.schema.ChatMessage

public class ChatMessage extends BaseMessage
Type of message with arbitrary speaker.
Author:
HamaWhite
  • Constructor Details

    • ChatMessage

      public ChatMessage(String content, String role)
  • Method Details

    • type

      public String type()
      Description copied from class: BaseMessage
      Type of the message, used for serialization.
      Specified by:
      type in class BaseMessage