Skip to main content

PipelineOutput

Represents the output of an AI pipeline execution.

Declaration

struct PipelineOutput

Overview

This struct encapsulates the raw data returned from the pipeline execution, along with additional metadata such as the number of credits used and the elapsed time for the execution.

Topics

Initializers

init(from: Data)

Initializes a new instance of PipelineOutput by parsing the raw data received from the pipeline execution.

Instance Properties

let creditsUsed: Float

The number of credits used for the pipeline execution.

let elapsedTime: TimeInterval

The elapsed time for the pipeline execution.

let rawData: Data

The raw data returned from the pipeline execution. The format of this data depends on the pipeline configuration and needs to be decoded by the user.