Patch Changes
-
#12043
81577b3Thanks @eliornl! - fix(langchain): re-throw a drained tool from the agent'sToolNodeA tool that throws
GraphDrained, for example one whose inner graph run is drained withRunControl.requestDrain(), now stops the agent run with that error, as an interrupt already did, instead of coming back as an errorToolMessagethat lets the agent go on as if the tool had failed.