Class VirtualAssistantResource.PromptRequest

    • Constructor Summary

      Constructors 
      Constructor Description
      PromptRequest()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<com.theokanning.openai.completion.chat.ChatMessage> getOpenAiMessages()
      Returns the messages in this prompt request as OpenAi ChatMessage objects.
      void validate()
      Validates the data in this request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PromptRequest

        public PromptRequest()
    • Method Detail

      • getOpenAiMessages

        public java.util.List<com.theokanning.openai.completion.chat.ChatMessage> getOpenAiMessages()
        Returns the messages in this prompt request as OpenAi ChatMessage objects.
        Returns:
        the messages.
        Since:
        16.1.0
      • validate

        public void validate()
        Validates the data in this request.
        Throws:
        java.lang.IllegalArgumentException - if the request is invalid.
        Since:
        16.1.0