Skip to main content

Promptinsight

Properties

NameTypeDescriptionNotes
TimestampSystem.DateTimeEvent time in UTC.[optional]
UserStringUser identifier or display name.[optional]
AgentStringThe AI agent that processed the prompt.[optional]
PolicyDecisionEnum [ "ALLOWED", "REDACTED" ]The policy decision applied to the prompt.[optional]
CategoryEnum [ "ANOMALIES", "DATA_UPLOADS", "MCP_TOOL_CALLS" ]The category of the prompt security finding.[optional]
SeverityEnum [ "LOW", "MEDIUM", "HIGH", "CRITICAL" ]The severity of the prompt security finding.[optional]
ReasonStringHuman-readable or structured reason for the policy decision.[optional]
RuleStringThe rule that matched the prompt.[optional]
PolicyStringThe policy that matched the prompt.[optional]

Examples

  • Prepare the resource
$Promptinsight = Initialize-Promptinsight  -Timestamp 2026-05-14T10:01:02.345Z `
-User john.doe@mail.com `
-Agent ChatGPT `
-PolicyDecision REDACTED `
-Category ANOMALIES `
-Severity HIGH `
-Reason Policy matched suspicious system override pattern `
-Rule Prompt Guard - Clean `
-Policy PG-INFO:None
  • Convert the resource to JSON
$Promptinsight | ConvertTo-JSON

[Back to top]