Language

ApplyGuardrailScope.RecordDecision(GuardrailDecisionType, String) Method

Definition

Records an updated decision on the guardrail span. Use this when the guardrail decision is determined after span creation.

public void RecordDecision(Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.GuardrailDecisionType decisionType, string? reason = default);
member this.RecordDecision : Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.GuardrailDecisionType * string -> unit
Public Sub RecordDecision (decisionType As GuardrailDecisionType, Optional reason As String = Nothing)

Parameters

decisionType
GuardrailDecisionType

The decision type made by the guardian.

reason
String

Optional human-readable explanation for the decision.

Applies to