Search Results for

    Show / Hide Table of Contents

    Enum ChatRole

    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    [JsonConverter(typeof(ChatRoleJsonConverter))]
    public enum ChatRole

    Fields

    Name Description
    Assistant

    Messages sent by the model in response to user messages.

    The Google equivalent for this role is 'model', and it is converted to 'assistant' with the JsonConverter.

    System
    Tool

    Messages sent by the model. The message includes the function calls the model wants to make.
    Google Gemini equivalent for this role is 'function', and it is converted to 'tool' with the JsonConverter.

    [2025-04-12]
    Important: OpenAI has deprecated this role for tool calls. These are replaced by 'tools' within assistant messages.
    However, the role is still used for returning tool outputs from the client side to the model.

    Unset
    User

    Messages sent by an end user, containing prompts or additional context information.

    Extension Methods

    TrTaskExtensions.TrDeferred<ChatRole>(ChatRole, Action<TrStringTask>)
    TrTaskExtensions.Tr<ChatRole>(ChatRole)
    EnumExtensions.HasAnyFlag<ChatRole>(ChatRole, ChatRole?)
    EnumExtensions.ToFlagList<ChatRole>(ChatRole)
    EnumExtensions.ToFlagSet<ChatRole>(ChatRole)
    EnumExtensions.ToJoinedString<ChatRole>(ChatRole, char, char)
    EnumExtensions.ToLowerInvariantString<ChatRole>(ChatRole)
    EventExtensions.ToDelta<ChatRole>(ChatRole, string, int, string, bool)
    EventExtensions.ToDone<ChatRole>(ChatRole, string, int, string)
    EventExtensions.ToEvent<ChatRole>(ChatRole)
    EventExtensions.UpcastDelta<ChatRole, T2>(ChatRole, string, int, string, bool)
    ExperimentalAttributeExtensions.IsExperimental<ChatRole>(ChatRole)
    FallbackExtensions.IsOr<ChatRole, TChild>(ChatRole, TChild)
    ResponseCastingExtensions.GetResult<ChatRole>(ChatRole)
    LogMessageExtensions.GetDisplayedMessage<ChatRole>(ChatRole)
    LogMessageExtensions.GetLogMessage<ChatRole>(ChatRole)
    SystemExtensions.GetHashCodeOrDefault<ChatRole>(ChatRole)
    RESTEnum.GetRESTEnum(Enum)
    InspectorNameUtils.GetInspectorName(Enum, string)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation