ApplyGuardrailScope.RecordDecision(GuardrailDecisionType, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.