Skip to main content

DryRunResult

Returned when dry_run: true is passed to POST /tasks. The task is NOT persisted. Use to verify intent resolution before committing.

conceptobject

Generated concept definition

condition object
condition_idstring
versionstring
concept_idstring
concept_versionstring
strategy object
typestringrequired

The evaluation logic template for this condition. Note: TypeScript SDK enum spelling is z_score (not zscore).

Possible values: [threshold, percentile, change, z_score, equals, composite]

paramsobjectrequired

Parameters vary by strategy type. See strategy registry in memintel.guardrails.md for full parameter schemas. threshold: { direction: above|below, value: float } percentile: { direction: top|bottom, value: float (0-100) } change: { direction: increase|decrease|any, value: float, window: duration } z_score: { threshold: float, direction: above|below|any, window: duration } equals: { value: string, labels?: string[] } composite: { operator: AND|OR, operands: condition_id[] }

namespacestring

Possible values: [personal, team, org, global]

created_atstring<date-time>
deprecatedboolean
action_idstring

Resolved action binding

action_versionstring
validation object
validboolean
errors object[]
  • Array [
  • typestring

    Possible values: [type_error, reference_error, graph_error, semantic_error, parameter_error]

    messagestring
    locationstringnullable
    suggestionstringnullable
  • ]
  • warnings object[]
  • Array [
  • typestring
    messagestring
  • ]
  • would_triggerbooleannullable

    Simulated trigger status. Present if entity and timestamp are provided in the request alongside dry_run.

    DryRunResult
    {
    "concept": {},
    "condition": {
    "condition_id": "string",
    "version": "string",
    "concept_id": "string",
    "concept_version": "string",
    "strategy": {
    "type": "threshold",
    "params": {}
    },
    "namespace": "personal",
    "created_at": "2024-07-29T15:51:28.071Z",
    "deprecated": true
    },
    "action_id": "string",
    "action_version": "string",
    "validation": {
    "valid": true,
    "errors": [
    {
    "type": "type_error",
    "message": "string",
    "location": "string",
    "suggestion": "string"
    }
    ],
    "warnings": [
    {
    "type": "string",
    "message": "string"
    }
    ]
    },
    "would_trigger": true
    }