side_input

side_input#

Side-input effect, which allows extra values to be injected into layers.

Side inputs are sometimes referred to as “Reader” effects in functional programming. They allow inner functions to read a value from an environment without explicitly passing it in.

Classes

HandledSideInputRef

Reference for a handled side input effect.

HoistedTag

A tag that has been hoisted out of a handler.

SideInputEffect

Protocol for a side input effect.

SideInputEffectImpl

Implementation of the side input effect.

SideInputRequest

Effect request for a side input.

WithConstantSideInputs

SideInput handler that provides side inputs using its own attribute.

WithSideInputsFromInputTuple

SideInput handler that unpacks side inputs from a tuple argument.

Functions

hoist_constant_side_inputs(tree[, ...])

Extracts all constant side inputs from a tree so they can be re-handled.