Skip to content

std.circuits

Generated by sema doc from stdlib/sema/circuits.sema. Import with from std.circuits import …. For a narrative introduction see std.circuits.

Bounded circuit-pattern combinators. Topology remains ordinary SEMA.

def pipeline(value: any, stages: list[any]) -> any !{*}

Parameters

name type
value any
stages list[any]

Returns any

Effects !{*}

def fan_out(inputs: list[any], worker: any) -> list[any] !{*}

Parameters

name type
inputs list[any]
worker any

Returns list[any]

Effects !{*}

def route(value: any, selector: any, specialists: dict[str, any]) -> any !{*}

Parameters

name type
value any
selector any
specialists dict[str, any]

Returns any

Effects !{*}

def generator_review_repair(seed: any, generator: any, reviewer: any, repairer: any, max_iters: int) -> any !{*}

Parameters

name type
seed any
generator any
reviewer any
repairer any
max_iters int

Returns any

Effects !{*}

def panel(question: any, members: list[any], judge: any) -> any !{*}

Parameters

name type
question any
members list[any]
judge any

Returns any

Effects !{*}

def monitor_intervention(state: any, monitor: any, orchestrator: any, envelope: any) -> any !{agent.spawn, model.invoke}

Parameters

name type
state any
monitor any
orchestrator any
envelope any

Returns any

Effects !{agent.spawn, model.invoke}

def approval_gate(value: any, approve: any) -> any !{human.approve}

Parameters

name type
value any
approve any

Returns any

Effects !{human.approve}

def aggregate_artifacts(items: list[any]) -> dict[str, any] !{}

Parameters

name type
items list[any]

Returns dict[str, any]

Effects !{}