Interface PreProcessingTrace.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PreProcessingTrace.Builder,,PreProcessingTrace> SdkBuilder<PreProcessingTrace.Builder,,PreProcessingTrace> SdkPojo
- Enclosing class:
PreProcessingTrace
-
Method Summary
Modifier and TypeMethodDescriptiondefault PreProcessingTrace.BuildermodelInvocationInput(Consumer<ModelInvocationInput.Builder> modelInvocationInput) The input for the pre-processing step.modelInvocationInput(ModelInvocationInput modelInvocationInput) The input for the pre-processing step.default PreProcessingTrace.BuildermodelInvocationOutput(Consumer<PreProcessingModelInvocationOutput.Builder> modelInvocationOutput) The foundation model output from the pre-processing step.modelInvocationOutput(PreProcessingModelInvocationOutput modelInvocationOutput) The foundation model output from the pre-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 pre-processing step.
-
The
typeisPRE_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 pre-processing step.-
The
typeisPRE_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 PreProcessingTrace.Builder modelInvocationInput(Consumer<ModelInvocationInput.Builder> modelInvocationInput) The input for the pre-processing step.
-
The
typeisPRE_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
PreProcessingTrace.Builder modelInvocationOutput(PreProcessingModelInvocationOutput modelInvocationOutput) The foundation model output from the pre-processing step.
- Parameters:
modelInvocationOutput- The foundation model output from the pre-processing step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelInvocationOutput
default PreProcessingTrace.Builder modelInvocationOutput(Consumer<PreProcessingModelInvocationOutput.Builder> modelInvocationOutput) The foundation model output from the pre-processing step.
This is a convenience method that creates an instance of thePreProcessingModelInvocationOutput.Builderavoiding the need to create one manually viaPreProcessingModelInvocationOutput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelInvocationOutput(PreProcessingModelInvocationOutput).- Parameters:
modelInvocationOutput- a consumer that will call methods onPreProcessingModelInvocationOutput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-