ToneAnalysis

public struct ToneAnalysis : Codable, Equatable

The tone analysis results for the input from the general-purpose endpoint.

  • The results of the analysis for the full input content.

    Declaration

    Swift

    public var documentTone: DocumentAnalysis
  • An array of SentenceAnalysis objects that provides the results of the analysis for the individual sentences of the input content. The service returns results only for the first 100 sentences of the input. The field is omitted if the sentences parameter of the request is set to false.

    Declaration

    Swift

    public var sentencesTone: [SentenceAnalysis]?