Step Typing¶
typing
¶
StepOutput = Iterator[Dict[str, Union[StepData, StepStatistics]]]
module-attribute
¶
StepOutput
is an alias of the typing.
A step output is a dict of the form:
{
"outputs": [
{"col1": "val1", "col2": "val2"},
{"col1": "val1", "col2": "val2"},
{"col1": "val1", "col2": "val2"},
],
"statistics": {
"llm": {},
"time": 12341234,
...
}
}
GeneratorStepOutput = Iterator[Tuple[List[Dict[str, Any]], bool]]
module-attribute
¶
GeneratorStepOutput
is an alias of the typing Iterator[Tuple[List[Dict[str, Any]], bool]]
StepColumns = Union[List[str], Dict[str, bool]]
module-attribute
¶
StepColumns
is an alias of the typing Union[List[str], Dict[str, bool]]
used by the
inputs
and outputs
properties of an Step
. In the case of a List[str]
, it is a list
with the required columns. In the case of a Dict[str, bool]
, it is a dictionary where
the keys are the columns and the values are booleans indicating whether the column is
required or not.