Has inputs mixin
Mixins for pipeline steps.
HasInputsMixin(input_map=None)
Mixin class for steps that consume a unified input_map.
The input_map maps argument names to a state/config key (str), a fixed value (Val), or a grouped wrapper (Group). Resolution semantics: 1. For str specs: read from state first; if missing, fall back to config["configurable"]. 2. For Val specs: use the literal value.
Attributes:
| Name | Type | Description |
|---|---|---|
input_map |
dict[str, str | Val | Group]
|
Mapping of argument names to a state/config key (str), a fixed value (Val), or a grouped wrapper (Group). |
Initialize with a unified input_map.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_map
|
InputMapSpec | None
|
Mapping of argument names to a state/config key (str), a fixed value (Val), or a grouped wrapper (Group). Also accepts a list form for ergonomics: 1. str: identity mapping ("key" -> {"key": "key"}) 2. dict[str, str]: explicit mapping to state/config key 3. dict[str, Val]: fixed/literal value 4. dict[str, Group]: grouped wrapper around a lookup or literal spec Defaults to None, in which case an empty mapping is used. |
None
|