Interface Trace.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Trace.Builder,
,Trace> SdkBuilder<Trace.Builder,
,Trace> SdkPojo
- Enclosing class:
Trace
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.customOrchestrationTrace
(CustomOrchestrationTrace customOrchestrationTrace) Details about the custom orchestration step in which the agent determines the order in which actions are executed.default Trace.Builder
failureTrace
(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.Builder
guardrailTrace
(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.Builder
orchestrationTrace
(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.Builder
postProcessingTrace
(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.Builder
preProcessingTrace
(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.Builder
routingClassifierTrace
(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.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
customOrchestrationTrace
Details 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.
-
customOrchestrationTrace
default 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.Builder
avoiding the need to create one manually viaCustomOrchestrationTrace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomOrchestrationTrace(CustomOrchestrationTrace)
.- Parameters:
customOrchestrationTrace
- a consumer that will call methods onCustomOrchestrationTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureTrace
Contains 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.
-
failureTrace
Contains information about the failure of the interaction.
This is a convenience method that creates an instance of theFailureTrace.Builder
avoiding the need to create one manually viaFailureTrace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailureTrace(FailureTrace)
.- Parameters:
failureTrace
- a consumer that will call methods onFailureTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
guardrailTrace
The 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.
-
guardrailTrace
The trace details for a trace defined in the Guardrail filter.
This is a convenience method that creates an instance of theGuardrailTrace.Builder
avoiding the need to create one manually viaGuardrailTrace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toguardrailTrace(GuardrailTrace)
.- Parameters:
guardrailTrace
- a consumer that will call methods onGuardrailTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
orchestrationTrace
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orchestrationTrace
Details 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.Builder
avoiding the need to create one manually viaOrchestrationTrace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toorchestrationTrace(OrchestrationTrace)
.- Parameters:
orchestrationTrace
- a consumer that will call methods onOrchestrationTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
postProcessingTrace
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..- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postProcessingTrace
default 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.Builder
avoiding the need to create one manually viaPostProcessingTrace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topostProcessingTrace(PostProcessingTrace)
.- Parameters:
postProcessingTrace
- a consumer that will call methods onPostProcessingTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
preProcessingTrace
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preProcessingTrace
Details 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.Builder
avoiding the need to create one manually viaPreProcessingTrace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topreProcessingTrace(PreProcessingTrace)
.- Parameters:
preProcessingTrace
- a consumer that will call methods onPreProcessingTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
routingClassifierTrace
A 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.
-
routingClassifierTrace
default Trace.Builder routingClassifierTrace(Consumer<RoutingClassifierTrace.Builder> routingClassifierTrace) A routing classifier's trace.
This is a convenience method that creates an instance of theRoutingClassifierTrace.Builder
avoiding the need to create one manually viaRoutingClassifierTrace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toroutingClassifierTrace(RoutingClassifierTrace)
.- Parameters:
routingClassifierTrace
- a consumer that will call methods onRoutingClassifierTrace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-