Interface EvaluateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreRequest.Builder,Buildable,CopyableBuilder<EvaluateRequest.Builder,,EvaluateRequest> SdkBuilder<EvaluateRequest.Builder,,EvaluateRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
EvaluateRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault EvaluateRequest.BuilderevaluationInput(Consumer<EvaluationInput.Builder> evaluationInput) The input data containing agent session spans to be evaluated.evaluationInput(EvaluationInput evaluationInput) The input data containing agent session spans to be evaluated.default EvaluateRequest.BuilderevaluationTarget(Consumer<EvaluationTarget.Builder> evaluationTarget) The specific trace or span IDs to evaluate within the provided input.evaluationTarget(EvaluationTarget evaluationTarget) The specific trace or span IDs to evaluate within the provided input.evaluatorId(String evaluatorId) The unique identifier of the evaluator to use for scoring.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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
-
evaluatorId
The unique identifier of the evaluator to use for scoring. Can be a built-in evaluator (e.g.,
Builtin.Helpfulness,Builtin.Correctness) or a custom evaluator ARN created through the control plane API.- Parameters:
evaluatorId- The unique identifier of the evaluator to use for scoring. Can be a built-in evaluator (e.g.,Builtin.Helpfulness,Builtin.Correctness) or a custom evaluator ARN created through the control plane API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationInput
The input data containing agent session spans to be evaluated. Includes a list of spans in OpenTelemetry format from supported frameworks like Strands (AgentCore Runtime) or LangGraph with OpenInference instrumentation.
- Parameters:
evaluationInput- The input data containing agent session spans to be evaluated. Includes a list of spans in OpenTelemetry format from supported frameworks like Strands (AgentCore Runtime) or LangGraph with OpenInference instrumentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationInput
The input data containing agent session spans to be evaluated. Includes a list of spans in OpenTelemetry format from supported frameworks like Strands (AgentCore Runtime) or LangGraph with OpenInference instrumentation.
This is a convenience method that creates an instance of theEvaluationInput.Builderavoiding the need to create one manually viaEvaluationInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluationInput(EvaluationInput).- Parameters:
evaluationInput- a consumer that will call methods onEvaluationInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluationTarget
The specific trace or span IDs to evaluate within the provided input. Allows targeting evaluation at different levels: individual tool calls, single request-response interactions (traces), or entire conversation sessions.
- Parameters:
evaluationTarget- The specific trace or span IDs to evaluate within the provided input. Allows targeting evaluation at different levels: individual tool calls, single request-response interactions (traces), or entire conversation sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationTarget
default EvaluateRequest.Builder evaluationTarget(Consumer<EvaluationTarget.Builder> evaluationTarget) The specific trace or span IDs to evaluate within the provided input. Allows targeting evaluation at different levels: individual tool calls, single request-response interactions (traces), or entire conversation sessions.
This is a convenience method that creates an instance of theEvaluationTarget.Builderavoiding the need to create one manually viaEvaluationTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluationTarget(EvaluationTarget).- Parameters:
evaluationTarget- a consumer that will call methods onEvaluationTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
EvaluateRequest.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
EvaluateRequest.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.
-