Uses of Enum Class
dev.langchain4j.model.workersai.client.WorkersAiChatCompletionRequest.MessageRole
-
Uses of WorkersAiChatCompletionRequest.MessageRole in dev.langchain4j.model.workersai.client
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.WorkersAiChatCompletionRequest.MessageRole.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionvoid
WorkersAiChatCompletionRequest.addMessage
(WorkersAiChatCompletionRequest.MessageRole role, String content) Adds a new message to the chat completion request.ModifierConstructorDescriptionConstructs a WorkerAiChatCompletionRequest with an initial message.