Interface Trace.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<Trace.Builder,,- Trace> - SdkBuilder<Trace.Builder,,- Trace> - SdkPojo
- Enclosing class:
- Trace
- 
Method SummaryModifier and TypeMethodDescriptiondefault Trace.BuildercustomOrchestrationTrace(Consumer<CustomOrchestrationTrace.Builder> customOrchestrationTrace) Details about the custom orchestration step in which the agent determines the order in which actions are executed.customOrchestrationTrace(CustomOrchestrationTrace customOrchestrationTrace) Details about the custom orchestration step in which the agent determines the order in which actions are executed.default Trace.BuilderfailureTrace(Consumer<FailureTrace.Builder> failureTrace) Contains information about the failure of the interaction.failureTrace(FailureTrace failureTrace) Contains information about the failure of the interaction.default Trace.BuilderguardrailTrace(Consumer<GuardrailTrace.Builder> guardrailTrace) The trace details for a trace defined in the Guardrail filter.guardrailTrace(GuardrailTrace guardrailTrace) The trace details for a trace defined in the Guardrail filter.default Trace.BuilderorchestrationTrace(Consumer<OrchestrationTrace.Builder> orchestrationTrace) Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.orchestrationTrace(OrchestrationTrace orchestrationTrace) Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.default Trace.BuilderpostProcessingTrace(Consumer<PostProcessingTrace.Builder> postProcessingTrace) Details about the post-processing step, in which the agent shapes the response..postProcessingTrace(PostProcessingTrace postProcessingTrace) Details about the post-processing step, in which the agent shapes the response..default Trace.BuilderpreProcessingTrace(Consumer<PreProcessingTrace.Builder> preProcessingTrace) Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.preProcessingTrace(PreProcessingTrace preProcessingTrace) Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.default Trace.BuilderroutingClassifierTrace(Consumer<RoutingClassifierTrace.Builder> routingClassifierTrace) A routing classifier's trace.routingClassifierTrace(RoutingClassifierTrace routingClassifierTrace) A routing classifier's trace.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
guardrailTraceThe trace details for a trace defined in the Guardrail filter. - Parameters:
- guardrailTrace- The trace details for a trace defined in the Guardrail filter.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
guardrailTraceThe trace details for a trace defined in the Guardrail filter. This is a convenience method that creates an instance of theGuardrailTrace.Builderavoiding the need to create one manually viaGuardrailTrace.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toguardrailTrace(GuardrailTrace).- Parameters:
- guardrailTrace- a consumer that will call methods on- GuardrailTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
preProcessingTraceDetails 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
preProcessingTraceDetails about the pre-processing step, in which the agent contextualizes and categorizes user inputs. This is a convenience method that creates an instance of thePreProcessingTrace.Builderavoiding the need to create one manually viaPreProcessingTrace.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topreProcessingTrace(PreProcessingTrace).- Parameters:
- preProcessingTrace- a consumer that will call methods on- PreProcessingTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
orchestrationTraceDetails 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
orchestrationTraceDetails about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved. This is a convenience method that creates an instance of theOrchestrationTrace.Builderavoiding the need to create one manually viaOrchestrationTrace.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorchestrationTrace(OrchestrationTrace).- Parameters:
- orchestrationTrace- a consumer that will call methods on- OrchestrationTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
postProcessingTraceDetails 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..
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
postProcessingTracedefault Trace.Builder postProcessingTrace(Consumer<PostProcessingTrace.Builder> postProcessingTrace) Details about the post-processing step, in which the agent shapes the response.. This is a convenience method that creates an instance of thePostProcessingTrace.Builderavoiding the need to create one manually viaPostProcessingTrace.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topostProcessingTrace(PostProcessingTrace).- Parameters:
- postProcessingTrace- a consumer that will call methods on- PostProcessingTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
routingClassifierTraceA routing classifier's trace. - Parameters:
- routingClassifierTrace- A routing classifier's trace.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
routingClassifierTracedefault Trace.Builder routingClassifierTrace(Consumer<RoutingClassifierTrace.Builder> routingClassifierTrace) A routing classifier's trace. This is a convenience method that creates an instance of theRoutingClassifierTrace.Builderavoiding the need to create one manually viaRoutingClassifierTrace.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toroutingClassifierTrace(RoutingClassifierTrace).- Parameters:
- routingClassifierTrace- a consumer that will call methods on- RoutingClassifierTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
failureTraceContains information about the failure of the interaction. - Parameters:
- failureTrace- Contains information about the failure of the interaction.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
failureTraceContains information about the failure of the interaction. This is a convenience method that creates an instance of theFailureTrace.Builderavoiding the need to create one manually viaFailureTrace.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailureTrace(FailureTrace).- Parameters:
- failureTrace- a consumer that will call methods on- FailureTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
customOrchestrationTraceDetails about the custom orchestration step in which the agent determines the order in which actions are executed. - Parameters:
- customOrchestrationTrace- Details about the custom orchestration step in which the agent determines the order in which actions are executed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
customOrchestrationTracedefault Trace.Builder customOrchestrationTrace(Consumer<CustomOrchestrationTrace.Builder> customOrchestrationTrace) Details about the custom orchestration step in which the agent determines the order in which actions are executed. This is a convenience method that creates an instance of theCustomOrchestrationTrace.Builderavoiding the need to create one manually viaCustomOrchestrationTrace.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomOrchestrationTrace(CustomOrchestrationTrace).- Parameters:
- customOrchestrationTrace- a consumer that will call methods on- CustomOrchestrationTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-