Interface EvaluationReferenceInput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EvaluationReferenceInput.Builder,,EvaluationReferenceInput> SdkBuilder<EvaluationReferenceInput.Builder,,EvaluationReferenceInput> SdkPojo
- Enclosing class:
EvaluationReferenceInput
-
Method Summary
Modifier and TypeMethodDescriptionassertions(Collection<EvaluationContent> assertions) A list of assertion statements for session-level evaluation.assertions(Consumer<EvaluationContent.Builder>... assertions) A list of assertion statements for session-level evaluation.assertions(EvaluationContent... assertions) A list of assertion statements for session-level evaluation.default EvaluationReferenceInput.Buildercontext(Consumer<Context.Builder> context) The span context that identifies which session or trace this reference input applies to, used for correlating ground truth with agent output.The span context that identifies which session or trace this reference input applies to, used for correlating ground truth with agent output.default EvaluationReferenceInput.BuilderexpectedResponse(Consumer<EvaluationContent.Builder> expectedResponse) The expected response for trace-level evaluation.expectedResponse(EvaluationContent expectedResponse) The expected response for trace-level evaluation.default EvaluationReferenceInput.BuilderexpectedTrajectory(Consumer<EvaluationExpectedTrajectory.Builder> expectedTrajectory) The expected tool call sequence for session-level trajectory evaluation.expectedTrajectory(EvaluationExpectedTrajectory expectedTrajectory) The expected tool call sequence for session-level trajectory evaluation.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
-
context
The span context that identifies which session or trace this reference input applies to, used for correlating ground truth with agent output.
- Parameters:
context- The span context that identifies which session or trace this reference input applies to, used for correlating ground truth with agent output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
context
The span context that identifies which session or trace this reference input applies to, used for correlating ground truth with agent output.
This is a convenience method that creates an instance of theContext.Builderavoiding the need to create one manually viaContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontext(Context).- Parameters:
context- a consumer that will call methods onContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expectedResponse
The expected response for trace-level evaluation. Built-in evaluators that support this field compare the agent's actual response against this value for assessment. Custom evaluators can access it through the
{expected_response}placeholder in their instructions.- Parameters:
expectedResponse- The expected response for trace-level evaluation. Built-in evaluators that support this field compare the agent's actual response against this value for assessment. Custom evaluators can access it through the{expected_response}placeholder in their instructions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedResponse
default EvaluationReferenceInput.Builder expectedResponse(Consumer<EvaluationContent.Builder> expectedResponse) The expected response for trace-level evaluation. Built-in evaluators that support this field compare the agent's actual response against this value for assessment. Custom evaluators can access it through the
This is a convenience method that creates an instance of the{expected_response}placeholder in their instructions.EvaluationContent.Builderavoiding the need to create one manually viaEvaluationContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexpectedResponse(EvaluationContent).- Parameters:
expectedResponse- a consumer that will call methods onEvaluationContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
assertions
A list of assertion statements for session-level evaluation. Each assertion describes an expected behavior or outcome the agent should demonstrate during the session.
- Parameters:
assertions- A list of assertion statements for session-level evaluation. Each assertion describes an expected behavior or outcome the agent should demonstrate during the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assertions
A list of assertion statements for session-level evaluation. Each assertion describes an expected behavior or outcome the agent should demonstrate during the session.
- Parameters:
assertions- A list of assertion statements for session-level evaluation. Each assertion describes an expected behavior or outcome the agent should demonstrate during the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assertions
A list of assertion statements for session-level evaluation. Each assertion describes an expected behavior or outcome the agent should demonstrate during the session.
This is a convenience method that creates an instance of theEvaluationContent.Builderavoiding the need to create one manually viaEvaluationContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassertions(List<EvaluationContent>).- Parameters:
assertions- a consumer that will call methods onEvaluationContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expectedTrajectory
EvaluationReferenceInput.Builder expectedTrajectory(EvaluationExpectedTrajectory expectedTrajectory) The expected tool call sequence for session-level trajectory evaluation. Contains a list of tool names representing the tools the agent is expected to invoke.
- Parameters:
expectedTrajectory- The expected tool call sequence for session-level trajectory evaluation. Contains a list of tool names representing the tools the agent is expected to invoke.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedTrajectory
default EvaluationReferenceInput.Builder expectedTrajectory(Consumer<EvaluationExpectedTrajectory.Builder> expectedTrajectory) The expected tool call sequence for session-level trajectory evaluation. Contains a list of tool names representing the tools the agent is expected to invoke.
This is a convenience method that creates an instance of theEvaluationExpectedTrajectory.Builderavoiding the need to create one manually viaEvaluationExpectedTrajectory.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexpectedTrajectory(EvaluationExpectedTrajectory).- Parameters:
expectedTrajectory- a consumer that will call methods onEvaluationExpectedTrajectory.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-