Impl
pipelines.enrichment.shared.impl
Summary
Concrete shared enrichment ports.
ImplAmountFlagsPort is the port of domain.enrichment.nodes.AmountBasedFlagNode —
used by both the entity and tags families.
Classes
ImplAmountFlagsPort
Bases: AmountFlagsPort
Amount-flags stage: map the amount to amount_* candidate flags.
Notes
Shared by the entity and tags families; the amount-flag name encodes the
comparison (e.g. amount_greater_than_500, amount_within_5_500).
Attributes
amount_based_flag_mapping
property
Flag names to evaluate, taken from the registry.
Returns:
| Name | Type | Description |
|---|---|---|
List |
The registered amount-flag names. |
config
property
Per-node config injected via set_config.
Returns:
| Type | Description |
|---|---|
|
dict | None: The per-node config, or None before injection. |
Functions
resolve
Evaluate the amount-based flags and append the matches.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state |
State
|
Incoming state carrying |
required |
Yields:
| Name | Type | Description |
|---|---|---|
State |
Iterable[State]
|
A fork with |
set_config
Inject the per-node config.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config |
dict
|
Per-node config from the dagpipe spec. |
required |
set_registry
Inject the merged pattern registry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
registry |
PatternRegistry
|
The merged pattern registry. |
required |