Interface SystemPromptRecommendationConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SystemPromptRecommendationConfig.Builder,,SystemPromptRecommendationConfig> SdkBuilder<SystemPromptRecommendationConfig.Builder,,SystemPromptRecommendationConfig> SdkPojo
- Enclosing class:
SystemPromptRecommendationConfig
-
Method Summary
Modifier and TypeMethodDescriptionagentTraces(Consumer<AgentTracesConfig.Builder> agentTraces) The agent traces to analyze for generating recommendations.agentTraces(AgentTracesConfig agentTraces) The agent traces to analyze for generating recommendations.evaluationConfig(Consumer<RecommendationEvaluationConfig.Builder> evaluationConfig) The evaluation configuration specifying which evaluator to use for assessing recommendation quality.evaluationConfig(RecommendationEvaluationConfig evaluationConfig) The evaluation configuration specifying which evaluator to use for assessing recommendation quality.systemPrompt(Consumer<SystemPromptConfig.Builder> systemPrompt) The current system prompt to optimize.systemPrompt(SystemPromptConfig systemPrompt) The current system prompt to optimize.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
-
systemPrompt
The current system prompt to optimize.
- Parameters:
systemPrompt- The current system prompt to optimize.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemPrompt
default SystemPromptRecommendationConfig.Builder systemPrompt(Consumer<SystemPromptConfig.Builder> systemPrompt) The current system prompt to optimize.
This is a convenience method that creates an instance of theSystemPromptConfig.Builderavoiding the need to create one manually viaSystemPromptConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosystemPrompt(SystemPromptConfig).- Parameters:
systemPrompt- a consumer that will call methods onSystemPromptConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agentTraces
The agent traces to analyze for generating recommendations.
- Parameters:
agentTraces- The agent traces to analyze for generating recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentTraces
default SystemPromptRecommendationConfig.Builder agentTraces(Consumer<AgentTracesConfig.Builder> agentTraces) The agent traces to analyze for generating recommendations.
This is a convenience method that creates an instance of theAgentTracesConfig.Builderavoiding the need to create one manually viaAgentTracesConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagentTraces(AgentTracesConfig).- Parameters:
agentTraces- a consumer that will call methods onAgentTracesConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluationConfig
SystemPromptRecommendationConfig.Builder evaluationConfig(RecommendationEvaluationConfig evaluationConfig) The evaluation configuration specifying which evaluator to use for assessing recommendation quality.
- Parameters:
evaluationConfig- The evaluation configuration specifying which evaluator to use for assessing recommendation quality.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationConfig
default SystemPromptRecommendationConfig.Builder evaluationConfig(Consumer<RecommendationEvaluationConfig.Builder> evaluationConfig) The evaluation configuration specifying which evaluator to use for assessing recommendation quality.
This is a convenience method that creates an instance of theRecommendationEvaluationConfig.Builderavoiding the need to create one manually viaRecommendationEvaluationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluationConfig(RecommendationEvaluationConfig).- Parameters:
evaluationConfig- a consumer that will call methods onRecommendationEvaluationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-