Trace¶
Union Type¶
Trace
module-attribute
¶
Trace = Union[TraceGuardrailTrace | TracePreProcessingTrace | TraceOrchestrationTrace | TracePostProcessingTrace | TraceRoutingClassifierTrace | TraceFailureTrace | TraceCustomOrchestrationTrace | TraceUnknown]
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
¶
TracePreProcessingTrace
dataclass
¶
Bases: _SerdeShape
Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.
Attributes¶
TraceOrchestrationTrace
dataclass
¶
Bases: _SerdeShape
Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.
Attributes¶
TracePostProcessingTrace
dataclass
¶
Bases: _SerdeShape
Details about the post-processing step, in which the agent shapes the response..