export_module - AG2
export_module
autogen.doc_utils.export_module
export_module(module)
Source code in autogen/doc_utils.py
| Line Numbers | Code |
|---|---|
| 17 | def export_module(module: str) -> Callable[[T], T]: |
| 18 | def decorator(cls: T) -> T: |
| 19 | original_module = getattr(cls, "module", None) |
| 20 | if original_module: |
| 21 | fqn = f"{original_module}.{cls.name}" |
| 22 | _PDOC_MODULE_EXPORT_MAPPINGS[fqn] = module |
| 23 | return cls |
| 24 | return decorator |
| 25 | ``` |