Class CreateMessageData


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]",
               comments="Generator version: 7.4.0")
    public class CreateMessageData
    extends Object
    CreateMessageData
    • Constructor Detail

      • CreateMessageData

        public CreateMessageData()
    • Method Detail

      • getHighlightCitations

        @Nullable
        public Boolean getHighlightCitations()
        Whether or not to highlight the citations in the response. If this is set to true or not included, the citations will be highlighted. If this is set to false, the citations will not be highlighted. Default is true.
        Returns:
        highlightCitations
      • setHighlightCitations

        public void setHighlightCitations​(Boolean highlightCitations)
      • addHighlightDelimitersItem

        public CreateMessageData addHighlightDelimitersItem​(String highlightDelimitersItem)
      • getHighlightDelimiters

        @Nullable
        public List<String> getHighlightDelimiters()
        The delimiters to use for highlighting the citations. If this is not included, the default delimiters will be used. Default is `[\".\", \"!\", \"?\", \"\\n\", \"\\t\", \",\"]`.
        Returns:
        highlightDelimiters
      • setHighlightDelimiters

        public void setHighlightDelimiters​(List<String> highlightDelimiters)
      • getModel

        @Nullable
        public String getModel()
        The model to use for the assistant's messages. This can be any model from the openrouter model list. If no model is provided, gpt-3.5-turbo will be used.
        Returns:
        model
      • setModel

        public void setModel​(String model)
      • getNewMessageContent

        @Nonnull
        @NotNull
        public @NotNull String getNewMessageContent()
        The content of the user message to attach to the topic and then generate an assistant message in response to.
        Returns:
        newMessageContent
      • setNewMessageContent

        public void setNewMessageContent​(String newMessageContent)
      • getStreamResponse

        @Nullable
        public Boolean getStreamResponse()
        Whether or not to stream the response. If this is set to true or not included, the response will be a stream. If this is set to false, the response will be a normal JSON response. Default is true.
        Returns:
        streamResponse
      • setStreamResponse

        public void setStreamResponse​(Boolean streamResponse)
      • getTopicId

        @Nonnull
        @NotNull
        @Valid
        public @NotNull @Valid UUID getTopicId()
        The ID of the topic to attach the message to.
        Returns:
        topicId
      • setTopicId

        public void setTopicId​(UUID topicId)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to CreateMessageData
      • fromJson

        public static CreateMessageData fromJson​(String jsonString)
                                          throws IOException
        Create an instance of CreateMessageData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CreateMessageData
        Throws:
        IOException - if the JSON string is invalid with respect to CreateMessageData
      • toJson

        public String toJson()
        Convert an instance of CreateMessageData to an JSON string
        Returns:
        JSON string