Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -258,7 +258,7 @@ class BasicAgent:
|
|
| 258 |
print("BasicAgent initialized.")
|
| 259 |
|
| 260 |
def __call__(self, task: dict) -> str:
|
| 261 |
-
task_id, question,
|
| 262 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 263 |
# response = self.agent_exe.invoke({"input": f"Question: {question}"})
|
| 264 |
# fixed_answer = response['message'][-1].content
|
|
|
|
| 258 |
print("BasicAgent initialized.")
|
| 259 |
|
| 260 |
def __call__(self, task: dict) -> str:
|
| 261 |
+
task_id, question, file_name = task["task_id"], task["question"], task["file_name"]
|
| 262 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 263 |
# response = self.agent_exe.invoke({"input": f"Question: {question}"})
|
| 264 |
# fixed_answer = response['message'][-1].content
|