Concept: Agent Evaluation | Python:
client.agent.scan_tool_result()Parameters
Name of the tool that produced this result.
The tool output, as an object. Provide the text under
raw (string) and/or structured output under data (any). Optional format (string, default "text"). At least one of raw/data must be present.The parameters the tool was called with, if available.
The agent’s role and current task. Object with optional fields:
goal (string), prior_tool_calls (array), agent_id (string), turn_index (integer).Which checks to run. Any of
"pii", "prompt_injection", "rail_score". Defaults to all three. Credit cost scales with the number of checks (3 = 1.0, 2 = 0.75, 1 = 0.5).Request
Response
Overall risk:
"low", "medium", "high", or "critical".Suggested action:
"PASS", "FLAG", "REDACT_AND_PASS", "REDACT_AND_FLAG", or "DISCARD_AND_ALERT".Present when the
pii check runs. Contains found (boolean), entities (array of {type, value, offset, should_redact}), redacted_result (string with PII replaced by [TYPE] placeholders), and compliance_flags (string[]).Present when Indian PII (e.g. Aadhaar, PAN) is detected. Indicates DPDP exposure and the recommended Rule 6 safeguards. Detected Indian identifiers are also masked in
pii_detected.redacted_result.Present when the
prompt_injection check runs. Contains detected (boolean) and confidence (0-1).