asToolResult
Casts this SpanMessageValue as a ToolResult and retrieves its aws.sdk.kotlin.services.qconnect.model.SpanToolResultValue value. Throws an exception if the SpanMessageValue is not a ToolResult.
Casts this SpanMessageValue as a ToolResult and retrieves its aws.sdk.kotlin.services.qconnect.model.SpanToolResultValue value. Throws an exception if the SpanMessageValue is not a ToolResult.