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

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

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

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



/**
 * Content block start information.
 */
public sealed class ContentBlockStart {
    /**
     * Information about a tool that the model is requesting to use.
     */
    public data class ToolUse(val value: aws.sdk.kotlin.services.bedrockruntime.model.ToolUseBlockStart) : aws.sdk.kotlin.services.bedrockruntime.model.ContentBlockStart() {
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy