Skip to content

Bedrock Agent Runtime  >  Unions  >  Trace

Trace

Union Type

Trace module-attribute

Contains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace enablement.

Union Member Types

TraceGuardrailTrace dataclass

The trace details for a trace defined in the Guardrail filter.

Attributes

value instance-attribute

TracePreProcessingTrace dataclass

Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.

Attributes

value instance-attribute

TraceOrchestrationTrace dataclass

Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.

Attributes

value instance-attribute

TracePostProcessingTrace dataclass

Details about the post-processing step, in which the agent shapes the response..

Attributes

value instance-attribute

TraceRoutingClassifierTrace dataclass

A routing classifier's trace.

Attributes

value instance-attribute

TraceFailureTrace dataclass

Contains information about the failure of the interaction.

Attributes

value instance-attribute
value: FailureTrace

TraceCustomOrchestrationTrace dataclass

Details about the custom orchestration step in which the agent determines the order in which actions are executed.

Attributes

value instance-attribute

TraceUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str