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