interface NumericalRatingOption
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.NumericalRatingOption |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#NumericalRatingOption |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.NumericalRatingOption |
Python | aws_cdk.aws_bedrock_agentcore_alpha.NumericalRatingOption |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป NumericalRatingOption |
A numerical rating scale option for custom evaluators.
Numerical scales define labeled numeric values for scoring agent performance.
Example
// 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,
};
Properties
| Name | Type | Description |
|---|---|---|
| definition | string | The description that explains what this numerical rating represents. |
| label | string | The label for this rating option. |
| value | number | The numerical value for this rating scale option. |
definition
Type:
string
The description that explains what this numerical rating represents. Example
'The response is comprehensive, accurate, and well-structured.'
label
Type:
string
The label for this rating option. Example
'Excellent'
value
Type:
number
The numerical value for this rating scale option. Example
5

.NET
Go
Java
Python
TypeScript (