Search Results for

    Show / Hide Table of Contents

    Class ImageBlock

    Image content for a message.

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

    Properties

    | Edit this page View Source

    Format

    Required. The format of the image.

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

    Valid Values: png | jpeg | gif | webp

    | Edit this page View Source

    Source

    Required. The source for the image.

    Declaration
    [JsonProperty("source")]
    public MediaContentData Source { get; set; }
    Property Value
    Type Description
    MediaContentData
    Remarks

    This object is a Union. Only one member of this object can be specified or returned.

    Methods

    | Edit this page View Source

    Base64(string, string)

    Declaration
    public static ImageBlock Base64(string base64Data, string format = "png")
    Parameters
    Type Name Description
    string base64Data
    string format
    Returns
    Type Description
    ImageBlock
    | Edit this page View Source

    S3(string, string, string)

    Declaration
    public static ImageBlock S3(string s3Uri, string format = "png", string bucketOwner = null)
    Parameters
    Type Name Description
    string s3Uri
    string format
    string bucketOwner
    Returns
    Type Description
    ImageBlock

    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