Parse a wire stop-reason string into a StopReason. Returns null for provider-specific values not in the enum (the raw string is then preserved in CreateMessageResult.stopReason).
Parse a wire stop-reason string into a StopReason. Returns null for provider-specific values not in the enum (the raw string is then preserved in CreateMessageResult.stopReason).