flowrep.prospective.constant_recipe module
- class flowrep.prospective.constant_recipe.ConstantRecipe(*, type: ~typing.Literal[RecipeElementType.CONSTANT] = RecipeElementType.CONSTANT, inputs: ~typing.Annotated[list[~typing.Annotated[str, ~pydantic.functional_validators.BeforeValidator(func=~flowrep.base_models._validate_label, json_schema_input_type=PydanticUndefined)]], ~pydantic.functional_validators.AfterValidator(func=~flowrep.base_models.validate_unique)] = <factory>, outputs: ~typing.Annotated[list[~typing.Annotated[str, ~pydantic.functional_validators.BeforeValidator(func=~flowrep.base_models._validate_label, json_schema_input_type=PydanticUndefined)]], ~pydantic.functional_validators.AfterValidator(func=~flowrep.base_models.validate_unique)] = <factory>, description: str | None = None, constant: JSONABLE)[source]
Bases:
NodeRecipeA source node emitting a fixed, JSON-serializable value.
Has no inputs and a single output port named
constant. Unlike a defaulted input (whose value lives only on the referenced function), the value is stored directly in the recipe, so it survives serialization with no Python import.- constant: JSONABLE
- inputs: base_models.Labels
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- outputs: base_models.Labels
- std_label: ClassVar[str] = 'constant'
- type: Literal[base_models.RecipeElementType.CONSTANT]