Update agent.py
Browse files
agent.py
CHANGED
@@ -127,11 +127,9 @@ def answer_question(question: str, task_id: str = None) -> str:
|
|
127 |
non_comm.add(a)
|
128 |
non_comm.add(b)
|
129 |
result = ", ".join(sorted(non_comm))
|
130 |
-
file_context += f"
|
131 |
-
[Parsed Non-Commutative Set] {result}"
|
132 |
except Exception as e:
|
133 |
-
file_context += f"
|
134 |
-
[Table Parse Error] {e}"
|
135 |
# Parse table to extract non-commutative elements
|
136 |
import re
|
137 |
import pandas as pd
|
|
|
127 |
non_comm.add(a)
|
128 |
non_comm.add(b)
|
129 |
result = ", ".join(sorted(non_comm))
|
130 |
+
file_context += f"[Parsed Non-Commutative Set] {result}"
|
|
|
131 |
except Exception as e:
|
132 |
+
file_context += f"[Table Parse Error] {e}"
|
|
|
133 |
# Parse table to extract non-commutative elements
|
134 |
import re
|
135 |
import pandas as pd
|