Class WorkersAiChatCompletionRequest.Message
java.lang.Object
dev.langchain4j.model.workersai.client.WorkersAiChatCompletionRequest.Message
- Enclosing class:
WorkersAiChatCompletionRequest
Represents a message in the AI chat.
Each message has a role and content.
-
Constructor Summary
ConstructorsConstructorDescriptionMessage()
Default constructor.Message
(WorkersAiChatCompletionRequest.MessageRole role, String content) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getRole()
int
hashCode()
void
setContent
(String content) void
toString()