# EvaluatorInferenceConfig

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

Controls how the foundation model generates evaluation responses.

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

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

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

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

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

## Properties

- `maxTokens`: number — The maximum number of tokens to generate in the model response.

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

- `temperature`: number — 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.

- `topP`: number — 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.
