add_controller
Add a controller gate that enables flow only when a signal is present, reading but not consuming the signal.
Instructions
Add a Controller (Gate) pattern that allows flow only when a signal is present.
The signal is read but NOT consumed (information link).
Args: name: Name for this controller (e.g., "TrafficLight", "Permission") initial_signal: If True, the signal starts enabled (gate open)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| initial_signal | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |