FunctionWithRequirements

FunctionWithRequirements(
    func: Callable[~P, ~T],
    python_packages: list[str] = <factory>,
    global_imports: list[str | autogen.coding.func_with_reqs.ImportFromModule | autogen.coding.func_with_reqs.Alias] = <factory>
)

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:
NameDescription
funcType: Callable[~P, ~T]
python_packagesType: list[str]

Default: <factory>
global_importsType: 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

from_callable(
    func: Callable[~P, ~T],
    python_packages: list[str] = [],
    global_imports: list[str | autogen.coding.func_with_reqs.ImportFromModule | autogen.coding.func_with_reqs.Alias] = []
) -> autogen.coding.func_with_reqs.FunctionWithRequirements[~T, ~P]
Parameters:
NameDescription
funcType: Callable[~P, ~T]
python_packagesType: list[str]

Default: []
global_importsType: list[str | autogen.coding.func_with_reqs.ImportFromModule | autogen.coding.func_with_reqs.Alias]

Default: []

from_str

from_str(
    func: str,
    python_packages: list[str] = [],
    global_imports: list[str | autogen.coding.func_with_reqs.ImportFromModule | autogen.coding.func_with_reqs.Alias] = []
) -> autogen.coding.func_with_reqs.FunctionWithRequirementsStr
Parameters:
NameDescription
funcType: str
python_packagesType: list[str]

Default: []
global_importsType: list[str | autogen.coding.func_with_reqs.ImportFromModule | autogen.coding.func_with_reqs.Alias]

Default: []