add_learning
Record error fixes by matching patterns, enabling automatic solution suggestions for future similar errors.
Instructions
Record a learning from a code execution for future reference.
When you figure out how to fix an error, record it here. Future executions will suggest this solution for similar errors.
Args: error_pattern: Text/regex that matches the error message solution: What fixed the problem context: When this solution applies tags: Comma-separated tags (e.g., "network,ssl,https")
Example: add_learning( error_pattern="SSL: CERTIFICATE_VERIFY_FAILED", solution="Add verify=False to requests.get() or install certifi", context="HTTPS requests on systems with certificate issues", tags="ssl,https,certificates" )
Returns: Confirmation message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error_pattern | Yes | ||
| solution | Yes | ||
| context | Yes | ||
| tags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |