{"record":{"id":"810bbd6be549314e","repo":"n8n-io/n8n","slug":"agent-does-not-support-stream-resume","errorCode":null,"errorMessage":"Agent does not support stream resume","messagePattern":"Agent does not support stream resume","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/utils/stream-helpers.ts","lineNumber":56,"sourceCode":"\tresume?: (\n\t\tmethod: 'stream',\n\t\tdata: Record<string, unknown>,\n\t\toptions: Record<string, unknown>,\n\t) => Promise<unknown>;\n}\n\n/** Cast an agent to Resumable for suspend/resume operations. */\nexport function asResumable(agent: unknown): Resumable {\n\treturn agent as Resumable;\n}\n\nexport async function resumeAgentStream(\n\tagent: unknown,\n\tdata: Record<string, unknown>,\n\toptions: Record<string, unknown>,\n): Promise<unknown> {\n\tif (!isRecord(agent)) {\n\t\tthrow new Error('Agent does not support stream resume');\n\t}\n\n\tconst resumable = asResumable(agent);\n\n\tif (typeof resumable.resume === 'function') {\n\t\treturn await resumable.resume('stream', data, options);\n\t}\n\n\tthrow new Error('Agent does not support stream resume');\n}\n","sourceCodeStart":38,"sourceCodeEnd":67,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/utils/stream-helpers.ts#L38-L67","documentation":"Error \"Agent does not support stream resume\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/utils/stream-helpers.ts:56 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}