Skip to main content

Module pattern_builtins

Module pattern_builtins 

Source
Expand description

Multi-agent pattern builtins for the DSL

Provides convenience builtins for common multi-agent patterns: chain, debate, map_reduce, and director.

Functions§

builtin_chain
Execute the chain builtin: sequential execution where each step’s output feeds into the next step’s input.
builtin_debate
Execute the debate builtin: alternating two-agent critique with optional model routing and adaptive convergence.
builtin_director
Execute the director builtin: decompose + delegate + synthesize.
builtin_map_reduce
Execute the map_reduce builtin: parallel fan-out + aggregate.