Skip to content

Commit

Permalink
Allow value of NodeInterrupt to be any (JSON-serializable) type. (#710)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Lee <[email protected]>
  • Loading branch information
jaredhanson and jacoblee93 authored Dec 6, 2024
1 parent 6312239 commit b52fb0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/langgraph/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
{
Expand Down

0 comments on commit b52fb0d

Please sign in to comment.