Skip to content
v2.278.0

EvaluatorInferenceConfig Struct ​

Inference configuration for a custom LLM-as-a-Judge evaluator.

Controls how the foundation model generates evaluation responses.

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 evaluatorInferenceConfig: bedrock_agentcore_alpha.EvaluatorInferenceConfig = {
  maxTokens: 123,
  temperature: 123,
  topP: 123,
};
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

evaluator_inference_config = bedrock_agentcore_alpha.EvaluatorInferenceConfig(
    max_tokens=123,
    temperature=123,
    top_p=123
)
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.*;

EvaluatorInferenceConfig evaluatorInferenceConfig = EvaluatorInferenceConfig.builder()
        .maxTokens(123)
        .temperature(123)
        .topP(123)
        .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 evaluatorInferenceConfig = new EvaluatorInferenceConfig {
    MaxTokens = 123,
    Temperature = 123,
    TopP = 123
};
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"

evaluatorInferenceConfig := &EvaluatorInferenceConfig{
	MaxTokens: jsii.Number(123),
	Temperature: jsii.Number(123),
	TopP: jsii.Number(123),
}

Properties ​

maxTokensoptionalnumbermax_tokensoptionalint | floatmaxTokensoptionalNumberMaxTokensoptionaldoubleMaxTokensoptional*float64 #
The maximum number of tokens to generate in the model response.

Default: The foundation model's default maximum token limit is used

temperatureoptionalnumbertemperatureoptionalint | floattemperatureoptionalNumberTemperatureoptionaldoubleTemperatureoptional*float64 #
The temperature value that controls randomness in the model's responses.

Default: The foundation model's default temperature is used

Higher values produce more diverse outputs. Range: 0.0 to 1.0.

topPoptionalnumbertop_poptionalint | floattopPoptionalNumberTopPoptionaldoubleTopPoptional*float64 #
The top-p sampling parameter that controls the diversity of the model's responses.

Default: The foundation model's default top-p value is used

Range: 0.0 to 1.0.