std.circuits
Generated by
sema docfromstdlib/sema/circuits.sema. Import withfrom std.circuits import …. For a narrative introduction see std.circuits.
circuits
Section titled “circuits”Bounded circuit-pattern combinators. Topology remains ordinary SEMA.
def pipeline
Section titled “def pipeline”def pipeline(value: any, stages: list[any]) -> any !{*}Parameters
| name | type |
|---|---|
value |
any |
stages |
list[any] |
Returns any
Effects !{*}
def fan_out
Section titled “def fan_out”def fan_out(inputs: list[any], worker: any) -> list[any] !{*}Parameters
| name | type |
|---|---|
inputs |
list[any] |
worker |
any |
Returns list[any]
Effects !{*}
def route
Section titled “def route”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
Section titled “def generator_review_repair”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
Section titled “def panel”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
Section titled “def monitor_intervention”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
Section titled “def approval_gate”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
Section titled “def aggregate_artifacts”def aggregate_artifacts(items: list[any]) -> dict[str, any] !{}Parameters
| name | type |
|---|---|
items |
list[any] |
Returns dict[str, any]
Effects !{}