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
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
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.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, sdkFields
-
Method Details
-
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:
-
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:
-