Update crew.py
Browse files
crew.py
CHANGED
|
@@ -223,7 +223,7 @@ def run_crew(question, file_path):
|
|
| 223 |
|
| 224 |
@tool("Arithmetic Tool")
|
| 225 |
def arithmetic_tool(question: str, a: float, b: float) -> float:
|
| 226 |
-
"""Given a question and
|
| 227 |
|
| 228 |
Args:
|
| 229 |
question (str): Question to answer
|
|
@@ -382,7 +382,7 @@ def run_crew(question, file_path):
|
|
| 382 |
|
| 383 |
arithmetic_agent = Agent(
|
| 384 |
role="Arithmetic Agent",
|
| 385 |
-
goal="Given a question and
|
| 386 |
backstory="As an expert arithmetic assistant, you perform the calculation to answer the question.",
|
| 387 |
allow_delegation=False,
|
| 388 |
llm=AGENT_MODEL,
|
|
@@ -433,7 +433,8 @@ def run_crew(question, file_path):
|
|
| 433 |
"- Audio Analysis Agent requires a question and **.wav, .mp3, .aiff, .aac, .ogg, or .flac audio file**.\n"
|
| 434 |
"- Video Analysis Agent requires a question and **.mp4, .mpeg, .mov, .avi, .x-flv, .mpg, .webm, .wmv, or .3gpp video file**.\n"
|
| 435 |
"- Document Analysis Agent requires a question and **.docx, .pptx, .pdf, .txt, .html, css, .js, .md, .xml, or .rtf document file**.\n"
|
| 436 |
-
"- Arithmetic Agent requires a question and **
|
|
|
|
| 437 |
"- YouTube Analysis Agent requires a question and **YouTube URL**.\n"
|
| 438 |
"- Code Generation Agent requires a question and **JSON data**.\n"
|
| 439 |
"- Code Execution Agent requires a question and **Python file**.\n"
|
|
|
|
| 223 |
|
| 224 |
@tool("Arithmetic Tool")
|
| 225 |
def arithmetic_tool(question: str, a: float, b: float) -> float:
|
| 226 |
+
"""Given a question and two numbers, perform the calculation to answer the question.
|
| 227 |
|
| 228 |
Args:
|
| 229 |
question (str): Question to answer
|
|
|
|
| 382 |
|
| 383 |
arithmetic_agent = Agent(
|
| 384 |
role="Arithmetic Agent",
|
| 385 |
+
goal="Given a question and two numbers, perform the calculation and answer the question: {question}",
|
| 386 |
backstory="As an expert arithmetic assistant, you perform the calculation to answer the question.",
|
| 387 |
allow_delegation=False,
|
| 388 |
llm=AGENT_MODEL,
|
|
|
|
| 433 |
"- Audio Analysis Agent requires a question and **.wav, .mp3, .aiff, .aac, .ogg, or .flac audio file**.\n"
|
| 434 |
"- Video Analysis Agent requires a question and **.mp4, .mpeg, .mov, .avi, .x-flv, .mpg, .webm, .wmv, or .3gpp video file**.\n"
|
| 435 |
"- Document Analysis Agent requires a question and **.docx, .pptx, .pdf, .txt, .html, css, .js, .md, .xml, or .rtf document file**.\n"
|
| 436 |
+
"- Arithmetic Agent requires a question and **two numbers to add, subtract, multiply, divide, or get the modulus**. "
|
| 437 |
+
" In case there are more than two numbers, use the Code Generation Agent instead.\n"
|
| 438 |
"- YouTube Analysis Agent requires a question and **YouTube URL**.\n"
|
| 439 |
"- Code Generation Agent requires a question and **JSON data**.\n"
|
| 440 |
"- Code Execution Agent requires a question and **Python file**.\n"
|