add_heuristic
Register a condition–action rule to trigger a recommended action when a natural-language condition matches in your knowledge graph. Supports priority, importance, and idempotent registration via explicit IDs.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"condition": "<condition>",
"action": "<action>"
},
"name": "add_heuristic"
}
}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. |