# CategoricalRatingOption

A categorical rating scale option for custom evaluators.

Categorical scales define discrete labels for scoring agent performance.

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

- 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#L433)

## 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 categoricalRatingOption: bedrock_agentcore_alpha.CategoricalRatingOption = {
  definition: 'definition',
  label: 'label',
};
```

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

categorical_rating_option = bedrock_agentcore_alpha.CategoricalRatingOption(
    definition="definition",
    label="label"
)
```

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.*;

CategoricalRatingOption categoricalRatingOption = CategoricalRatingOption.builder()
        .definition("definition")
        .label("label")
        .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 categoricalRatingOption = new CategoricalRatingOption {
    Definition = "definition",
    Label = "label"
};
```

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"

categoricalRatingOption := &CategoricalRatingOption{
	Definition: jsii.String("definition"),
	Label: jsii.String("label"),
}
```

## Properties

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

  ```ts
  'The response fully addresses the user query with accurate information.'
  ```

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

  ```ts
  'Good'
  ```
