| 6 | import { SecureZodSchemaParser } from '../../../src/secureZodParser' |
| 7 | |
| 8 | class CustomTool_Tools implements INode { |
| 9 | label: string |
| 10 | name: string |
| 11 | version: number |
| 12 | description: string |
| 13 | type: string |
| 14 | icon: string |
| 15 | category: string |
| 16 | baseClasses: string[] |
| 17 | inputs: INodeParams[] |
| 18 | |
| 19 | constructor() { |
| 20 | this.label = 'Custom Tool' |
| 21 | this.name = 'customTool' |
| 22 | this.version = 3.0 |
| 23 | this.type = 'CustomTool' |
| 24 | this.icon = 'customtool.svg' |
| 25 | this.category = 'Tools' |
| 26 | this.description = `Use custom tool you've created in Flowise within chatflow` |
| 27 | this.inputs = [ |
| 28 | { |
| 29 | label: 'Select Tool', |
| 30 | name: 'selectedTool', |
| 31 | type: 'asyncOptions', |
| 32 | loadMethod: 'listTools' |
| 33 | }, |
| 34 | { |
| 35 | label: 'Return Direct', |
| 36 | name: 'returnDirect', |
| 37 | description: 'Return the output of the tool directly to the user', |
| 38 | type: 'boolean', |
| 39 | optional: true |
| 40 | }, |
| 41 | { |
| 42 | label: 'Custom Tool Name', |
| 43 | name: 'customToolName', |
| 44 | type: 'string', |
| 45 | hidden: true |
| 46 | }, |
| 47 | { |
| 48 | label: 'Custom Tool Description', |
| 49 | name: 'customToolDesc', |
| 50 | type: 'string', |
| 51 | hidden: true |
| 52 | }, |
| 53 | { |
| 54 | label: 'Custom Tool Schema', |
| 55 | name: 'customToolSchema', |
| 56 | type: 'string', |
| 57 | hidden: true |
| 58 | }, |
| 59 | { |
| 60 | label: 'Custom Tool Func', |
| 61 | name: 'customToolFunc', |
| 62 | type: 'string', |
| 63 | hidden: true |
| 64 | } |
| 65 | ] |
nothing calls this directly
no outgoing calls
no test coverage detected