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
lookup_only = False
class-attribute
instance-attribute
¶
True when this observation exists only to locate an existing vertex.
Such documents take part in edge rendering but are never upserted. Tagging the observation rather than the vertex type keeps it correct when one resource both writes and merely references the same vertex type.
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.