commonMain.aws.sdk.kotlin.services.bedrockagent.model.SystemContentBlock.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 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