asDocument
Casts this ToolResultContentBlock as a Document and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentBlock value. Throws an exception if the ToolResultContentBlock is not a Document.
Casts this ToolResultContentBlock as a Document and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentBlock value. Throws an exception if the ToolResultContentBlock is not a Document.