cos_learn_validate
Mark a learned pattern as helpful or not to update its confidence score and validation status, using brain-inspired learning rules.
Instructions
Record whether a suggested pattern was helpful.
Updates confidence using brain-inspired formulas:
Helpful: LTP with diminishing returns + temporal proximity bonus
Not helpful: LTD proportional penalty
Args: pattern_id: ID in learned_patterns table. was_helpful: Whether the pattern was useful (default True).
Returns: str: JSON with old/new confidence and validation status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern_id | Yes | ||
| was_helpful | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |