HarnessToolResultContentBlock
A content block within a tool result.
Inheritors
Types
Functions
Link copied to clipboard
Casts this HarnessToolResultContentBlock as a Json and retrieves its aws.smithy.kotlin.runtime.content.Document value. Throws an exception if the HarnessToolResultContentBlock is not a Json.
Link copied to clipboard
Casts this HarnessToolResultContentBlock as a Json and retrieves its aws.smithy.kotlin.runtime.content.Document value. Returns null if the HarnessToolResultContentBlock is not a Json.
Link copied to clipboard
Casts this HarnessToolResultContentBlock as a Text and retrieves its kotlin.String value. Throws an exception if the HarnessToolResultContentBlock is not a Text.
Link copied to clipboard
Casts this HarnessToolResultContentBlock as a Text and retrieves its kotlin.String value. Returns null if the HarnessToolResultContentBlock is not a Text.