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

commonMain.aws.sdk.kotlin.services.bedrockagent.model.SystemContentBlock.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 a system prompt to provide context to the model or to describe how it should behave. For more information, see [Create a prompt using Prompt management](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html).
 */
public sealed class SystemContentBlock {
    /**
     * The text in the system prompt.
     */
    public data class Text(val value: kotlin.String) : aws.sdk.kotlin.services.bedrockagent.model.SystemContentBlock() {
        override fun toString(): kotlin.String = "SystemContentBlock(*** Sensitive Data Redacted ***)"
    }

    public object SdkUnknown : aws.sdk.kotlin.services.bedrockagent.model.SystemContentBlock() {
        override fun toString(): kotlin.String = "SystemContentBlock(*** Sensitive Data Redacted ***)"
    }

    /**
     * Casts this [SystemContentBlock] as a [Text] and retrieves its [kotlin.String] value. Throws an exception if the [SystemContentBlock] is not a
     * [Text].
     */
    public fun asText(): kotlin.String = (this as SystemContentBlock.Text).value

    /**
     * Casts this [SystemContentBlock] as a [Text] and retrieves its [kotlin.String] value. Returns null if the [SystemContentBlock] is not a [Text].
     */
    public fun asTextOrNull(): kotlin.String? = (this as? SystemContentBlock.Text)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy