SwiftclassSensitiveContentAnalysisML
class SensitiveContentAnalysisML.PromptRewriter
Members 10
- func
static parseRawResponse(String) throws -> [String] - deinit
deinit - field
let logger: os.Logger - field
let model: SensitiveContentAnalysisML.AFMModel - field
let signposter: os.OSSignposter - func
rewrite(promptStyle: SensitiveContentAnalysisML.PromptRewriter.PromptStyle, text: String, maxNumberOfResults: Int?, randomSeed: Int?) async throws -> [String] - func
rewrite(text: String, maxNumberOfResults: Int?, randomSeed: Int?) async throws -> [String] - func
rewriteInternal(promptStyle: SensitiveContentAnalysisML.PromptRewriter.PromptStyle, text: String, maxNumberOfResults: Int?, randomSeed: Int?, temperature: Double?) async throws -> [String] - init
SensitiveContentAnalysisML.PromptRewriter.__allocating_init(modelManagerServicesUseCaseID: String, onBehalfOf: Int?) throws -> SensitiveContentAnalysisML.PromptRewriter - init
SensitiveContentAnalysisML.PromptRewriter.__allocating_init(modelManagerServicesUseCaseID: String, locale: Foundation.Locale, onBehalfOf: Int?) throws -> SensitiveContentAnalysisML.PromptRewriter
Header
class PromptRewriter { enum PromptStyle { case genmoji case variety case imagePlayground case reducedPHR case personalizedGenmoji case personalizedVariety } struct ParseJSONError { enum CodingKeys {} } let logger: os.Logger let model: SensitiveContentAnalysisML.AFMModel let signposter: os.OSSignposter init(modelManagerServicesUseCaseID: Swift.String, onBehalfOf: Swift.Int?) throws init(modelManagerServicesUseCaseID: Swift.String, locale: Foundation.Locale, onBehalfOf: Swift.Int?) throws final func rewriteInternal(promptStyle: SensitiveContentAnalysisML.PromptRewriter.PromptStyle, text: Swift.String, maxNumberOfResults: Swift.Int?, randomSeed: Swift.Int?, temperature: Swift.Double?) async throws -> [Swift.String] final func rewrite(promptStyle: SensitiveContentAnalysisML.PromptRewriter.PromptStyle, text: Swift.String, maxNumberOfResults: Swift.Int?, randomSeed: Swift.Int?) async throws -> [Swift.String] final func rewrite(text: Swift.String, maxNumberOfResults: Swift.Int?, randomSeed: Swift.Int?) async throws -> [Swift.String] static func parseRawResponse(_: Swift.String) throws -> [Swift.String] deinit }