Search Results for

    Show / Hide Table of Contents

    Class ConverseMessage

    Inheritance
    object
    ConverseMessage
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.AmazonAws
    Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
    Syntax
    public class ConverseMessage

    Properties

    | Edit this page View Source

    Content

    Required. The message content. You can include up to 20 images. Each image's size, height, and width must be no more than 3.75 MB, 8000 px, and 8000 px, respectively. You can include up to five documents. Each document's size must be no more than 4.5 MB. If you include a ContentBlock with a document field in the array, you must also include a ContentBlock with a text field. You can only include images and documents if the role is user.

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

    Role

    Required. The role that the message plays in the message.

    Declaration
    [JsonProperty("role")]
    public string Role { get; set; }
    Property Value
    Type Description
    string
    Remarks

    Valid Values: user | assistant

    Methods

    | Edit this page View Source

    Reasoning(string, string)

    Declaration
    public static ConverseMessage Reasoning(string reasoningText, string signature = null)
    Parameters
    Type Name Description
    string reasoningText
    string signature
    Returns
    Type Description
    ConverseMessage
    | Edit this page View Source

    RedactedReasoning(string)

    Declaration
    public static ConverseMessage RedactedReasoning(string redactedBase64Content)
    Parameters
    Type Name Description
    string redactedBase64Content
    Returns
    Type Description
    ConverseMessage
    | Edit this page View Source

    UserMessage(string)

    Declaration
    public static ConverseMessage UserMessage(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    ConverseMessage

    Extension Methods

    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