Interface OutputConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OutputConfig.Builder,,OutputConfig> SdkBuilder<OutputConfig.Builder,,OutputConfig> SdkPojo
- Enclosing class:
OutputConfig
-
Method Summary
Modifier and TypeMethodDescriptionThe effort level for the model to use when generating a response.default OutputConfig.BuildertextFormat(Consumer<OutputFormat.Builder> textFormat) Structured output parameters to control the model's text response.textFormat(OutputFormat textFormat) Structured output parameters to control the model's text response.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, sdkFieldNameToField, sdkFields
-
Method Details
-
textFormat
Structured output parameters to control the model's text response.
- Parameters:
textFormat- Structured output parameters to control the model's text response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textFormat
Structured output parameters to control the model's text response.
This is a convenience method that creates an instance of theOutputFormat.Builderavoiding the need to create one manually viaOutputFormat.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totextFormat(OutputFormat).- Parameters:
textFormat- a consumer that will call methods onOutputFormat.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
effort
The effort level for the model to use when generating a response. Higher effort levels allow the model to spend more time reasoning before responding. Supported values are
low,medium,high,xhigh, andmax.When extended thinking is disabled, the effort level is capped at
high. Use efforthighor below, or enable thinking to use higher effort levels.- Parameters:
effort- The effort level for the model to use when generating a response. Higher effort levels allow the model to spend more time reasoning before responding. Supported values arelow,medium,high,xhigh, andmax.When extended thinking is disabled, the effort level is capped at
high. Use efforthighor below, or enable thinking to use higher effort levels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-