---
title: Transcript.Prompt
framework: foundationmodels
role: symbol
role_heading: Structure
path: foundationmodels/transcript/prompt
---

# Transcript.Prompt

A prompt from the user to the model.

## Declaration

```swift
struct Prompt
```

## Overview

Overview Prompts typically contain content sourced directly from the user, though you may choose to augment prompts by interpolating content from end users into a template that you control.

## Topics

### Creating a prompt

- [init(id:segments:options:responseFormat:)](foundationmodels/transcript/prompt/init(id:segments:options:responseformat:).md)
- [init(id:metadata:segments:options:responseFormat:contextOptions:)](foundationmodels/transcript/prompt/init(id:metadata:segments:options:responseformat:contextoptions:).md)

### Inspecting a prompt

- [id](foundationmodels/transcript/prompt/id.md)
- [responseFormat](foundationmodels/transcript/prompt/responseformat.md)
- [segments](foundationmodels/transcript/prompt/segments.md)
- [options](foundationmodels/transcript/prompt/options.md)
- [contextOptions](foundationmodels/transcript/prompt/contextoptions.md)
- [metadata](foundationmodels/transcript/prompt/metadata.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constructing content

- [Transcript.TextSegment](foundationmodels/transcript/textsegment.md)
- [Transcript.StructuredSegment](foundationmodels/transcript/structuredsegment.md)
- [Transcript.ResponseFormat](foundationmodels/transcript/responseformat.md)
- [Transcript.ToolDefinition](foundationmodels/transcript/tooldefinition.md)
- [Transcript.AttachmentSegment](foundationmodels/transcript/attachmentsegment.md)
- [Transcript.ImageAttachment](foundationmodels/transcript/imageattachment.md)
- [Transcript.Instructions](foundationmodels/transcript/instructions.md)
- [Transcript.Reasoning](foundationmodels/transcript/reasoning.md)
- [Transcript.Response](foundationmodels/transcript/response.md)
- [Transcript.ToolCall](foundationmodels/transcript/toolcall.md)
- [Transcript.ToolCalls](foundationmodels/transcript/toolcalls.md)
- [Transcript.ToolOutput](foundationmodels/transcript/tooloutput.md)
- [Transcript.CustomSegment](foundationmodels/transcript/customsegment.md)
