Interface PostProcessingTrace.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PostProcessingTrace.Builder,
,PostProcessingTrace> SdkBuilder<PostProcessingTrace.Builder,
,PostProcessingTrace> SdkPojo
- Enclosing class:
PostProcessingTrace
-
Method Summary
Modifier and TypeMethodDescriptiondefault PostProcessingTrace.Builder
modelInvocationInput
(Consumer<ModelInvocationInput.Builder> modelInvocationInput) The input for the post-processing step.modelInvocationInput
(ModelInvocationInput modelInvocationInput) The input for the post-processing step.default PostProcessingTrace.Builder
modelInvocationOutput
(Consumer<PostProcessingModelInvocationOutput.Builder> modelInvocationOutput) The foundation model output from the post-processing step.modelInvocationOutput
(PostProcessingModelInvocationOutput modelInvocationOutput) The foundation model output from the post-processing step.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
-
modelInvocationInput
The input for the post-processing step.
-
The
type
isPOST_PROCESSING
. -
The
text
contains the prompt. -
The
inferenceConfiguration
,parserMode
, andoverrideLambda
values are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
- Parameters:
modelInvocationInput
- The input for the post-processing step.-
The
type
isPOST_PROCESSING
. -
The
text
contains the prompt. -
The
inferenceConfiguration
,parserMode
, andoverrideLambda
values are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
modelInvocationInput
default PostProcessingTrace.Builder modelInvocationInput(Consumer<ModelInvocationInput.Builder> modelInvocationInput) The input for the post-processing step.
-
The
type
isPOST_PROCESSING
. -
The
text
contains the prompt. -
The
inferenceConfiguration
,parserMode
, andoverrideLambda
values are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
ModelInvocationInput.Builder
avoiding the need to create one manually viaModelInvocationInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodelInvocationInput(ModelInvocationInput)
.- Parameters:
modelInvocationInput
- a consumer that will call methods onModelInvocationInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
modelInvocationOutput
PostProcessingTrace.Builder modelInvocationOutput(PostProcessingModelInvocationOutput modelInvocationOutput) The foundation model output from the post-processing step.
- Parameters:
modelInvocationOutput
- The foundation model output from the post-processing step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelInvocationOutput
default PostProcessingTrace.Builder modelInvocationOutput(Consumer<PostProcessingModelInvocationOutput.Builder> modelInvocationOutput) The foundation model output from the post-processing step.
This is a convenience method that creates an instance of thePostProcessingModelInvocationOutput.Builder
avoiding the need to create one manually viaPostProcessingModelInvocationOutput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodelInvocationOutput(PostProcessingModelInvocationOutput)
.- Parameters:
modelInvocationOutput
- a consumer that will call methods onPostProcessingModelInvocationOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-