CategoricalRatingOption Struct
A categorical rating scale option for custom evaluators.
Categorical scales define discrete labels 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 categoricalRatingOption: bedrock_agentcore_alpha.CategoricalRatingOption = {
definition: 'definition',
label: 'label',
};
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
// 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();
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"
};
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
The description that explains what this rating represents.
example
ts
'The response fully addresses the user query with accurate information.'
The label for this rating option.
example
ts
'Good'