diff --git a/langgraph/src/pregel/index.ts b/langgraph/src/pregel/index.ts index 55b887f1f..fbe0e4fc2 100644 --- a/langgraph/src/pregel/index.ts +++ b/langgraph/src/pregel/index.ts @@ -273,7 +273,7 @@ export class Pregel< constructor(fields: PregelInterface) { super(fields); - let streamMode = fields.streamMode; + let { streamMode } = fields; if (streamMode != null && !Array.isArray(streamMode)) { streamMode = [streamMode]; }