<!--
{
  "availability" : [
    "Xcode: 27.0.0 -",
    "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" : "Evaluations",
  "identifier" : "/documentation/Evaluations/StructuredTranscript",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Evaluations"
    ],
    "preciseIdentifier" : "s:11Evaluations20StructuredTranscriptV"
  },
  "title" : "StructuredTranscript"
}
-->

# StructuredTranscript

```
struct StructuredTranscript
```

## Topics

### Creating a transcript

[`init(toolCalls: [Transcript.ToolCall], toolOutputs: [Transcript.ToolOutput], instructionText: String, prompts: [String], responses: [Transcript.Response])`](/documentation/Evaluations/StructuredTranscript/init(toolCalls:toolOutputs:instructionText:prompts:responses:))

Creates a structured transcript.

### Inspecting prompts and responses

[`var instructionText: String`](/documentation/Evaluations/StructuredTranscript/instructionText)

The system instruction text from the transcript.

[`var prompts: [String]`](/documentation/Evaluations/StructuredTranscript/prompts)

The user prompt strings from the transcript.

[`var responses: [Transcript.Response]`](/documentation/Evaluations/StructuredTranscript/responses)

The model responses from the transcript.

### Inspecting tool interactions

[`var toolCalls: [Transcript.ToolCall]`](/documentation/Evaluations/StructuredTranscript/toolCalls)

The tool calls extracted from the transcript.

[`var toolOutputs: [Transcript.ToolOutput]`](/documentation/Evaluations/StructuredTranscript/toolOutputs)

The tool outputs extracted from the transcript.

[`enum StructuredValue`](/documentation/Evaluations/StructuredValue)

A type-safe representation of JSON values.

## Relationships

### Conforms To

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

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

---

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)