CfnEvaluatorMixinProps

class aws_cdk.mixins_preview.aws_bedrockagentcore.mixins.CfnEvaluatorMixinProps(*, description=None, evaluator_config=None, evaluator_name=None, level=None, tags=None)

Bases: object

Properties for CfnEvaluatorPropsMixin.

Parameters:
  • description (Optional[str]) – The description of the evaluator.

  • evaluator_config (Union[IResolvable, EvaluatorConfigProperty, Dict[str, Any], None]) – The configuration that defines how an evaluator assesses agent performance.

  • evaluator_name (Optional[str]) – The name of the evaluator. Must be unique within your account.

  • level (Optional[str])

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – A list of tags to assign to the evaluator.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-evaluator.html

ExampleMetadata:

fixture=_generated

Example:

from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins

# additional_model_request_fields: Any

cfn_evaluator_mixin_props = bedrockagentcore_mixins.CfnEvaluatorMixinProps(
    description="description",
    evaluator_config=bedrockagentcore_mixins.CfnEvaluatorPropsMixin.EvaluatorConfigProperty(
        llm_as_aJudge=bedrockagentcore_mixins.CfnEvaluatorPropsMixin.LlmAsAJudgeEvaluatorConfigProperty(
            instructions="instructions",
            model_config=bedrockagentcore_mixins.CfnEvaluatorPropsMixin.EvaluatorModelConfigProperty(
                bedrock_evaluator_model_config=bedrockagentcore_mixins.CfnEvaluatorPropsMixin.BedrockEvaluatorModelConfigProperty(
                    additional_model_request_fields=additional_model_request_fields,
                    inference_config=bedrockagentcore_mixins.CfnEvaluatorPropsMixin.InferenceConfigurationProperty(
                        max_tokens=123,
                        temperature=123,
                        top_p=123
                    ),
                    model_id="modelId"
                )
            ),
            rating_scale=bedrockagentcore_mixins.CfnEvaluatorPropsMixin.RatingScaleProperty(
                categorical=[bedrockagentcore_mixins.CfnEvaluatorPropsMixin.CategoricalScaleDefinitionProperty(
                    definition="definition",
                    label="label"
                )],
                numerical=[bedrockagentcore_mixins.CfnEvaluatorPropsMixin.NumericalScaleDefinitionProperty(
                    definition="definition",
                    label="label",
                    value=123
                )]
            )
        )
    ),
    evaluator_name="evaluatorName",
    level="level",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

description

The description of the evaluator.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-evaluator.html#cfn-bedrockagentcore-evaluator-description

evaluator_config

The configuration that defines how an evaluator assesses agent performance.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-evaluator.html#cfn-bedrockagentcore-evaluator-evaluatorconfig

evaluator_name

The name of the evaluator.

Must be unique within your account.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-evaluator.html#cfn-bedrockagentcore-evaluator-evaluatorname

level

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-evaluator.html#cfn-bedrockagentcore-evaluator-level

Type:

see

tags

A list of tags to assign to the evaluator.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-evaluator.html#cfn-bedrockagentcore-evaluator-tags