| 176 | SlashCommandNamedArgument.fromProps({ | 176 | SlashCommandNamedArgument.fromProps({ |
| 177 | name: 'regex', | 177 | name: 'regex', |
| 178 | description: 'Whether to apply regex scripts to the reasoning content.', | 178 | description: 'Whether to apply regex scripts to the reasoning content.', |
| 179 | typeList: ARGUMENT_TYPE.BOOLEAN, | 179 | typeList: [ARGUMENT_TYPE.BOOLEAN], |
| 180 | defaultValue: 'true', | 180 | defaultValue: 'true', |
| 181 | isRequired: false, | 181 | isRequired: false, |
| | 182 | enumProvider: commonEnumProviders.boolean('trueFalse'), |
| 182 | }), | 183 | }), |
| 183 | ], | 184 | ], |
| 184 | unnamedArgumentList: [ | 185 | unnamedArgumentList: [ |
| 185 | SlashCommandArgument.fromProps({ | 186 | SlashCommandArgument.fromProps({ |
| 186 | description: 'input string', | 187 | description: 'input string', |
| 187 | typeList: ARGUMENT_TYPE.STRING, | 188 | typeList: [ARGUMENT_TYPE.STRING], |
| 188 | }), | 189 | }), |
| 189 | ], | 190 | ], |
| 190 | callback: (args, value) => { | 191 | callback: (args, value) => { |