Returns a description of the interface provided by this function. Returns: The function's signature, a dictionary containing: name: string returns: type name string args: list of argument dictionaries, each containing: name: string type: type na
(self)
| 33 | Function._promoter = staticmethod(promoter) |
| 34 | |
| 35 | def getSignature(self) -> dict[str, Any]: |
| 36 | """Returns a description of the interface provided by this function. |
| 37 | |
| 38 | Returns: |
| 39 | The function's signature, a dictionary containing: |
| 40 | name: string |
| 41 | returns: type name string |
| 42 | args: list of argument dictionaries, each containing: |
| 43 | name: string |
| 44 | type: type name string |
| 45 | optional: boolean |
| 46 | default: an arbitrary primitive or encodable object |
| 47 | """ |
| 48 | raise NotImplementedError( |
| 49 | 'Function subclasses must implement getSignature().') |
| 50 | |
| 51 | def call(self, *args, **kwargs): |
| 52 | """Calls the function with the given positional and keyword arguments. |
no outgoing calls