When using `create_react_agent`, if an error occurs during execution, different `AIMessage` objects can be saved based on the error type.

If create_react_agent encounters an error during execution, how can different AIMessages be saved based on the error type?

hi @dosnshcu

I am not sure I follow - could you clarify?