<!--
{
  "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/init(toolCalls:toolOutputs:instructionText:prompts:responses:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Evaluations"
    ],
    "preciseIdentifier" : "s:11Evaluations20StructuredTranscriptV9toolCalls0D7Outputs15instructionText7prompts9responsesACSay16FoundationModels0C0V8ToolCallVG_SayAK0M6OutputVGSSSaySSGSayAK8ResponseVGtcfc"
  },
  "title" : "init(toolCalls:toolOutputs:instructionText:prompts:responses:)"
}
-->

# init(toolCalls:toolOutputs:instructionText:prompts:responses:)

Creates a structured transcript.

```
init(toolCalls: [Transcript.ToolCall] = [], toolOutputs: [Transcript.ToolOutput] = [], instructionText: String = "", prompts: [String] = [], responses: [Transcript.Response] = [])
```

## Parameters

`toolCalls`

The tool calls from the session.

`toolOutputs`

The tool outputs from the session.

`instructionText`

The system instructions text.

`prompts`

The user prompts.

`responses`

The model responses.

---

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)