We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fab03a commit b143fc6Copy full SHA for b143fc6
integrations/langgraph/typescript/src/agent.ts
@@ -503,9 +503,9 @@ export class LangGraphAgent extends AbstractAgent {
503
(eventType === LangGraphEventTypes.OnCustomEvent &&
504
chunkData.name === CustomEventNames.Exit);
505
506
- this.activeRun!.exitingNode =
507
- this.activeRun!.nodeName === currentNodeName &&
508
- eventType === LangGraphEventTypes.OnChainEnd;
+ if (eventType === LangGraphEventTypes.OnChainEnd && this.activeRun!.nodeName === currentNodeName) {
+ this.activeRun!.exitingNode = true;
+ }
509
if (this.activeRun!.exitingNode) {
510
this.activeRun!.manuallyEmittedState = null;
511
}
0 commit comments