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:
@@ -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"]
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user