orRedactedOutput

Same as orRedactedOutput but with a ContentCapturePolicy instance taken from TracingManager.


Returns either this string if the ContentCapturePolicy instance is configured to capture sensitive request/response output content into span, or a "REDACTED" placeholder otherwise.

this is expected to be an output (e.g., assistant response messages). For the input (e.g., user/system messages) see orRedactedInput.

Return

Either this string or "REDACTED".