SMIStreamingTokenValidation

Objective-C

@protocol SMIStreamingTokenValidation <SMIStreamingToken>

Swift

protocol StreamingTokenValidation : StreamingToken

Represents a validation event which is related to a SMIComposedStreamingToken containing the same targetMessageIdentifier This token is used as an indication as to whether the content of the stream has been validated as acceptable by the backend LLM.

  • The identifier which will correspond to the final transcripted entry.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSString *_Nonnull targetMessageIdentifier;

    Swift

    var targetMessageIdentifier: String { get }
  • Property determining if the composed token is valid.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL valid;

    Swift

    var valid: Bool { get }
  • The invalidation reason. NOTE: This property is meant for debugging and tracability and is not intended to be displayed to end users.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSString *reason;

    Swift

    var reason: String? { get }