TextAgentProtocol

public protocol TextAgentProtocol : CapabilityAgentable

Text-agent is needed to send event-based text recognition.

  • The object that acts as the delegate of text-agent

    Declaration

    Swift

    var delegate: TextAgentDelegate? { get set }
  • Send event that needs a text-based recognition

    Declaration

    Swift

    @discardableResult
    func requestTextInput(
        text: String,
        token: String?,
        requestType: TextAgentRequestType,
        completion: ((StreamDataState) -> Void)?
    ) -> String

    Parameters

    text

    The text to be recognized

    completion

    The completion handler to call when the request is complete.

    Return Value

    The dialogRequestId for request.

Default

  • <#Description#>

    Declaration

    Swift

    @discardableResult
    func requestTextInput(
        text: String,
        token: String? = nil,
        requestType: TextAgentRequestType
    ) -> String

    Parameters

    text

    <#text description#>

    token

    <#token description#>

    requestType

    <#requestType description#>

    Return Value

    <#description#>

  • <#Description#>

    Declaration

    Swift

    @discardableResult
    func requestTextInput(
        text: String,
        requestType: TextAgentRequestType,
        completion: ((StreamDataState) -> Void)?
    ) -> String

    Parameters

    text

    <#text description#>

    requestType

    <#requestType description#>

    completion

    <#completion description#>

    Return Value

    <#description#>