<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/TranscriptErrorHandlingPolicy",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation Models"
    ],
    "preciseIdentifier" : "s:16FoundationModels29TranscriptErrorHandlingPolicyV"
  },
  "title" : "TranscriptErrorHandlingPolicy"
}
-->

# TranscriptErrorHandlingPolicy

Options for controlling how a language model session manages the transcript when errors occur.

```
struct TranscriptErrorHandlingPolicy
```

## Topics

### Error handling policies

[`static let preserveTranscript: TranscriptErrorHandlingPolicy`](/documentation/FoundationModels/TranscriptErrorHandlingPolicy/preserveTranscript)

A policy that keeps the current transcript as is.

[`static let revertTranscript: TranscriptErrorHandlingPolicy`](/documentation/FoundationModels/TranscriptErrorHandlingPolicy/revertTranscript)

A policy that reverts the transcript back to the state it was in just before the most recent request.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)