Skip to content

RedactPayloadTextParams

Defined in: src/redact.ts:34

Parameters for redactPayloadText.

field: "error" | "cause" | "output" | "input";

Defined in: src/redact.ts:36

Which of a run’s texts this is.


redact?: RedactCallback;

Defined in: src/redact.ts:38

The caller’s hook. Omit it and text is returned unchanged.


stateId?: string;

Defined in: src/redact.ts:40

Node id of the state the run belongs to; omitted for an execution-level cause.


text: string;

Defined in: src/redact.ts:42

The payload as it would otherwise be inlined, already capped.