asToolUse
Casts this HarnessContentBlock as a ToolUse and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessToolUseBlock value. Throws an exception if the HarnessContentBlock is not a ToolUse.
Casts this HarnessContentBlock as a ToolUse and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessToolUseBlock value. Throws an exception if the HarnessContentBlock is not a ToolUse.