Class MessageTypeAdapter

java.lang.Object
com.google.gson.TypeAdapter<Message>
dev.langchain4j.model.qianfan.client.MessageTypeAdapter

public class MessageTypeAdapter extends com.google.gson.TypeAdapter<Message>
  • Field Details

    • MESSAGE_TYPE_ADAPTER_FACTORY

      public static final com.google.gson.TypeAdapterFactory MESSAGE_TYPE_ADAPTER_FACTORY
  • Method Details

    • write

      public void write(com.google.gson.stream.JsonWriter out, Message message) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<Message>
      Throws:
      IOException
    • read

      public Message read(com.google.gson.stream.JsonReader in) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<Message>
      Throws:
      IOException