LanguageModelFeedback
struct · iOS 26.0+ · SDK 27.1
struct LanguageModelFeedbackFeedback appropriate for logging or attaching to Feedback Assistant. `LanguageModelFeedback` is a namespace with structures for describing feedback in a consistent way. ``LanguageModelFeedback/Sentiment`` describes the sentiment of the feedback, while ``LanguageModelFeedback/Issue`` offers a standard template for issues. Given a model session, use ``LanguageModelSession/logFeedbackAttachment(sentiment:issues:desiredOutput:)`` to produce structured feedback. ```swift let session = LanguageModelSession() let response = try await session.respond(to: "What is the capital of France?") // Create feedback for a problematic response. let feedbackData = session.logFeedbackAttachment( sentiment: LanguageModelFeedback.Sentiment.negative, issues: [ LanguageModelFeedback.Issue( category: .incorrect, explanation: "The model provided outdated information" ) ], desiredOutput: Transcript.Entry.response(...) ) ```
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
No declarations were skipped in this snapshot.