Search Results for

    Show / Hide Table of Contents

    Class MessageDelta

    Inheritance
    object
    MessageDelta
    Implements
    ITextSource
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class MessageDelta : ITextSource

    Properties

    | Edit this page View Source

    Content

    The contents of the chunk message.

    Declaration
    [JsonProperty("content")]
    public string Content { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Reasoning

    The reasoning content generated by the model.

    Declaration
    [JsonProperty("reasoning")]
    public string Reasoning { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Refusal

    The refusal message generated by the model.

    Declaration
    [JsonProperty("refusal")]
    public string Refusal { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Role

    The role of the author of this message.

    Declaration
    [JsonProperty("role")]
    public ChatRole Role { get; set; }
    Property Value
    Type Description
    ChatRole
    | Edit this page View Source

    ToolCalls

    The name and arguments of a function that should be called, as generated by the model.

    Declaration
    [JsonProperty("tool_calls")]
    public ToolCall[] ToolCalls { get; set; }
    Property Value
    Type Description
    ToolCall[]

    Methods

    | Edit this page View Source

    GetTextSource()

    Declaration
    public string GetTextSource()
    Returns
    Type Description
    string
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Operators

    | Edit this page View Source

    implicit operator string(MessageDelta)

    Declaration
    public static implicit operator string(MessageDelta delta)
    Parameters
    Type Name Description
    MessageDelta delta
    Returns
    Type Description
    string

    Implements

    ITextSource

    Extension Methods

    ResponseMapper.ToItems(MessageDelta)
    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation