func_with_reqs
autogen.coding.func_with_reqs.with_requirements
with_requirements
Decorate a function with package and import requirements
Parameters:Name | Description |
---|---|
python_packages | Packages required to function. Can include version info.. Defaults to []. Type: list[str] Default: [] |
global_imports | Required imports. Defaults to []. Type: list[str | autogen.coding.func_with_reqs.ImportFromModule | autogen.coding.func_with_reqs.Alias] Default: [] |
Type | Description |
---|---|
Callable[[Callable[~P, ~T]], autogen.coding.func_with_reqs.FunctionWithRequirements[~T, ~P]] | Callable[[Callable[P, T]], FunctionWithRequirements[T, P]]: The decorated function |