From 2a9f37f79adc4ad6f0f46797bbd4d6b54aad545b Mon Sep 17 00:00:00 2001 From: Jacob Szwejbka Date: Mon, 21 Jul 2025 11:43:23 -0700 Subject: [PATCH] Add MethodMeta to Python Program (#12656) Summary: title Reviewed By: lucylq, cmt0 Differential Revision: D78592613 --- runtime/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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."""