Uses of Class
com.azure.ai.openai.assistants.models.MessageRole
Packages that use MessageRole
Package
Description
Package containing the data models for Assistants.
-
Uses of MessageRole in com.azure.ai.openai.assistants.models
Fields in com.azure.ai.openai.assistants.models declared as MessageRoleModifier and TypeFieldDescriptionstatic final MessageRole
MessageRole.ASSISTANT
The role representing the assistant.static final MessageRole
MessageRole.USER
The role representing the end-user.Methods in com.azure.ai.openai.assistants.models that return MessageRoleModifier and TypeMethodDescriptionstatic MessageRole
MessageRole.fromString
(String name) Creates or finds a MessageRole from its string representation.MessageDelta.getRole()
Get the role property: The entity that produced the message.ThreadMessage.getRole()
Get the role property: The role associated with the assistant thread message.ThreadMessageOptions.getRole()
Get the role property: The role of the entity that is creating the message.Methods in com.azure.ai.openai.assistants.models that return types with arguments of type MessageRoleModifier and TypeMethodDescriptionstatic Collection
<MessageRole> MessageRole.values()
Gets known MessageRole values.Constructors in com.azure.ai.openai.assistants.models with parameters of type MessageRoleModifierConstructorDescriptionThreadMessage
(String id, OffsetDateTime createdAt, String threadId, MessageStatus status, MessageIncompleteDetails incompleteDetails, OffsetDateTime completedAt, OffsetDateTime incompleteAt, MessageRole role, List<MessageContent> content, String assistantId, String runId, List<MessageAttachment> attachments, Map<String, String> metadata) Creates an instance of ThreadMessage class.ThreadMessageOptions
(MessageRole role, String content) Creates an instance of ThreadMessageOptions class.