MLSolutionFactory - Global

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • The MLSolutionFactory API is a factory class to get an MLSolution scriptable object.

    This API requires the Predictive Intelligence plugin (com.glide.platform_ml) and is provided within the sn_ml namespace. For more information, see Predictive Intelligence.

    For usage guidelines, refer to MLSolutionFactory scriptable objects.

    MLSolutionFactory - getSolution(String solutionName, Object options)

    Gets an MLSolution object for a specified solution name.

    표 1. Parameters
    Name Type Description
    solutionName String Name of the solution.
    options Object Optional. options.version: If provided, creates MLSolution instance for provided version of solutionName.
    표 2. Returns
    Type Description
    Object MLSolution object of the specified solution.
    // basic usage
    var mlSolution = sn_ml.MLSolutionFactory.getSolution("ml_incident_categorization");
            
    // using options.version parameter
    var options = {};
    options.version = 1;
    var mlSolution = sn_ml.MLSolutionFactory.getSolution("ml_incident_categorization", options);