From b52fb0dabc6b3512274910f1f633ba5da4883c10 Mon Sep 17 00:00:00 2001 From: Jared Hanson Date: Thu, 5 Dec 2024 16:30:04 -0800 Subject: [PATCH] Allow value of NodeInterrupt to be any (JSON-serializable) type. (#710) Co-authored-by: Jacob Lee --- libs/langgraph/src/errors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/langgraph/src/errors.ts b/libs/langgraph/src/errors.ts index 1c0358c1..eac1f84b 100644 --- a/libs/langgraph/src/errors.ts +++ b/libs/langgraph/src/errors.ts @@ -62,7 +62,8 @@ export class GraphInterrupt extends GraphBubbleUp { /** Raised by a node to interrupt execution. */ export class NodeInterrupt extends GraphInterrupt { - constructor(message: string, fields?: BaseLangGraphErrorFields) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + constructor(message: any, fields?: BaseLangGraphErrorFields) { super( [ {