orRedactedInput

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


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

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

Return

Either this string or "REDACTED".