Interface DatasetExperimentConfig.Builder

  • Method Details

    • executionRoleArn

      DatasetExperimentConfig.Builder executionRoleArn(String executionRoleArn)

      The ARN of the IAM role that the service assumes to perform hosted runs and write run records.

      Parameters:
      executionRoleArn - The ARN of the IAM role that the service assumes to perform hosted runs and write run records.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultsLogGroup

      DatasetExperimentConfig.Builder resultsLogGroup(String resultsLogGroup)

      The name of a Standard-class log group in the caller's account for run results. Each run writes to its own log stream in it.

      Parameters:
      resultsLogGroup - The name of a Standard-class log group in the caller's account for run results. Each run writes to its own log stream in it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • traceLogGroups

      DatasetExperimentConfig.Builder traceLogGroups(Collection<String> traceLogGroups)

      The log groups that contain the target's spans, if they are not in aws/spans. 1 to 10 log groups.

      Parameters:
      traceLogGroups - The log groups that contain the target's spans, if they are not in aws/spans. 1 to 10 log groups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • traceLogGroups

      DatasetExperimentConfig.Builder traceLogGroups(String... traceLogGroups)

      The log groups that contain the target's spans, if they are not in aws/spans. 1 to 10 log groups.

      Parameters:
      traceLogGroups - The log groups that contain the target's spans, if they are not in aws/spans. 1 to 10 log groups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • collectTraceStats

      DatasetExperimentConfig.Builder collectTraceStats(Boolean collectTraceStats)

      Whether to collect statistics from the agent's spans after each run ends. When true, the service collects them for the run's cases (models, tools, calls, tokens, latency, and failures) and includes them on the run as traceStats. When absent or false, runs have no trace stats.

      When true, the execution role needs telemetry query permissions, and the queries are billed to the caller's account. The service verifies the role's access when this is set: the call fails with TRACE_STATS_ACCESS_DENIED if access is denied, with TRACE_STATS_CHECK_FAILED if the check fails for another reason, and with TRACE_STATS_UNAVAILABLE where trace stats are not yet available.

      Parameters:
      collectTraceStats - Whether to collect statistics from the agent's spans after each run ends. When true, the service collects them for the run's cases (models, tools, calls, tokens, latency, and failures) and includes them on the run as traceStats. When absent or false, runs have no trace stats.

      When true, the execution role needs telemetry query permissions, and the queries are billed to the caller's account. The service verifies the role's access when this is set: the call fails with TRACE_STATS_ACCESS_DENIED if access is denied, with TRACE_STATS_CHECK_FAILED if the check fails for another reason, and with TRACE_STATS_UNAVAILABLE where trace stats are not yet available.

      Returns:
      Returns a reference to this object so that method calls can be chained together.