asFlowTraceEvent
Casts this FlowResponseStream as a FlowTraceEvent and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.FlowTraceEvent value. Throws an exception if the FlowResponseStream is not a FlowTraceEvent.