is there a way to know within a step if

is there a way to know within a step if it's retrying, and if so, can you get the error that made it fail?
3 Replies
Focux
FocuxOP7d ago
what i'm currently doing is catching the error within the step and then storing it in a map that i have outside the step and every time the step is executed, i check whether there's an error
Seekerdasbatatas
currently no, what would be your end goal with this though?
Focux
FocuxOP7d ago
it's an AI use case, basically updating the prompt with the error message
Want results from more Discord servers?
Add your server