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
*Loopagent * 3, agent * until(..)
/Fallback chainagent_a / agent_b

>> means “then” everywhere in the SDK: a pipeline step, a state transform (S), a context rewrite (C), a middleware layer (M). A state transform is a pipeline step too, reshaping state between agents: researcher >> S::pick(&["findings", "input"]) >> writer.

Structs§

Branch
Choose between two workflows by a predicate over state.
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.