Package lumis.service.virtualassistant
Class VirtualAssistantResource.PromptRequest
- java.lang.Object
-
- lumis.service.virtualassistant.VirtualAssistantResource.PromptRequest
-
- Enclosing class:
- VirtualAssistantResource
public static class VirtualAssistantResource.PromptRequest extends java.lang.Object
Request data for aVirtualAssistantResource.prompt(javax.ws.rs.sse.SseEventSink, javax.ws.rs.sse.Sse, lumis.service.virtualassistant.VirtualAssistantResource.PromptRequest)
call.- Since:
- 16.1.0
- Version:
- $Revision: 26197 $ $Date: 2024-02-02 15:09:39 -0300 (Fri, 02 Feb 2024) $
-
-
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.
-
-
-
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
-
-