Trace
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.
Contents
Important
This data type is a UNION, so only one of the following members can be specified when used or returned.
- failureTrace
-
Contains information about the failure of the interaction.
Type: FailureTrace object
Required: No
- guardrailTrace
-
The trace details for a trace defined in the Guardrail filter.
Type: GuardrailTrace object
Required: No
- orchestrationTrace
-
Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.
Type: OrchestrationTrace object
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: No
- postProcessingTrace
-
Details about the post-processing step, in which the agent shapes the response..
Type: PostProcessingTrace object
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: No
- preProcessingTrace
-
Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.
Type: PreProcessingTrace object
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: