Interface PostProcessingTrace.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PostProcessingTrace.Builder,,PostProcessingTrace> SdkBuilder<PostProcessingTrace.Builder,,PostProcessingTrace> SdkPojo
- Enclosing class:
PostProcessingTrace
-
Method Summary
Modifier and TypeMethodDescriptiondefault PostProcessingTrace.BuildermodelInvocationInput(Consumer<ModelInvocationInput.Builder> modelInvocationInput) The input for the post-processing step.modelInvocationInput(ModelInvocationInput modelInvocationInput) The input for the post-processing step.default PostProcessingTrace.BuildermodelInvocationOutput(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
modelInvocationInput
The input for the post-processing step.
-
The
typeisPOST_PROCESSING. -
The
textcontains the prompt. -
The
inferenceConfiguration,parserMode, andoverrideLambdavalues 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
typeisPOST_PROCESSING. -
The
textcontains the prompt. -
The
inferenceConfiguration,parserMode, andoverrideLambdavalues 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
typeisPOST_PROCESSING. -
The
textcontains the prompt. -
The
inferenceConfiguration,parserMode, andoverrideLambdavalues are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.
ModelInvocationInput.Builderavoiding the need to create one manually viaModelInvocationInput.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaPostProcessingModelInvocationOutput.builder().When the
Consumercompletes,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:
-