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
¶
The trace details for a trace defined in the Guardrail filter.
Attributes¶
TracePreProcessingTrace
dataclass
¶
Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.
Attributes¶
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¶
TracePostProcessingTrace
dataclass
¶
Details about the post-processing step, in which the agent shapes the response..
Attributes¶
TraceFailureTrace
dataclass
¶
Contains information about the failure of the interaction.