Class ChatCompletionMessage
- java.lang.Object
-
- com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
-
public class ChatCompletionMessage extends Object
-
-
Constructor Summary
Constructors Constructor Description ChatCompletionMessage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ChatCompletionMessagePart>
getContent()
ChatCompletionRequest.Role
getRole()
boolean
isEmpty(Void ignoreJustPreventSerialization)
static ChatCompletionMessage
make(GPTChatMessage message)
void
setContent(List<ChatCompletionMessagePart> content)
void
setRole(ChatCompletionRequest.Role role)
-
-
-
Method Detail
-
getRole
public ChatCompletionRequest.Role getRole()
-
setRole
public void setRole(ChatCompletionRequest.Role role)
-
getContent
public List<ChatCompletionMessagePart> getContent()
-
setContent
public void setContent(List<ChatCompletionMessagePart> content)
-
isEmpty
public boolean isEmpty(Void ignoreJustPreventSerialization)
-
make
public static ChatCompletionMessage make(GPTChatMessage message)
-
-