(func: (...args: unknown[]) => unknown)
| 145 | |
| 146 | // Helper function to extract function signature |
| 147 | function getFunctionSignature(func: (...args: unknown[]) => unknown) { |
| 148 | const funcString = func.toString(); |
| 149 | const signatureMatch = /(function\s.*?\(.*?\))|((\w+|\((.*?)\))\s*=>)/.exec( |
| 150 | funcString |
| 151 | ); |
| 152 | return signatureMatch ? signatureMatch[0] : 'function signature not found'; |
| 153 | } |
| 154 | |
| 155 | // Function to extract the tool object as an example, including the function signatures |
| 156 | function extractToolExample(toolName: string) { |
no outgoing calls
no test coverage detected