# NumericalRatingOption

A numerical rating scale option for custom evaluators.

Numerical scales define labeled numeric values for scoring agent performance.

Used as argument in: [EvaluatorRatingScale.numerical](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.EvaluatorRatingScale.html#numerical)

- Source: [`lib/evaluation/types.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/evaluation/types.ts#L455)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `definition`: string (required) — The description that explains what this numerical rating represents.

  ```ts
  'The response is comprehensive, accurate, and well-structured.'
  ```

- `label`: string (required) — The label for this rating option.

  ```ts
  'Excellent'
  ```

- `value`: number (required) — The numerical value for this rating scale option.

  ```ts
  5
  ```
