All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.bedrockagent.model.PromptInferenceConfiguration.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.bedrockagent.model



/**
 * Contains inference configurations for the prompt.
 */
public sealed class PromptInferenceConfiguration {
    /**
     * Contains inference configurations for a text prompt.
     */
    public data class Text(val value: aws.sdk.kotlin.services.bedrockagent.model.PromptModelInferenceConfiguration) : aws.sdk.kotlin.services.bedrockagent.model.PromptInferenceConfiguration() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.bedrockagent.model.PromptInferenceConfiguration() {
    }

    /**
     * Casts this [PromptInferenceConfiguration] as a [Text] and retrieves its [aws.sdk.kotlin.services.bedrockagent.model.PromptModelInferenceConfiguration] value. Throws an exception if the [PromptInferenceConfiguration] is not a
     * [Text].
     */
    public fun asText(): aws.sdk.kotlin.services.bedrockagent.model.PromptModelInferenceConfiguration = (this as PromptInferenceConfiguration.Text).value

    /**
     * Casts this [PromptInferenceConfiguration] as a [Text] and retrieves its [aws.sdk.kotlin.services.bedrockagent.model.PromptModelInferenceConfiguration] value. Returns null if the [PromptInferenceConfiguration] is not a [Text].
     */
    public fun asTextOrNull(): aws.sdk.kotlin.services.bedrockagent.model.PromptModelInferenceConfiguration? = (this as? PromptInferenceConfiguration.Text)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy