The arguments for creating the PII detection evaluator.
Optionalchoices?: ClassificationChoicesMapOptionalinputMapping?: ObjectMapping<RecordType>The mapping of the input to evaluate to the shape that the evaluator expects
Optionalname?: stringOptionaloptimizationDirection?: OptimizationDirectionOptionalpromptTemplate?: PromptTemplateOptionaltelemetry?: TelemetryConfigAn evaluator function that takes a PiiDetectionEvaluationRecord and returns a classification result
indicating whether the record contains PII (pii_detected) or not (no_pii_detected).
Creates a PII detection evaluator.
This function returns an evaluator that screens a conversation record for personally identifiable information, including content in tool calls, tool results, and retrieved documents the end user may never have seen.