Skip to main content

validate_result_redaction

Function validate_result_redaction 

Source
pub fn validate_result_redaction(
    scenario: &'static str,
    tool_produced_secret: bool,
    visible_output: &str,
    secret: &str,
) -> Result<(), ScenarioError>
Available on crate feature test-utils only.
Expand description

Validate that a sensitive raw tool result was produced but did not reach the model’s user-visible response after result hooks ran.