Skip to main content

Overview

The @chain decorator allows you to create custom Runnable functions with full control over the execution flow. This is useful for complex multi-step processing that doesn’t fit cleanly into simple pipe chains.

Basic Usage

Dynamic Chain Construction

Multi-Stage Processing

Async Custom Chains

Error Handling in Custom Chains