<!--
{
  "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/Transcript/HistoryView",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels10TranscriptV11HistoryViewV"
  },
  "title" : "Transcript.HistoryView"
}
-->

# Transcript.HistoryView

A mutable view into the conversational entries of a transcript.

```
struct HistoryView
```

## Topics

### Instance Methods

[`func append(Transcript.Entry)`](/documentation/FoundationModels/Transcript/HistoryView/append(_:))

Adds an entry to the end of the history view.

[`func append(contentsOf: some Sequence<Transcript.Entry>)`](/documentation/FoundationModels/Transcript/HistoryView/append(contentsOf:))

Adds the entries of a sequence to the end of the history view.

### Subscripts

[`subscript(_:)`](/documentation/FoundationModels/Transcript/HistoryView/subscript(_:))

Accesses the subsequence of entries within the specified bounds.

### Type Aliases

[`typealias Element`](/documentation/FoundationModels/Transcript/HistoryView/Element)

The type of entry the view contains.

[`typealias SubSequence`](/documentation/FoundationModels/Transcript/HistoryView/SubSequence)

The type that represents a contiguous subrange of the view’s entries.

### Default Implementations

[ExpressibleByArrayLiteral Implementations](/documentation/FoundationModels/Transcript/HistoryView/ExpressibleByArrayLiteral-Implementations)

[MutableCollection Implementations](/documentation/FoundationModels/Transcript/HistoryView/MutableCollection-Implementations)

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

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

---

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)