Enum Class RedactionScope

java.lang.Object
java.lang.Enum<RedactionScope>
com.tnsai.quality.redaction.RedactionScope
All Implemented Interfaces:
Serializable, Comparable<RedactionScope>, Constable

public enum RedactionScope extends Enum<RedactionScope>
Where the redacted content originated (issue #80). Lets a tenant policy redactor apply different rules per call site — e.g. allow email addresses in user-typed prompts but redact them from log attributes that ship to the SaaS log aggregator.
Since:
0.5.0 (issue #80)
  • Enum Constant Details

    • LOG_ATTR

      public static final RedactionScope LOG_ATTR
      Generic structured-log attribute on an AgentEventPublisher sink.
    • LLM_PROMPT

      public static final RedactionScope LLM_PROMPT
      User / system prompt body sent to an LLM.
    • LLM_RESPONSE

      public static final RedactionScope LLM_RESPONSE
      LLM completion text returned by the provider.
    • MEMORY_WRITE

      public static final RedactionScope MEMORY_WRITE
      Memory write — content persisted across turns / sessions.
    • TOOL_INPUT

      public static final RedactionScope TOOL_INPUT
      Tool input arguments captured for replay / audit.
    • TOOL_OUTPUT

      public static final RedactionScope TOOL_OUTPUT
      Tool output captured for downstream consumers.
    • ERROR_TRACE

      public static final RedactionScope ERROR_TRACE
      Stack trace / cause chain inside an error event.
  • Method Details

    • values

      public static RedactionScope[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RedactionScope valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null