Skip to main content

StrategyDefinition

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[] }

StrategyDefinition
{
"type": "threshold",
"params": {}
}