Update multiagents.py
Browse files- multiagents.py +11 -5
multiagents.py
CHANGED
|
@@ -112,11 +112,17 @@ class MultiAgent:
|
|
| 112 |
Finding the correct answer to the question need reasoning and plannig, read the question carrefully, think step by step and do not skip any steps.
|
| 113 |
"""
|
| 114 |
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
return fixed_answer
|
| 122 |
except Exception as e:
|
|
|
|
| 112 |
Finding the correct answer to the question need reasoning and plannig, read the question carrefully, think step by step and do not skip any steps.
|
| 113 |
"""
|
| 114 |
|
| 115 |
+
full_prompt = (
|
| 116 |
+
prefix.strip()
|
| 117 |
+
+ "\n\nTHE QUESTION:\n"
|
| 118 |
+
+ question.strip()
|
| 119 |
+
+ "\n\n"
|
| 120 |
+
+ myprompts.output_format.strip()
|
| 121 |
+
)
|
| 122 |
+
if not isinstance(full_prompt, str):
|
| 123 |
+
full_prompt = str(full_prompt)
|
| 124 |
+
|
| 125 |
+
fixed_answer = manager_agent.run(full_prompt)
|
| 126 |
|
| 127 |
return fixed_answer
|
| 128 |
except Exception as e:
|