Developer API

Options

Represents optional execution settings that influence how ZeroTrain processes the request. This object may include confidence policy configuration, dataset behavior, output formatting, context handling, semantic options, and other runtime controls. All properties within this object are optional. Where not explicitly provided, system defaults will be applied when available.

Properties of Options

NameTypeDescription
ConfidencePolicyConfidencePolicyDefines how overall confidence is calculated from relevance, logic, and refinement signals. Weights control the influence of each signal in the final confidence score.
DataSettingsDataSettingsDefines how input data is interpreted and mapped during model execution, including column bindings, filtering, grouping, and evaluation tolerance settings.
OutputSettingsOutputSettingsControls how inference results are formatted and what level of execution detail is included in the response.
ContextOptionsContextOptionsDefines optional contextual metadata that can accompany a request, allowing custom tagging or external correlation without affecting deterministic evaluation.
SemanticsSemanticsCollectionRepresents a named collection of feature semantics used to describe how input features should be interpreted within a ZeroTrain request.

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"
    }
  }
}