Uses of Class
com.azure.ai.agents.persistent.models.MessageRole
Packages that use MessageRole
Package
Description
Package containing the classes for Agents.
Package containing the data models for Agents.
-
Uses of MessageRole in com.azure.ai.agents.persistent
Methods in com.azure.ai.agents.persistent with parameters of type MessageRoleModifier and TypeMethodDescriptionMessagesAsyncClient.createMessage(String threadId, MessageRole role, com.azure.core.util.BinaryData content) Creates a new message on a specified thread.MessagesAsyncClient.createMessage(String threadId, MessageRole role, com.azure.core.util.BinaryData content, List<MessageAttachment> attachments, Map<String, String> metadata) Creates a new message on a specified thread.MessagesAsyncClient.createMessage(String threadId, MessageRole role, String content) Creates a new message on a specified thread.MessagesAsyncClient.createMessage(String threadId, MessageRole role, String content, List<MessageAttachment> attachments, Map<String, String> metadata) Creates a new message on a specified thread.MessagesClient.createMessage(String threadId, MessageRole role, com.azure.core.util.BinaryData content) Creates a new message on a specified thread.MessagesClient.createMessage(String threadId, MessageRole role, com.azure.core.util.BinaryData content, List<MessageAttachment> attachments, Map<String, String> metadata) Creates a new message on a specified thread.MessagesClient.createMessage(String threadId, MessageRole role, String content) Creates a new message on a specified thread.MessagesClient.createMessage(String threadId, MessageRole role, String content, List<MessageAttachment> attachments, Map<String, String> metadata) Creates a new message on a specified thread. -
Uses of MessageRole in com.azure.ai.agents.persistent.models
Fields in com.azure.ai.agents.persistent.models declared as MessageRoleModifier and TypeFieldDescriptionstatic final MessageRoleMessageRole.AGENTThe role representing the agent.static final MessageRoleMessageRole.USERThe role representing the end-user.Methods in com.azure.ai.agents.persistent.models that return MessageRoleModifier and TypeMethodDescriptionstatic MessageRoleMessageRole.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 agent thread message.ThreadMessageOptions.getRole()Get the role property: The role of the entity that is creating the message.Methods in com.azure.ai.agents.persistent.models that return types with arguments of type MessageRoleModifier and TypeMethodDescriptionstatic Collection<MessageRole> MessageRole.values()Gets known MessageRole values.Constructors in com.azure.ai.agents.persistent.models with parameters of type MessageRoleModifierConstructorDescriptionThreadMessageOptions(MessageRole role, com.azure.core.util.BinaryData content) Creates an instance of ThreadMessageOptions class.