Skip to content

Bedrock Agent Runtime  >  Structures  >  GuardrailTrace

GuardrailTrace

Structure Class

GuardrailTrace dataclass

The trace details used in the Guardrail.

Attributes

action class-attribute instance-attribute
action: GuardrailAction | None = None

The trace action details used with the Guardrail.

input_assessments class-attribute instance-attribute
input_assessments: list[GuardrailAssessment] | None = None

The details of the input assessments used in the Guardrail Trace.

metadata class-attribute instance-attribute
metadata: Metadata | None = field(repr=False, default=None)

Contains information about the Guardrail output.

output_assessments class-attribute instance-attribute
output_assessments: list[GuardrailAssessment] | None = None

The details of the output assessments used in the Guardrail Trace.

trace_id class-attribute instance-attribute
trace_id: str | None = None

The details of the trace Id used in the Guardrail Trace.