Language

GuardrailDetails Constructor

Definition

Initializes a new instance of the GuardrailDetails class.

public GuardrailDetails(string targetType, Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.GuardrailDecisionType decisionType, string? guardianName = default, string? guardianId = default, string? guardianProviderName = default, string? guardianVersion = default, string? targetId = default, string? decisionReason = default, string? decisionCode = default, string? policyId = default, string? policyName = default, string? policyVersion = default, string? contentInputHash = default, bool? contentModified = default, string? externalEventId = default);
new Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.GuardrailDetails : string * Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.GuardrailDecisionType * string * string * string * string * string * string * string * string * string * string * string * Nullable<bool> * string -> Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.GuardrailDetails
Public Sub New (targetType As String, decisionType As GuardrailDecisionType, Optional guardianName As String = Nothing, Optional guardianId As String = Nothing, Optional guardianProviderName As String = Nothing, Optional guardianVersion As String = Nothing, Optional targetId As String = Nothing, Optional decisionReason As String = Nothing, Optional decisionCode As String = Nothing, Optional policyId As String = Nothing, Optional policyName As String = Nothing, Optional policyVersion As String = Nothing, Optional contentInputHash As String = Nothing, Optional contentModified As Nullable(Of Boolean) = Nothing, Optional externalEventId As String = Nothing)

Parameters

targetType
String

The type of content or action the guardrail is applied to (required). See GuardrailTargetType for well-known values.

decisionType
GuardrailDecisionType

The decision made by the guardian (required).

guardianName
String

Human-readable name of the guardian.

guardianId
String

Unique identifier of the guardian.

guardianProviderName
String

Provider of the guardian service (e.g., azure.ai.content_safety).

guardianVersion
String

Version of the guardian.

targetId
String

Identifier of the target being guarded.

decisionReason
String

Human-readable explanation for the decision.

decisionCode
String

Machine-readable decision code.

policyId
String

Identifier of the policy that triggered the decision.

policyName
String

Human-readable name of the policy.

policyVersion
String

Version of the policy.

contentInputHash
String

Hash of the input content for forensic correlation.

contentModified
Nullable<Boolean>

Whether content was modified by the guardrail.

externalEventId
String

External correlation identifier for SIEM systems.

Applies to