Interface PreProcessingTrace.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<PreProcessingTrace.Builder,PreProcessingTrace>
,SdkBuilder<PreProcessingTrace.Builder,PreProcessingTrace>
,SdkPojo
- Enclosing class:
- PreProcessingTrace
public static interface PreProcessingTrace.Builder extends SdkPojo, CopyableBuilder<PreProcessingTrace.Builder,PreProcessingTrace>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PreProcessingTrace.Builder
modelInvocationInput(Consumer<ModelInvocationInput.Builder> modelInvocationInput)
The input for the pre-processing step.PreProcessingTrace.Builder
modelInvocationInput(ModelInvocationInput modelInvocationInput)
The input for the pre-processing step.default PreProcessingTrace.Builder
modelInvocationOutput(Consumer<PreProcessingModelInvocationOutput.Builder> modelInvocationOutput)
The foundation model output from the pre-processing step.PreProcessingTrace.Builder
modelInvocationOutput(PreProcessingModelInvocationOutput modelInvocationOutput)
The foundation model output from the pre-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 Detail
-
modelInvocationInput
PreProcessingTrace.Builder modelInvocationInput(ModelInvocationInput modelInvocationInput)
The input for the pre-processing step.
-
The
type
isPRE_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 pre-processing step.-
The
type
isPRE_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 PreProcessingTrace.Builder modelInvocationInput(Consumer<ModelInvocationInput.Builder> modelInvocationInput)
The input for the pre-processing step.
-
The
type
isPRE_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:
modelInvocationInput(ModelInvocationInput)
-
-
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.Builder
avoiding the need to create one manually viaPreProcessingModelInvocationOutput.builder()
.When the
Consumer
completes,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:
modelInvocationOutput(PreProcessingModelInvocationOutput)
-
-