Building Pipelines
Three ways to build pipelines, how data flows through steps, and how to configure parameters and options.
🔨 Three Ways to Build
Method 1: Fluent Chaining with .to()
.to()pipeline = aiMessage()
.user( "Translate '${text}' to ${language}" )
.to( aiModel( "openai" ) )
.to( aiTransform( r => r.content ) )
result = pipeline.run( {
text : "Hello, world!",
language: "Spanish"
} )
// Result: "¡Hola, mundo!"Method 2: Helper Methods
Method 3: Explicit Sequence
📥 Input and Output Flow
Data Passing
The _input System Variable
_input System VariableInput Types by Component
Component
Accepts
Example
Output Types
⚙️ Parameters and Options
Default Parameters
Runtime Parameter Overrides
Options vs Parameters
Related Pages
Last updated