Update crew.py
Browse files
crew.py
CHANGED
|
@@ -59,14 +59,15 @@ def get_crew():
|
|
| 59 |
verbose=True
|
| 60 |
)
|
| 61 |
|
| 62 |
-
@tool("Final answer tool")
|
| 63 |
def final_answer_tool(question: str, answer: str) -> str:
|
| 64 |
-
"""Given a question and initial answer, provide the final answer."""
|
| 65 |
prompt_template = """
|
| 66 |
-
You are given a question and initial answer. You must **precisely** answer the question based on the initial answer.
|
|
|
|
| 67 |
**Question:** """ + question + """
|
| 68 |
**Initial answer:** """ + answer + """
|
| 69 |
-
**Example 1:**
|
| 70 |
**Example 2:** What is the superlative of good? Best
|
| 71 |
**Example 3:** What is the opposite of left? Right
|
| 72 |
**Final answer:**:
|
|
|
|
| 59 |
verbose=True
|
| 60 |
)
|
| 61 |
|
| 62 |
+
@tool("Final answer tool.")
|
| 63 |
def final_answer_tool(question: str, answer: str) -> str:
|
| 64 |
+
"""Given a question and an initial answer, provide the final answer."""
|
| 65 |
prompt_template = """
|
| 66 |
+
You are given a question and an initial answer. You must **precisely** answer the question based on the initial answer.
|
| 67 |
+
If asked for a number, only provide the number. Do not include explanations, steps, reasoning, or additional text.
|
| 68 |
**Question:** """ + question + """
|
| 69 |
**Initial answer:** """ + answer + """
|
| 70 |
+
**Example 1:** How many states are in the USA? 50
|
| 71 |
**Example 2:** What is the superlative of good? Best
|
| 72 |
**Example 3:** What is the opposite of left? Right
|
| 73 |
**Final answer:**:
|