commonMain.aws.sdk.kotlin.services.bedrockagent.model.PromptInferenceConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrockagent-jvm Show documentation
Show all versions of bedrockagent-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock Agent
// 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
}