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"]. String specs can use dot notation (e.g. "a.b.c") for nested dictionary or attribute access. 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
|
input_state_keys
property
Top-level state keys this step reads from the pipeline state.
Derived from keys in input_map. Returns None when the step
has no input declaration (— it may read any key available in
state at execution time).
Returns:
| Type | Description |
|---|---|
set[str] | None
|
set[str] | None: Known input state keys, or None if unrestricted. |