Interface CreateEvaluatorRequest.Builder

  • Method Details

    • clientToken

      CreateEvaluatorRequest.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.
    • evaluatorName

      CreateEvaluatorRequest.Builder evaluatorName(String evaluatorName)

      The name of the evaluator. Must be unique within your account.

      Parameters:
      evaluatorName - The name of the evaluator. Must be unique within your account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      CreateEvaluatorRequest.Builder description(String description)

      The description of the evaluator that explains its purpose and evaluation criteria.

      Parameters:
      description - The description of the evaluator that explains its purpose and evaluation criteria.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluatorConfig

      CreateEvaluatorRequest.Builder evaluatorConfig(EvaluatorConfig evaluatorConfig)

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

      Parameters:
      evaluatorConfig - The 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 CreateEvaluatorRequest.Builder evaluatorConfig(Consumer<EvaluatorConfig.Builder> evaluatorConfig)

      The 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 evaluation level that determines the scope of evaluation. Valid values are TOOL_CALL for individual tool invocations, TRACE for single request-response interactions, or SESSION for entire conversation sessions.

      Parameters:
      level - The evaluation level that determines the scope of evaluation. Valid values are TOOL_CALL for individual tool invocations, TRACE for single request-response interactions, or SESSION for entire conversation sessions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • level

      The evaluation level that determines the scope of evaluation. Valid values are TOOL_CALL for individual tool invocations, TRACE for single request-response interactions, or SESSION for entire conversation sessions.

      Parameters:
      level - The evaluation level that determines the scope of evaluation. Valid values are TOOL_CALL for individual tool invocations, TRACE for single request-response interactions, or SESSION for entire conversation sessions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      CreateEvaluatorRequest.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.