Skip to main content

DecisionResult

The output of condition evaluation (At). actions_triggered[] is nested here — it is NOT at the top level of FullPipelineResult. SDK mapping: decision.actionsTriggered (camelCase), decision.value.

value object

The Decision (At) value. boolean for threshold/percentile/change/z_score/composite strategies. string (label) for equals strategy on categorical input.

oneOf
boolean
typestring

Possible values: [boolean, categorical]

entitystring
condition_idstring
condition_versionstring
timestampstring<date-time>nullable
actions_triggered object[]

Actions fired by this decision. Always nested inside DecisionResult (At), never at the top level of FullPipelineResult.

  • Array [
  • action_idstring
    action_versionstring
    statusstring

    Possible values: [triggered, skipped, failed, would_trigger]

    payload_sentobjectnullable
    error objectnullable
    error object
    typestringrequired

    Machine-readable error type. Always branch on this field — never on message. TypeScript SDK maps this directly to MemintelError.type.

    Possible values: [syntax_error, type_error, semantic_error, reference_error, parameter_error, graph_error, execution_error, execution_timeout, auth_error, not_found, conflict, rate_limit_exceeded, bounds_exceeded, action_binding_failed]

    messagestringrequired
    locationstringnullable
    suggestionstringnullable
  • ]
  • DecisionResult
    {
    "value": true,
    "type": "boolean",
    "entity": "string",
    "condition_id": "string",
    "condition_version": "string",
    "timestamp": "2024-07-29T15:51:28.071Z",
    "actions_triggered": [
    {
    "action_id": "string",
    "action_version": "string",
    "status": "triggered",
    "payload_sent": {},
    "error": {
    "error": {
    "type": "syntax_error",
    "message": "string",
    "location": "string",
    "suggestion": "string"
    }
    }
    }
    ]
    }