NumericalRatingOption Struct
A numerical rating scale option for custom evaluators.
Numerical scales define labeled numeric values for scoring agent performance.
| Source | lib/evaluation/types.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const numericalRatingOption: bedrock_agentcore_alpha.NumericalRatingOption = {
definition: 'definition',
label: 'label',
value: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
numerical_rating_option = bedrock_agentcore_alpha.NumericalRatingOption(
definition="definition",
label="label",
value=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;
NumericalRatingOption numericalRatingOption = NumericalRatingOption.builder()
.definition("definition")
.label("label")
.value(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
var numericalRatingOption = new NumericalRatingOption {
Definition = "definition",
Label = "label",
Value = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
numericalRatingOption := &NumericalRatingOption{
Definition: jsii.String("definition"),
Label: jsii.String("label"),
Value: jsii.Number(123),
}
Properties
The description that explains what this numerical rating represents.
example
ts
'The response is comprehensive, accurate, and well-structured.'
The label for this rating option.
example
ts
'Excellent'
The numerical value for this rating scale option.
example
ts
5