CustomModel

public struct CustomModel : Codable, Equatable

Information about an existing custom model.

  • The customization ID (GUID) of the custom model. The Create a custom model method returns only this field. It does not not return the other fields of this object.

    Declaration

    Swift

    public var customizationID: String
  • The name of the custom model.

    Declaration

    Swift

    public var name: String?
  • The language identifier of the custom model (for example, en-US).

    Declaration

    Swift

    public var language: String?
  • The GUID of the credentials for the instance of the service that owns the custom model.

    Declaration

    Swift

    public var owner: String?
  • The date and time in Coordinated Universal Time (UTC) at which the custom model was created. The value is provided in full ISO 8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    Declaration

    Swift

    public var created: String?
  • The date and time in Coordinated Universal Time (UTC) at which the custom model was last modified. The created and updated fields are equal when a model is first added but has yet to be updated. The value is provided in full ISO 8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

    Declaration

    Swift

    public var lastModified: String?
  • The description of the custom model.

    Declaration

    Swift

    public var description: String?
  • An array of Word objects that lists the words and their translations from the custom model. The words are listed in alphabetical order, with uppercase letters listed before lowercase letters. The array is empty if no words are defined for the custom model. This field is returned only by the Get a custom model method.

    Declaration

    Swift

    public var words: [Word]?
  • An array of Prompt objects that provides information about the prompts that are defined for the specified custom model. The array is empty if no prompts are defined for the custom model. This field is returned only by the Get a custom model method.

    Declaration

    Swift

    public var prompts: [Prompt]?