Uses of Class
com.azure.ai.openai.models.ChatRole
Packages that use ChatRole
-
Uses of ChatRole in com.azure.ai.openai.models
Fields in com.azure.ai.openai.models declared as ChatRoleModifier and TypeFieldDescriptionstatic final ChatRoleChatRole.ASSISTANTThe role that provides responses to system-instructed, user-prompted input.static final ChatRoleChatRole.FUNCTIONThe role that provides function results for char completions.static final ChatRoleChatRole.SYSTEMThe role that instructs or sets the behavior of the assistant.static final ChatRoleChatRole.USERThe role that provides input for chat completions.Methods in com.azure.ai.openai.models that return ChatRoleModifier and TypeMethodDescriptionstatic ChatRoleChatRole.fromString(String name) Creates or finds a ChatRole from its string representation.ChatMessage.getRole()Get the role property: The role associated with this message payload.Methods in com.azure.ai.openai.models that return types with arguments of type ChatRoleModifier and TypeMethodDescriptionstatic Collection<ChatRole>ChatRole.values()Gets known ChatRole values.Constructors in com.azure.ai.openai.models with parameters of type ChatRoleModifierConstructorDescriptionChatMessage(ChatRole role, String content) Creates an instance of ChatMessage class.