Refactored gemini, openai and claude into one file and removed logic from the base class, also made helper class definable from command line

This commit is contained in:
2025-06-03 13:04:42 -05:00
parent bd0ce3e340
commit f15228fa58
36 changed files with 487 additions and 3847 deletions
+9 -6
View File
@@ -4,8 +4,7 @@ import zipfile
import io
import re
import logging
from .base_tool import BaseTool # Added
from .metrics import metrics # Added
from .base_tool import BaseTool
# Configure logging for the tool - This will be handled by the logger instance now
# logger = logging.getLogger(__name__) # Commented out or removed
@@ -70,7 +69,8 @@ class GitHubCIHelper(BaseTool): # Inherits from BaseTool
},
"required": ["pull_request_number"]
}
}
},
"_tags": ["read"]
},
{
"type": "function",
@@ -85,7 +85,8 @@ class GitHubCIHelper(BaseTool): # Inherits from BaseTool
},
"required": ["pull_request_number"]
}
}
},
"_tags": ["read"]
},
{
"type": "function",
@@ -100,7 +101,8 @@ class GitHubCIHelper(BaseTool): # Inherits from BaseTool
},
"required": ["run_id"]
}
}
},
"_tags": ["read"]
},
{
"type": "function",
@@ -114,7 +116,8 @@ class GitHubCIHelper(BaseTool): # Inherits from BaseTool
},
"required": ["log_content"]
}
}
},
"_tags": ["read"]
}
]