Skip to main content

Define workflow inputs

Define the inputs to a workflow by adding parameters to the function definition.
Pass arguments to the function call to provide inputs to the workflow.

Validate inputs

By default, Prefect will validate the types of inputs to your workflow.
To turn off type validation, set the validate_parameters parameter to False:
If you use pydantic, parameters typed with a BaseModel subclass will be coerced to the appropriate types and validated.