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

commonMain.aws.sdk.kotlin.services.bedrockruntime.model.ConverseOutput.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.bedrockruntime.model



/**
 * The output from a call to [Converse](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html).
 */
public sealed class ConverseOutput {
    /**
     * The message that the model generates.
     */
    public data class Message(val value: aws.sdk.kotlin.services.bedrockruntime.model.Message) : aws.sdk.kotlin.services.bedrockruntime.model.ConverseOutput() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.bedrockruntime.model.ConverseOutput() {
    }

    /**
     * Casts this [ConverseOutput] as a [Message] and retrieves its [aws.sdk.kotlin.services.bedrockruntime.model.Message] value. Throws an exception if the [ConverseOutput] is not a
     * [Message].
     */
    public fun asMessage(): aws.sdk.kotlin.services.bedrockruntime.model.Message = (this as ConverseOutput.Message).value

    /**
     * Casts this [ConverseOutput] as a [Message] and retrieves its [aws.sdk.kotlin.services.bedrockruntime.model.Message] value. Returns null if the [ConverseOutput] is not a [Message].
     */
    public fun asMessageOrNull(): aws.sdk.kotlin.services.bedrockruntime.model.Message? = (this as? ConverseOutput.Message)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy