Interface: EgressConfig
Defined in: packages/core/src/core/execution/EgressGuard.ts:52
Egress guard configuration.
Example
typescript
registry.attachToServer(server, {
contextFactory: createContext,
maxPayloadBytes: 2 * 1024 * 1024, // 2MB safety net
});Properties
maxPayloadBytes
ts
readonly maxPayloadBytes: number;Defined in: packages/core/src/core/execution/EgressGuard.ts:60
Maximum total payload size in bytes. When a response exceeds this limit, the text content is truncated and a system intervention message is appended.
Minimum
1024 (1KB minimum to avoid unusable responses)