asDocumentOrNull
Casts this ToolResultContentBlock as a Document and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentBlock value. Returns null if the ToolResultContentBlock is not a Document.
Casts this ToolResultContentBlock as a Document and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentBlock value. Returns null if the ToolResultContentBlock is not a Document.