asToolUseOrNull

fun asToolUseOrNull(): <Error class: unknown class>?

Casts this AssistantMessageBlock as a ToolUse and retrieves its aws.smithy.kotlin.runtime.content.Document value. Returns null if the AssistantMessageBlock is not a ToolUse.