track_error
Log and resolve programming errors in the Tribal Knowledge Service by capturing error details, code snippets, and solutions to build a comprehensive knowledge base for future reference.
Instructions
Track an error and its solution in the knowledge base.
Args:
error_type: Type of error (e.g., ImportError, TypeError)
error_message: The error message
language: Programming language (e.g., python, javascript)
framework: Framework used (e.g., fastapi, react)
code_snippet: The code that caused the error
task_description: What the user was trying to accomplish
solution_description: Brief description of the solution
solution_code_fix: Code that fixes the error
solution_explanation: Detailed explanation of why the solution works
solution_references: List of reference links
Returns:
The created error record
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code_snippet | No | ||
error_message | Yes | ||
error_type | Yes | ||
framework | No | ||
language | Yes | ||
solution_code_fix | No | ||
solution_description | No | ||
solution_explanation | No | ||
solution_references | No | ||
task_description | No |
Input Schema (JSON Schema)
{
"properties": {
"code_snippet": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Code Snippet"
},
"error_message": {
"title": "Error Message",
"type": "string"
},
"error_type": {
"title": "Error Type",
"type": "string"
},
"framework": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Framework"
},
"language": {
"title": "Language",
"type": "string"
},
"solution_code_fix": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Solution Code Fix"
},
"solution_description": {
"default": "",
"title": "Solution Description",
"type": "string"
},
"solution_explanation": {
"default": "",
"title": "Solution Explanation",
"type": "string"
},
"solution_references": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Solution References"
},
"task_description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Task Description"
}
},
"required": [
"error_type",
"error_message",
"language"
],
"title": "track_errorArguments",
"type": "object"
}