Skip to main content

Variable: RPC_STREAM_MAX_ACCUMULATED_BYTES

const RPC_STREAM_MAX_ACCUMULATED_BYTES: number

Defined in: packages/contracts/src/pluginRuntime.ts:59

Hard bound on the assembled response body per stream. The network body cap is 8 MiB (NETWORK_MAX_BODY_BYTES); this leaves headroom for the response envelope and JSON escaping of the encoded body. Enforced by both the host producer (refuses to stream a larger body) and the worker consumer (defense-in-depth fail of the call).