Interface Trace.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Trace.Builder,Trace>,SdkBuilder<Trace.Builder,Trace>,SdkPojo
- Enclosing class:
- Trace
@Mutable @NotThreadSafe public static interface Trace.Builder extends SdkPojo, CopyableBuilder<Trace.Builder,Trace>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Trace.BuildercustomOrchestrationTrace(Consumer<CustomOrchestrationTrace.Builder> customOrchestrationTrace)Details about the custom orchestration step in which the agent determines the order in which actions are executed.Trace.BuildercustomOrchestrationTrace(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.Trace.BuilderfailureTrace(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.Trace.BuilderguardrailTrace(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.Trace.BuilderorchestrationTrace(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..Trace.BuilderpostProcessingTrace(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.Trace.BuilderpreProcessingTrace(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.Trace.BuilderroutingClassifierTrace(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 Detail
-
customOrchestrationTrace
Trace.Builder customOrchestrationTrace(CustomOrchestrationTrace 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.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 onCustomOrchestrationTrace.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
customOrchestrationTrace(CustomOrchestrationTrace)
-
failureTrace
Trace.Builder failureTrace(FailureTrace 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
default Trace.Builder failureTrace(Consumer<FailureTrace.Builder> failureTrace)
Contains 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 onFailureTrace.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
failureTrace(FailureTrace)
-
guardrailTrace
Trace.Builder guardrailTrace(GuardrailTrace 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
default Trace.Builder guardrailTrace(Consumer<GuardrailTrace.Builder> guardrailTrace)
The 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 onGuardrailTrace.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
guardrailTrace(GuardrailTrace)
-
orchestrationTrace
Trace.Builder 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.
- 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
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.
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 onOrchestrationTrace.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
orchestrationTrace(OrchestrationTrace)
-
postProcessingTrace
Trace.Builder postProcessingTrace(PostProcessingTrace 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.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 onPostProcessingTrace.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
postProcessingTrace(PostProcessingTrace)
-
preProcessingTrace
Trace.Builder preProcessingTrace(PreProcessingTrace 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
default Trace.Builder preProcessingTrace(Consumer<PreProcessingTrace.Builder> 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.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 onPreProcessingTrace.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
preProcessingTrace(PreProcessingTrace)
-
routingClassifierTrace
Trace.Builder routingClassifierTrace(RoutingClassifierTrace 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.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 onRoutingClassifierTrace.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
routingClassifierTrace(RoutingClassifierTrace)
-
-