Developer API

OutputSettings

Configures how ZeroTrain performs inference, formats results, and controls the level of execution detail included in the response.

Properties of OutputSettings

NameTypeDescription
InferenceModeenumInferenceModeDetermines the inference method used by ZeroTrain. Classification evaluates knowledge-based rules to produce discrete outcomes, while Regression predicts continuous numerical values using fitted mathematical relationships.
OutputModeenumOutputModeControls the structure of the inference result returned by ZeroTrain. This setting affects only the output projection format and does not influence decision logic, scoring, or evaluation behavior.
ExecutionTraceModeenumExecutionTraceModeDetermines how much execution trace information is included in the output. This setting affects response verbosity only and does not influence decision logic or confidence calculations.
ShowWarningsboolWhen true, warning messages generated during evaluation will be included in the response payload.
ShowUsageInfoboolWhen true, usage and consumption metrics (workload, throttling, benchmarks) will be included in the response payload.
ShowBatchInfoboolWhen true, batch-level execution details (batch id, summary counts, processing statistics) will be included in the response payload.
IncludeMatchedRowboolWhen true, the inference result will include the matched row from the model that produced the decision.
MatchedRowColumnsstring[]Optional list of column names to include from the matched row. If empty, all columns are returned.

Example

	{
  "InputSource": {
    "LastPrice": 102.45,
    "Volume": 1500000,
    "VolatilityIndex": 22.8,
    "MovingAverageSpread": 1.35
  },
  "ModelSource": {
    "resultsets": {
      "TradingRules": [
        {
          "ID": "TR-001",
          "VolatilityIndex": ">= 20",
          "MovingAverageSpread": ">= 1.0",
          "Weight": 0.8,
          "IsEnabled": true,
          "Action": "Buy"
        },
        {
          "ID": "TR-002",
          "VolatilityIndex": "< 20",
          "MovingAverageSpread": "< 0",
          "Weight": 0.6,
          "IsEnabled": true,
          "Action": "Sell"
        },
        {
          "ID": "TR-003",
          "Weight": 0.2,
          "IsEnabled": true,
          "Action": "Hold"
        }
      ]
    }
  },
  "Options": {
    "DataSettings": {
      "ActionColumnName": "Action",
      "PriorityColumnName": "VolatilityIndex",
      "WeightColumnName": "Weight",
      "DecisionIdColumnName": "ID",
      "RowFilter": "IsEnabled = true",
      "ModelName": "TradingDecisionModel"
    },
    "ContextOptions": {
      "CustomTag": "Trade-Session-Alpha"
    },
    "ConfidencePolicy": {
        "FitWeight": 1,
        "SeparationWeight": 0.03
    },
    "OutputSettings": {
      "ExecutionTraceMode": "Compact"
    }
  }
}