asToolUse

fun asToolUse(): <Error class: unknown class>

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