Skip to content

GuardrailTrace

Structure Class

GuardrailTrace dataclass

Bases: _SerdeShape

The trace details used in the Guardrail.

Attributes

action class-attribute instance-attribute
action: str | None = ...

The trace action details used with the Guardrail.

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

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

metadata class-attribute instance-attribute
metadata: Metadata | None = ...

Contains information about the Guardrail output.

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

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

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

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