Interface StartRecommendationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreRequest.Builder,Buildable,CopyableBuilder<StartRecommendationRequest.Builder,,StartRecommendationRequest> SdkBuilder<StartRecommendationRequest.Builder,,StartRecommendationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartRecommendationRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.description(String description) The description of the recommendation.The name of the recommendation.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.recommendationConfig(Consumer<RecommendationConfig.Builder> recommendationConfig) The configuration for the recommendation, including the input to optimize, agent traces to analyze, and evaluation settings.recommendationConfig(RecommendationConfig recommendationConfig) The configuration for the recommendation, including the input to optimize, agent traces to analyze, and evaluation settings.The type of recommendation to generate.type(RecommendationType type) The type of recommendation to generate.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreRequest.Builder
buildMethods 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
-
name
The name of the recommendation. Must be unique within your account.
- Parameters:
name- The name of the recommendation. Must be unique within your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the recommendation.
- Parameters:
description- The description of the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of recommendation to generate. Valid values are
SYSTEM_PROMPT_RECOMMENDATIONfor system prompt optimization orTOOL_DESCRIPTION_RECOMMENDATIONfor tool description optimization.- Parameters:
type- The type of recommendation to generate. Valid values areSYSTEM_PROMPT_RECOMMENDATIONfor system prompt optimization orTOOL_DESCRIPTION_RECOMMENDATIONfor tool description optimization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of recommendation to generate. Valid values are
SYSTEM_PROMPT_RECOMMENDATIONfor system prompt optimization orTOOL_DESCRIPTION_RECOMMENDATIONfor tool description optimization.- Parameters:
type- The type of recommendation to generate. Valid values areSYSTEM_PROMPT_RECOMMENDATIONfor system prompt optimization orTOOL_DESCRIPTION_RECOMMENDATIONfor tool description optimization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendationConfig
The configuration for the recommendation, including the input to optimize, agent traces to analyze, and evaluation settings.
- Parameters:
recommendationConfig- The configuration for the recommendation, including the input to optimize, agent traces to analyze, and evaluation settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationConfig
default StartRecommendationRequest.Builder recommendationConfig(Consumer<RecommendationConfig.Builder> recommendationConfig) The configuration for the recommendation, including the input to optimize, agent traces to analyze, and evaluation settings.
This is a convenience method that creates an instance of theRecommendationConfig.Builderavoiding the need to create one manually viaRecommendationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecommendationConfig(RecommendationConfig).- Parameters:
recommendationConfig- a consumer that will call methods onRecommendationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartRecommendationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartRecommendationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-