Interface UpdateEvaluatorRequest.Builder

  • Method Details

    • clientToken

      UpdateEvaluatorRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.

      Parameters:
      clientToken - A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluatorId

      UpdateEvaluatorRequest.Builder evaluatorId(String evaluatorId)

      The unique identifier of the evaluator to update.

      Parameters:
      evaluatorId - The unique identifier of the evaluator to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      UpdateEvaluatorRequest.Builder description(String description)

      The updated description of the evaluator.

      Parameters:
      description - The updated description of the evaluator.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluatorConfig

      UpdateEvaluatorRequest.Builder evaluatorConfig(EvaluatorConfig evaluatorConfig)

      The updated configuration for the evaluator, including LLM-as-a-Judge settings with instructions, rating scale, and model configuration.

      Parameters:
      evaluatorConfig - The updated configuration for the evaluator, including LLM-as-a-Judge settings with instructions, rating scale, and model configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluatorConfig

      default UpdateEvaluatorRequest.Builder evaluatorConfig(Consumer<EvaluatorConfig.Builder> evaluatorConfig)

      The updated configuration for the evaluator, including LLM-as-a-Judge settings with instructions, rating scale, and model configuration.

      This is a convenience method that creates an instance of the EvaluatorConfig.Builder avoiding the need to create one manually via EvaluatorConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to evaluatorConfig(EvaluatorConfig).

      Parameters:
      evaluatorConfig - a consumer that will call methods on EvaluatorConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • level

      The updated evaluation level (TOOL_CALL, TRACE, or SESSION) that determines the scope of evaluation.

      Parameters:
      level - The updated evaluation level (TOOL_CALL, TRACE, or SESSION) that determines the scope of evaluation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • level

      The updated evaluation level (TOOL_CALL, TRACE, or SESSION) that determines the scope of evaluation.

      Parameters:
      level - The updated evaluation level (TOOL_CALL, TRACE, or SESSION) that determines the scope of evaluation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      UpdateEvaluatorRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.