graflo.architecture.graph_types.transform¶
Transform payloads and observation merging.
TransformPayload
¶
Bases: ConfigBaseModel
Typed transform output shared between extraction and assembly phases.
Source code in graflo/architecture/graph_types/transform.py
VertexRep
¶
Bases: ConfigBaseModel
Context for graph transformation actions.
Attributes:
| Name | Type | Description |
|---|---|---|
vertex |
dict[str, Any]
|
doc representing a vertex |
Source code in graflo/architecture/graph_types/transform.py
context_dict_from_transform_buffer_item(item)
¶
Map one transform_buffer entry to a flat context dict (named keys only).
Source code in graflo/architecture/graph_types/transform.py
merge_observation_with_transform_buffer(observation, buffer_items)
¶
Merge a JSON observation slice with transform outputs at the same location.
observation is the current dict-shaped fragment of the nested document
passed into actors (often a child object under a :class:DescendActor).
buffer_items are the entries in ExtractionContext.transform_buffer
for the same :class:LocationIndex.
Starts from a shallow copy of observation; each buffer entry (in pipeline
order) updates the merged view, so later transforms override earlier keys
and transform output overrides the raw JSON on key conflicts.
Source code in graflo/architecture/graph_types/transform.py
merge_row_doc_with_transform_buffer(doc, buffer_items)
¶
Backward-compatible alias for :func:merge_observation_with_transform_buffer.