Loader
pipelines.enrichment.shared.loader
Summary
Assemble a hexa-wired enrichment port tree into a runnable dagpipe graph.
Flow (mirrors domain/enrichment/{entity,tags}/pipeline.py#load, but hexa
replaces the class-path import/instantiation and the dagpipe spec is consumed
for its schema/graph/per-node config):
hexa.build(root_cls)instantiates and wires every stage port slot.- The family
resources/patterns/*.yamlfiles merge into aPatternRegistry. - Each stage port (slot name == dagpipe node id) gets
set_registry+set_configfrom the familyresources/pipeline.yaml. - The dagpipe
schema:builds aStatesubclass,graph:builds theGraph, and theEngineis created. - The Engine + State class are attached to the wired root for
enrich().
Classes
Functions
load
Build the wired root + dagpipe runtime; attach engine/state_cls to root.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root_cls |
type
|
Composition root class to hexa-build. |
required |
resources_dir |
Path
|
Family resources directory containing
|
required |
Returns:
| Name | Type | Description |
|---|---|---|
object |
The wired root instance with |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
When |