Concept: Agent Evaluation | Python:
client.agent.scan_tool_result()Parameters
string
आवश्यक
Tool का नाम जिसने यह result produce किया।
object
आवश्यक
Tool का output, एक object के रूप में। Text को
raw (string) के under दें और/या structured output को data (any) के under दें। Optional format (string, default "text")। raw/data में से कम से कम एक present होना चाहिए।object
Tool को जो parameters के साथ call किया गया था, अगर available हों।
object
Agent की role और current task। Object में optional fields हैं:
goal (string), prior_tool_calls (array), agent_id (string), turn_index (integer)।string[]
कौन से checks run करने हैं।
"pii", "prompt_injection", "rail_score" में से कोई भी। Defaults to सभी तीनों। Credit cost checks की संख्या के साथ scale होती है (3 = 1.0, 2 = 0.75, 1 = 0.5)।Request
Response
string
Overall risk:
"low", "medium", "high", या "critical"।string
Suggested action:
"PASS", "FLAG", "REDACT_AND_PASS", "REDACT_AND_FLAG", या "DISCARD_AND_ALERT"।object
Present जब
pii check run होता है। Contains found (boolean), entities (array of {type, value, offset, should_redact}), redacted_result (string with PII replaced by [TYPE] placeholders), और compliance_flags (string[])।object
Present जब Indian PII (e.g. Aadhaar, PAN) detect होता है। DPDP exposure को indicate करता है और recommended Rule 6 safeguards को। Detected Indian identifiers भी
pii_detected.redacted_result में mask हो जाते हैं।object
Present जब
prompt_injection check run होता है। Contains detected (boolean) और confidence (0-1)।