Interface PostProcessingModelInvocationOutput.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PostProcessingModelInvocationOutput.Builder,PostProcessingModelInvocationOutput>,SdkBuilder<PostProcessingModelInvocationOutput.Builder,PostProcessingModelInvocationOutput>,SdkPojo
- Enclosing class:
- PostProcessingModelInvocationOutput
@Mutable @NotThreadSafe public static interface PostProcessingModelInvocationOutput.Builder extends SdkPojo, CopyableBuilder<PostProcessingModelInvocationOutput.Builder,PostProcessingModelInvocationOutput>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PostProcessingModelInvocationOutput.Buildermetadata(Consumer<Metadata.Builder> metadata)Contains information about the foundation model output from the post-processing step.PostProcessingModelInvocationOutput.Buildermetadata(Metadata metadata)Contains information about the foundation model output from the post-processing step.default PostProcessingModelInvocationOutput.BuilderparsedResponse(Consumer<PostProcessingParsedResponse.Builder> parsedResponse)Details about the response from the Lambda parsing of the output of the post-processing step.PostProcessingModelInvocationOutput.BuilderparsedResponse(PostProcessingParsedResponse parsedResponse)Details about the response from the Lambda parsing of the output of the post-processing step.default PostProcessingModelInvocationOutput.BuilderrawResponse(Consumer<RawResponse.Builder> rawResponse)Details of the raw response from the foundation model output.PostProcessingModelInvocationOutput.BuilderrawResponse(RawResponse rawResponse)Details of the raw response from the foundation model output.default PostProcessingModelInvocationOutput.BuilderreasoningContent(Consumer<ReasoningContentBlock.Builder> reasoningContent)Contains content about the reasoning that the model made during the post-processing step.PostProcessingModelInvocationOutput.BuilderreasoningContent(ReasoningContentBlock reasoningContent)Contains content about the reasoning that the model made during the post-processing step.PostProcessingModelInvocationOutput.BuildertraceId(String traceId)The unique identifier of the trace.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
traceId
PostProcessingModelInvocationOutput.Builder traceId(String traceId)
The unique identifier of the trace.
- Parameters:
traceId- The unique identifier of the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parsedResponse
PostProcessingModelInvocationOutput.Builder parsedResponse(PostProcessingParsedResponse parsedResponse)
Details about the response from the Lambda parsing of the output of the post-processing step.
- Parameters:
parsedResponse- Details about the response from the Lambda parsing of the output of the post-processing step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parsedResponse
default PostProcessingModelInvocationOutput.Builder parsedResponse(Consumer<PostProcessingParsedResponse.Builder> parsedResponse)
Details about the response from the Lambda parsing of the output of the post-processing step.
This is a convenience method that creates an instance of thePostProcessingParsedResponse.Builderavoiding the need to create one manually viaPostProcessingParsedResponse.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toparsedResponse(PostProcessingParsedResponse).- Parameters:
parsedResponse- a consumer that will call methods onPostProcessingParsedResponse.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
parsedResponse(PostProcessingParsedResponse)
-
rawResponse
PostProcessingModelInvocationOutput.Builder rawResponse(RawResponse rawResponse)
Details of the raw response from the foundation model output.
- Parameters:
rawResponse- Details of the raw response from the foundation model output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rawResponse
default PostProcessingModelInvocationOutput.Builder rawResponse(Consumer<RawResponse.Builder> rawResponse)
Details of the raw response from the foundation model output.
This is a convenience method that creates an instance of theRawResponse.Builderavoiding the need to create one manually viaRawResponse.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torawResponse(RawResponse).- Parameters:
rawResponse- a consumer that will call methods onRawResponse.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
rawResponse(RawResponse)
-
metadata
PostProcessingModelInvocationOutput.Builder metadata(Metadata metadata)
Contains information about the foundation model output from the post-processing step.
- Parameters:
metadata- Contains information about the foundation model output from the post-processing step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
default PostProcessingModelInvocationOutput.Builder metadata(Consumer<Metadata.Builder> metadata)
Contains information about the foundation model output from the post-processing step.
This is a convenience method that creates an instance of theMetadata.Builderavoiding the need to create one manually viaMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometadata(Metadata).- Parameters:
metadata- a consumer that will call methods onMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
metadata(Metadata)
-
reasoningContent
PostProcessingModelInvocationOutput.Builder reasoningContent(ReasoningContentBlock reasoningContent)
Contains content about the reasoning that the model made during the post-processing step.
- Parameters:
reasoningContent- Contains content about the reasoning that the model made during the post-processing step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reasoningContent
default PostProcessingModelInvocationOutput.Builder reasoningContent(Consumer<ReasoningContentBlock.Builder> reasoningContent)
Contains content about the reasoning that the model made during the post-processing step.
This is a convenience method that creates an instance of theReasoningContentBlock.Builderavoiding the need to create one manually viaReasoningContentBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreasoningContent(ReasoningContentBlock).- Parameters:
reasoningContent- a consumer that will call methods onReasoningContentBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
reasoningContent(ReasoningContentBlock)
-
-