---
title: Transcripts
framework: Foundation Models
role: collectionGroup
role_heading: API Collection
path: foundationmodels/transcripts
---

# Transcripts

Inspect a session’s history and work with the entries, segments, and attachments it contains.

## Overview

Overview A Transcript is a linear history of everything exchanged with a LanguageModelSession. It includes the instructions that define the model’s behavior, the prompts you send, the model’s responses and reasoning, and any tool calls made along the way. It’s what the session uses as context, and it’s what you inspect, trim, or pass to a new session to manage the context window. The history contains a three-level hierarchy: To present or analyze a transcript, iterate its entries and switch over the segment cases to handle each kind of content.

## Topics

### Essentials

- [Inspecting session transcripts and reporting model feedback](foundationmodels/inspecting-session-transcripts-and-reporting-model-feedback.md)
- [Transcript](foundationmodels/transcript.md)

### Transcript entries

- [Transcript.Entry](foundationmodels/transcript/entry.md)
- [Transcript.Instructions](foundationmodels/transcript/instructions.md)
- [Transcript.Prompt](foundationmodels/transcript/prompt.md)
- [Transcript.Response](foundationmodels/transcript/response.md)
- [Transcript.Reasoning](foundationmodels/transcript/reasoning.md)

### Segments

- [Transcript.Segment](foundationmodels/transcript/segment.md)
- [Transcript.TextSegment](foundationmodels/transcript/textsegment.md)
- [Transcript.StructuredSegment](foundationmodels/transcript/structuredsegment.md)
- [Transcript.AttachmentSegment](foundationmodels/transcript/attachmentsegment.md)

### Attachments

- [Transcript.Attachment](foundationmodels/transcript/attachment.md)
- [Transcript.ImageAttachment](foundationmodels/transcript/imageattachment.md)

### Tool calls

- [Transcript.ToolDefinition](foundationmodels/transcript/tooldefinition.md)
- [Transcript.ToolCalls](foundationmodels/transcript/toolcalls.md)
- [Transcript.ToolCall](foundationmodels/transcript/toolcall.md)
- [Transcript.ToolOutput](foundationmodels/transcript/tooloutput.md)

### Output formatting

- [Transcript.ResponseFormat](foundationmodels/transcript/responseformat.md)
