Skip to content
v2.278.0

NumericalRatingOption Struct ​

A numerical rating scale option for custom evaluators.

Numerical scales define labeled numeric values for scoring agent performance.

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 ​

definitionstringdefinitionstrdefinitionStringDefinitionstringDefinition*string required #
The description that explains what this numerical rating represents.
example
ts
'The response is comprehensive, accurate, and well-structured.'
labelstringlabelstrlabelStringLabelstringLabel*string required #
The label for this rating option.
example
ts
'Excellent'
valuenumbervalueint | floatvalueNumberValuedoubleValue*float64 required #
The numerical value for this rating scale option.
example
ts
5