Create file_analyzer.py
Browse files- file_analyzer.py +12 -0
file_analyzer.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Dict, Any, List, Optional, Tuple
|
| 2 |
+
from base_agent import BaseAgent
|
| 3 |
+
|
| 4 |
+
class FileAnalyzer(BaseAgent):
|
| 5 |
+
def __init__(self, model: str):
|
| 6 |
+
super().__init__(model=model)
|
| 7 |
+
|
| 8 |
+
def __call__(self, question: str, file_name: str, **kwargs) -> str:
|
| 9 |
+
print(f"FileAnalyzer analyzing file: {file_name}")
|
| 10 |
+
|
| 11 |
+
return None
|
| 12 |
+
|