Spaces:
Configuration error
Configuration error
Download openhands/runtime/plugins/agent_skills/utils/dependency.py from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/runtime/plugins/agent_skills/utils/dependency.py
- Command line
-
hf download hf://spaces/flyingdarkdev/README/openhands/runtime/plugins/agent_skills/utils/dependency.py
-
curl -L -o dependency.py https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/runtime/plugins/agent_skills/utils/dependency.py
353 Bytes
| from types import ModuleType | |
| def import_functions( | |
| module: ModuleType, function_names: list[str], target_globals: dict | |
| ) -> None: | |
| for name in function_names: | |
| if hasattr(module, name): | |
| target_globals[name] = getattr(module, name) | |
| else: | |
| raise ValueError(f'Function {name} not found in {module.__name__}') | |