asToolResult
Casts this HarnessContentBlock as a ToolResult and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessToolResultBlock value. Throws an exception if the HarnessContentBlock is not a ToolResult.
Casts this HarnessContentBlock as a ToolResult and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessToolResultBlock value. Throws an exception if the HarnessContentBlock is not a ToolResult.