Hassan S
07/22/2025, 7:40 AMStefan Krawczyk
07/22/2025, 2:53 PMdef my_func_a(param1: str) -> ...:
def my_func_b(param2: int) -> ...:
then you could do:
config_params: dict[str, Any] = function_to_load_config_parameters(...)
dr = driver.Builder().with_modules(...).build()
result = dr.execute(["output1", ...], inputs=config_params)
Now this means a little more work if parameters change (but should be easy search & replace), but it's clear what depends on what at all times.
You could instead pass in the config_params object -- but that can hinder knowing what is used.
And then there is a spectrum in between where you pass in the config object to one function, and then break it apart for downstream use...Hassan S
07/23/2025, 2:12 PM