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