Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[FEATURE] Error logs for CustomTool

Open yos1p opened this issue 1 year ago • 1 comments

Describe the feature you'd like It'll be nice that when a CustomTool throws error, or if the code is incorrect, we can analyse the logs somewhere.

Currently, the CustomTool will simply be ignored and that results in wrong response by LLM.

yos1p avatar Jul 21 '24 14:07 yos1p

Hmm, but I (or Claude did it for me) did exactly this. You can just return an error as the tools response and do console logging?! If you start Flowise with "$ pnpm start --PORT=3000 --LOG_LEVEL=debug --DEBUG=true" ?!

`} catch (error) { result.status = 'error'; result.message = 'Failed to set timer'; result.errors.push(error.message); console.error('Error setting timer:', error); if (error.response) { result.details.errorResponse = { status: error.response.status, data: error.response.data }; } }

console.log('Final result:', JSON.stringify(result, null, 2)); return JSON.stringify(result, null, 2);`

alarm_clock_and_timer_tool-CustomTool.json flowise_cmd.log

BadlyDrawnBoy avatar Jul 25 '24 14:07 BadlyDrawnBoy