Trace

sealed class 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.

Inheritors

Types

Link copied to clipboard

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

Link copied to clipboard
data class FailureTrace(val value: FailureTrace) : Trace

Contains information about the failure of the interaction.

Link copied to clipboard
data class GuardrailTrace(val value: GuardrailTrace) : Trace

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

A routing classifier's trace.

Link copied to clipboard
object SdkUnknown : Trace

Functions

Link copied to clipboard

Casts this Trace as a FailureTrace and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.FailureTrace value. Throws an exception if the Trace is not a FailureTrace.

Link copied to clipboard
Link copied to clipboard

Casts this Trace as a GuardrailTrace and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.GuardrailTrace value. Throws an exception if the Trace is not a GuardrailTrace.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard