Signals

Bundle of signal patterns with a scoring threshold.

Usage

Source

Signals(
    patterns,
    threshold,
    window=15,
)

When a bare list[Signal] is passed to a primitive, resolve_signals wraps it with threshold=1 — meaning any single signal match triggers. Pass a higher threshold to require multiple signals to fire together.

Parameter Attributes

patterns: Sequence[Signal | NlpSignal]
threshold: int
window: int = 15