Uses of Enum Class
dev.langchain4j.model.workersai.client.WorkersAiChatCompletionRequest.MessageRole
Packages that use WorkersAiChatCompletionRequest.MessageRole
-
Uses of WorkersAiChatCompletionRequest.MessageRole in dev.langchain4j.model.workersai.client
Subclasses with type arguments of type WorkersAiChatCompletionRequest.MessageRole in dev.langchain4j.model.workersai.clientModifier and TypeClassDescriptionstatic enumDefines the roles a message can have in the chat conversation.Methods in dev.langchain4j.model.workersai.client that return WorkersAiChatCompletionRequest.MessageRoleModifier and TypeMethodDescriptionWorkersAiChatCompletionRequest.Message.getRole()Returns 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.Methods in dev.langchain4j.model.workersai.client with parameters of type WorkersAiChatCompletionRequest.MessageRoleModifier and TypeMethodDescriptionvoidWorkersAiChatCompletionRequest.addMessage(WorkersAiChatCompletionRequest.MessageRole role, String content) Adds a new message to the chat completion request.voidWorkersAiChatCompletionRequest.Message.setRole(WorkersAiChatCompletionRequest.MessageRole role) Constructors in dev.langchain4j.model.workersai.client with parameters of type WorkersAiChatCompletionRequest.MessageRoleModifierConstructorDescriptionMessage(WorkersAiChatCompletionRequest.MessageRole role, String content) Constructs a WorkerAiChatCompletionRequest with an initial message.