Module operators

Module operators 

Source
Expand description

Operator algebra for agent composition.

All types implementing Composable participate in the algebra:

OperatorMeaningExample
>>Sequential pipelineagent_a >> agent_b
|Parallel fan-outagent_a | agent_b
*Loop (fixed)agent * 3
//Fallback chainagent_a // agent_b

Structs§

Fallback
Fallback chain: try each agent in sequence until one succeeds.
FanOut
Parallel fan-out: execute branches concurrently, merge results.
Loop
Loop: repeat an agent or pipeline up to max times, or until a predicate.
LoopPredicate
Predicate for conditional loop termination.
Pipeline
Sequential pipeline: execute steps in order, passing state between them.

Enums§

Composable
A composable workflow node — can be sequenced, fan-out, looped, etc.

Functions§

until
Create a conditional loop predicate.