Operators and bindings¶
Declarative analytical work and its data and execution requirements.
Operator
dataclass
¶
Declare an operator with a compute binding and an optional merge.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str | None
|
Optional non-empty identifier, unique within its profile. When omitted, the ID is generated from the primary function and outputs. An operator referenced as a profile's seed must have an explicitly supplied ID. |
None
|
inputs
|
Sequence[Feature | Reference | str] | None
|
Feature dependencies. Inputs are inferred from binding arguments when omitted. |
None
|
outputs
|
Sequence[Feature] | None
|
Explicit feature declarations produced by the operator. When omitted, output references in the compute and merge bindings are used. |
None
|
row_context
|
RowContext | RowContextBinding[Any] | None
|
Operator-specific observation requirements, merged with argument annotations. |
None
|
compute
|
Bind
|
Function accepting zero or one dataframe. A dataframe result is the complete target without a merge, or a fragment with a merge. Non-dataframe results are not added to the target. |
required |
merge
|
Bind | None
|
Function combining the compute fragment with the target. |
None
|
row_context
class-attribute
instance-attribute
¶
output_ids
property
¶
Return explicit or inferred output feature IDs in order.
reference
property
¶
Return the normalized entrypoint without importing string references.
bound_arguments
¶
Return a copy of arguments, validating names for in-process callables.
Entrypoint strings are not imported during authoring; signature validation for those functions is deferred until compilation.
to_model
¶
Convert this declaration to its canonical document model.
function_catalog
¶
Build the reusable function contract declared by this operator.
Bind
dataclass
¶
Declare an implementation and its named arguments.
reference
property
¶
Return the normalized entrypoint without importing string references.
bound_arguments
¶
Copy arguments after validating signatures of in-process callables.
Entrypoint strings and references are not imported during authoring. Implementation signature validation is deferred to binding inspection.
to_function_template
¶
Build a reusable contract without operator-specific classifications.