microsoft.opentelemetry.a365.core.guardrail_details module
Data class for guardrail evaluation details.
- class microsoft.opentelemetry.a365.core.guardrail_details.GuardrailDetails(target_type, decision_type, guardian_name=None, guardian_id=None, guardian_provider_name=None, guardian_version=None, target_id=None, decision_reason=None, decision_code=None, policy_id=None, policy_name=None, policy_version=None, content_input_hash=None, content_modified=None, external_event_id=None)[source]
Bases:
objectImmutable input contract describing a guardrail evaluation.
- Variables:
target_type – What content is being guarded (e.g., “llm_input”, “tool_call”).
decision_type – The guardian’s decision (e.g., “allow”, “deny”).
guardian_name – Human-readable guardian name.
guardian_id – Unique guardian identifier.
guardian_provider_name – Provider name (e.g., “azure.ai.content_safety”).
guardian_version – Guardian version string.
target_id – ID of the targeted content.
decision_reason – Human-readable decision reason.
decision_code – Machine-readable decision code.
policy_id – Triggered policy ID.
policy_name – Triggered policy name.
policy_version – Policy version.
content_input_hash – Hash of input content for forensic correlation.
content_modified – Whether the content was altered by the guardrail.
external_event_id – External event ID for SIEM correlation.