Pipeline
A custom pipeline that can be created on the aiXplain Platform.
Declaration
final class Pipeline
Overview
The Pipeline
class represents a custom pipeline on the aiXplain Platform. It provides functionality to run the pipeline and handle its execution.
Usage
- Initialize a
Pipeline
object with the necessary parameters. - Call the
run(_:id:parameters:)
method to execute the pipeline.
Example
let pipeline = PipelineFactory.get("PipelineID")
let input = "Hello World"
do {
let output = try await pipeline.run(input)
// Handle pipeline output
} catch {
// Handle errors
}
Topics
Initializers
Initializes a pipeline object from decoder.
Instance Properties
The unique identifier of the pipeline.
let inputNodes: [PipelineNode]
An array of input nodes in the pipeline.
let outputNodes: [PipelineNode]
An array of output nodes in the pipeline.
Instance Methods
Runs the pipeline with the provided input.