Uses of Class
com.azure.ai.inference.models.ChatRole

Packages that use ChatRole
Package
Description
Package containing the data models for Model.
  • Uses of ChatRole in com.azure.ai.inference.models

    Modifier and Type
    Field
    Description
    static final ChatRole
    ChatRole.ASSISTANT
    The role that provides responses to system-instructed, user-prompted input.
    static final ChatRole
    ChatRole.DEVELOPER
    The role that instructs or sets the behavior of the assistant.
    static final ChatRole
    ChatRole.SYSTEM
    The role that instructs or sets the behavior of the assistant.
    static final ChatRole
    ChatRole.TOOL
    The role that represents extension tool activity within a chat completions operation.
    static final ChatRole
    ChatRole.USER
    The role that provides input for chat completions.
    Modifier and Type
    Method
    Description
    static ChatRole
    ChatRole.fromString(String name)
    Creates or finds a ChatRole from its string representation.
    ChatRequestAssistantMessage.getRole()
    Get the role property: The chat role associated with this message.
    ChatRequestDeveloperMessage.getRole()
    Get the role property: The chat role associated with this message.
    ChatRequestMessage.getRole()
    Get the role property: The chat role associated with this message.
    ChatRequestSystemMessage.getRole()
    Get the role property: The chat role associated with this message.
    ChatRequestToolMessage.getRole()
    Get the role property: The chat role associated with this message.
    ChatRequestUserMessage.getRole()
    Get the role property: The chat role associated with this message.
    ChatResponseMessage.getRole()
    Get the role property: The chat role associated with the message.
    StreamingChatResponseMessageUpdate.getRole()
    Get the role property: The chat role associated with the message.
    Methods in com.azure.ai.inference.models that return types with arguments of type ChatRole
    Modifier and Type
    Method
    Description
    ChatRole.values()
    Gets known ChatRole values.