add_heuristic
Register a condition-action heuristic for persistent storage, with configurable confidence, importance, and priority.
Instructions
v2.1.0 — Register a new condition→action heuristic. Storage-backed; default confidence 0.5. Pass an explicit content-addressed id (e.g. h_<sha256(condition|action)>) for caller-managed idempotency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional explicit id for idempotent registration. | |
| action | Yes | Recommended action when the condition matches. | |
| agentId | No | ||
| priority | No | Tie-breaker when multiple match (higher wins). | |
| condition | Yes | Natural-language condition that triggers the action. | |
| importance | No | ||
| initialConfidence | No | Default 0.5. |