asToolUseOrNull
Casts this HarnessContentBlock as a ToolUse and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessToolUseBlock value. Returns null if the HarnessContentBlock is not a ToolUse.
Casts this HarnessContentBlock as a ToolUse and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessToolUseBlock value. Returns null if the HarnessContentBlock is not a ToolUse.