---
title: history
framework: foundationmodels
role: symbol
role_heading: Instance Property
path: foundationmodels/transcript/history
---

# history

The transcript entries excluding the leading instructions entry, if present.

## Declaration

```swift
var history: ArraySlice<Transcript.Entry> { get set }
```

## Discussion

Discussion Use history to access just the conversational entries — prompts, responses, tool calls, and tool outputs — without the initial instructions that were used to configure the session. When reading, if the first entry in the transcript is an Transcript.Entry.instructions(_:) entry, it is excluded from the returned slice. All other entries, including any subsequent instructions entries, are included. When writing, the new value replaces all entries except the leading instructions entry, which is preserved.
