function resumeHttpResponse<TOffset>(options): Response;Defined in: packages/ai/src/stream-to-response.ts:1201
Serve a resumable run from its durability log over NDJSON, without re-running the model. The NDJSON counterpart of resumeServerSentEventsResponse; pair it with a toHttpResponse producer. Returns a 400 when the request carries no resume offset (no Last-Event-ID header and no ?offset).
TOffset extends string = string
ResumeResponseOptions<TOffset>
Response
export async function GET(request: Request) {
return resumeHttpResponse({ adapter: memoryStream(request) });
}