Class Trace
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Trace.Builder,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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Trace.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final FailureTraceContains information about the failure of the interaction.static TracefromFailureTrace(Consumer<FailureTrace.Builder> failureTrace) Create an instance of this class withfailureTrace()initialized to the given value.static TracefromFailureTrace(FailureTrace failureTrace) Create an instance of this class withfailureTrace()initialized to the given value.static TracefromGuardrailTrace(Consumer<GuardrailTrace.Builder> guardrailTrace) Create an instance of this class withguardrailTrace()initialized to the given value.static TracefromGuardrailTrace(GuardrailTrace guardrailTrace) Create an instance of this class withguardrailTrace()initialized to the given value.static TracefromOrchestrationTrace(Consumer<OrchestrationTrace.Builder> orchestrationTrace) Create an instance of this class withorchestrationTrace()initialized to the given value.static TracefromOrchestrationTrace(OrchestrationTrace orchestrationTrace) Create an instance of this class withorchestrationTrace()initialized to the given value.static TracefromPostProcessingTrace(Consumer<PostProcessingTrace.Builder> postProcessingTrace) Create an instance of this class withpostProcessingTrace()initialized to the given value.static TracefromPostProcessingTrace(PostProcessingTrace postProcessingTrace) Create an instance of this class withpostProcessingTrace()initialized to the given value.static TracefromPreProcessingTrace(Consumer<PreProcessingTrace.Builder> preProcessingTrace) Create an instance of this class withpreProcessingTrace()initialized to the given value.static TracefromPreProcessingTrace(PreProcessingTrace preProcessingTrace) Create an instance of this class withpreProcessingTrace()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final GuardrailTraceThe trace details for a trace defined in the Guardrail filter.final inthashCode()final OrchestrationTraceDetails about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.final PostProcessingTraceDetails about the post-processing step, in which the agent shapes the response..final PreProcessingTraceDetails about the pre-processing step, in which the agent contextualizes and categorizes user inputs.static Class<? extends Trace.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
failureTrace
Contains information about the failure of the interaction.
- Returns:
- Contains information about the failure of the interaction.
-
guardrailTrace
The trace details for a trace defined in the Guardrail filter.
- Returns:
- The trace details for a trace defined in the Guardrail filter.
-
orchestrationTrace
Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.
- Returns:
- Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.
-
postProcessingTrace
Details about the post-processing step, in which the agent shapes the response..
- Returns:
- Details about the post-processing step, in which the agent shapes the response..
-
preProcessingTrace
Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.
- Returns:
- Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Trace.Builder,Trace> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromFailureTrace
Create an instance of this class withfailureTrace()initialized to the given value.Contains information about the failure of the interaction.
- Parameters:
failureTrace- Contains information about the failure of the interaction.
-
fromFailureTrace
Create an instance of this class withfailureTrace()initialized to the given value.Contains information about the failure of the interaction.
- Parameters:
failureTrace- Contains information about the failure of the interaction.
-
fromGuardrailTrace
Create an instance of this class withguardrailTrace()initialized to the given value.The trace details for a trace defined in the Guardrail filter.
- Parameters:
guardrailTrace- The trace details for a trace defined in the Guardrail filter.
-
fromGuardrailTrace
Create an instance of this class withguardrailTrace()initialized to the given value.The trace details for a trace defined in the Guardrail filter.
- Parameters:
guardrailTrace- The trace details for a trace defined in the Guardrail filter.
-
fromOrchestrationTrace
Create an instance of this class withorchestrationTrace()initialized to the given value.Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.
- Parameters:
orchestrationTrace- Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.
-
fromOrchestrationTrace
Create an instance of this class withorchestrationTrace()initialized to the given value.Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.
- Parameters:
orchestrationTrace- Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.
-
fromPostProcessingTrace
Create an instance of this class withpostProcessingTrace()initialized to the given value.Details about the post-processing step, in which the agent shapes the response..
- Parameters:
postProcessingTrace- Details about the post-processing step, in which the agent shapes the response..
-
fromPostProcessingTrace
public static Trace fromPostProcessingTrace(Consumer<PostProcessingTrace.Builder> postProcessingTrace) Create an instance of this class withpostProcessingTrace()initialized to the given value.Details about the post-processing step, in which the agent shapes the response..
- Parameters:
postProcessingTrace- Details about the post-processing step, in which the agent shapes the response..
-
fromPreProcessingTrace
Create an instance of this class withpreProcessingTrace()initialized to the given value.Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.
- Parameters:
preProcessingTrace- Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.
-
fromPreProcessingTrace
Create an instance of this class withpreProcessingTrace()initialized to the given value.Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.
- Parameters:
preProcessingTrace- Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beTrace.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beTrace.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-