import_utils
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
require_optional_import(
modules: str | Iterable[str],
dep_target: str,
*,
except_for: str | Iterable[str] | None = None
) -> Callable[[~T], ~T]
| Name | Description |
|---|---|
modules | Module name or list of module names required Type: str | Iterable[str] |
dep_target | Target name for pip installation (e.g. ‘test’ in pip install ag2[test]) Type: str |
except_for | Name or list of names of objects to exclude from patching Type: str | Iterable[str] | None Default: None |