Update base_agent.py
Browse files- base_agent.py +1 -1
base_agent.py
CHANGED
|
@@ -24,7 +24,7 @@ class BaseAgent:
|
|
| 24 |
self.client = OpenAI(api_key="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")
|
| 25 |
print("Client successfully initialized")
|
| 26 |
|
| 27 |
-
def __call__(self, question: str, **kwargs) -> str:
|
| 28 |
"""Process the question and return an answer."""
|
| 29 |
raise NotImplementedError("Subclasses must implement this method")
|
| 30 |
|
|
|
|
| 24 |
self.client = OpenAI(api_key="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")
|
| 25 |
print("Client successfully initialized")
|
| 26 |
|
| 27 |
+
def __call__(self, question: str, file_name: str = None, **kwargs) -> str:
|
| 28 |
"""Process the question and return an answer."""
|
| 29 |
raise NotImplementedError("Subclasses must implement this method")
|
| 30 |
|