init(id:metadata:segments:)
Creates a response that contains the metadata and segments you provide.
Declaration
init(id: String = UUID().uuidString, metadata: [String : any ConvertibleToGeneratedContent] = [:], segments: [Transcript.Segment])Parameters
- id:
A unique identifier for the response.
- metadata:
Additional information to associate with the response, keyed by name.
- segments:
The segments of the response, in order.