
commonMain.aws.sdk.kotlin.services.bedrock.model.EvaluationInferenceConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrock.model
/**
* Used to define the models you want used in your model evaluation job. Automated model evaluation jobs support only a single model. In a human-based model evaluation job, your annotator can compare the responses for up to two different models.
*/
public sealed class EvaluationInferenceConfig {
/**
* Used to specify the models.
*/
public data class Models(val value: List) : aws.sdk.kotlin.services.bedrock.model.EvaluationInferenceConfig() {
}
public object SdkUnknown : aws.sdk.kotlin.services.bedrock.model.EvaluationInferenceConfig() {
}
/**
* Casts this [EvaluationInferenceConfig] as a [Models] and retrieves its [List] value. Throws an exception if the [EvaluationInferenceConfig] is not a
* [Models].
*/
public fun asModels(): List = (this as EvaluationInferenceConfig.Models).value
/**
* Casts this [EvaluationInferenceConfig] as a [Models] and retrieves its [List] value. Returns null if the [EvaluationInferenceConfig] is not a [Models].
*/
public fun asModelsOrNull(): List? = (this as? EvaluationInferenceConfig.Models)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy