UpdateChatMessageRequest

public struct UpdateChatMessageRequest : Codable

Request payload for updating a chat message.

Properties

  • Chat message content.

    Declaration

    Swift

    public let content: String?
  • Message metadata.

    Declaration

    Swift

    public let metadata: [String : String?]?

Initializers

  • Initialize a UpdateChatMessageRequest structure.

    Declaration

    Swift

    public init(
        content: String? = nil, metadata: [String: String?]? = nil
    )

    Parameters

    content

    Chat message content.

    metadata

    Message metadata.

Codable

  • Initialize a UpdateChatMessageRequest structure from decoder

    Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Encode a UpdateChatMessageRequest structure

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws