asModelInvocationInput
Casts this PreProcessingTrace as a ModelInvocationInput and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.ModelInvocationInput value. Throws an exception if the PreProcessingTrace is not a ModelInvocationInput.