func_with_reqs
autogen.coding.func_with_reqs.FunctionWithRequirements
FunctionWithRequirements
FunctionWithRequirements(func: Callable[~P, ~T], python_packages: list[str] = <factory>, global_imports: list[typing.Union[str, autogen.coding.func_with_reqs.ImportFromModule, autogen.coding.func_with_reqs.Alias]] = <factory>)
Parameters:Name | Description |
---|---|
func | Type: Callable[~P, ~T] |
python_packages | Type: list[str] Default: <factory> |
global_imports | Type: list[str | autogen.coding.func_with_reqs.ImportFromModule | autogen.coding.func_with_reqs.Alias] Default: <factory> |
Class Attributes
func
global_imports
python_packages
Static Methods
from_callable
Name | Description |
---|---|
func | Type: Callable[~P, ~T] |
python_packages | Type: list[str] Default: [] |
global_imports | Type: list[str | autogen.coding.func_with_reqs.ImportFromModule | autogen.coding.func_with_reqs.Alias] Default: [] |
from_str
Name | Description |
---|---|
func | Type: str |
python_packages | Type: list[str] Default: [] |
global_imports | Type: list[str | autogen.coding.func_with_reqs.ImportFromModule | autogen.coding.func_with_reqs.Alias] Default: [] |