Call a named API function with a dictionary of named arguments. Args: name: The name of the API function to call. named_args: A dictionary of arguments to the function. Returns: An object representing the called function. If the signature specifies a recognized retu
(cls, name: str, named_args: dict[str, Any])
| 85 | |
| 86 | @classmethod |
| 87 | def apply_(cls, name: str, named_args: dict[str, Any]) -> Any: |
| 88 | """Call a named API function with a dictionary of named arguments. |
| 89 | |
| 90 | Args: |
| 91 | name: The name of the API function to call. |
| 92 | named_args: A dictionary of arguments to the function. |
| 93 | |
| 94 | Returns: |
| 95 | An object representing the called function. If the signature specifies |
| 96 | a recognized return type, the returned value will be cast to that type. |
| 97 | """ |
| 98 | return cls.lookup(name).apply(named_args) |
| 99 | |
| 100 | def encode_invocation(self, encoder: Any) -> Any: |
| 101 | del encoder # Unused. |