diff --git a/runtime/__init__.py b/runtime/__init__.py index 11648463e53..9af44e9f260 100644 --- a/runtime/__init__.py +++ b/runtime/__init__.py @@ -126,6 +126,17 @@ def load_method(self, name: str) -> Optional[Method]: self._methods[name] = method return method + def metadata(self, method_name: str) -> MethodMeta: + """Gets the metadata for the specified method. + + Args: + method_name: The name of the method. + + Returns: + The outputs of the method. + """ + return self._program.method_meta(method_name) + class BackendRegistry: """The registry of backends that are available to the runtime."""