0
Fork 0
mirror of https://github.com/TanStack/ai.git synced 2026-11-16 19:38:41 +00:00
ai/docs/reference/interfaces/MemoryStreamInit.md
github-actions[bot] 5701bf5184
docs: regenerate API documentation (#1141)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-18 19:53:35 +02:00

1.1 KiB

id title
MemoryStreamInit MemoryStreamInit

Interface: MemoryStreamInit

Defined in: packages/ai/src/stream-durability.ts:308

Explicit construction for memoryStream, for callers that don't have the incoming Request — e.g. a TanStack Start server function implementing a joinRun replay for a run id it received as call data:

const durability = memoryStream({ runId })
for await (const chunk of replayRunStream(durability)) yield chunk

Properties

offset?

optional offset?: string | null;

Defined in: packages/ai/src/stream-durability.ts:315

Resume offset captured by the consumer (resumeFrom() returns it). Defaults to null (a producer / from-start reader).


runId

runId: string;

Defined in: packages/ai/src/stream-durability.ts:310

The run this durability adapter attaches to.