Update crew.py
Browse files
crew.py
CHANGED
@@ -226,11 +226,11 @@ def run_crew(question, file_path):
|
|
226 |
|
227 |
Args:
|
228 |
question (str): Question to answer
|
229 |
-
a (float):
|
230 |
-
b (float):
|
231 |
|
232 |
Returns:
|
233 |
-
float: Result
|
234 |
|
235 |
Raises:
|
236 |
RuntimeError: If processing fails"""
|
@@ -248,7 +248,6 @@ def run_crew(question, file_path):
|
|
248 |
return response.text
|
249 |
except Exception as e:
|
250 |
raise RuntimeError(f"Processing failed: {str(e)}")
|
251 |
-
###
|
252 |
|
253 |
@tool("Code Generation Tool")
|
254 |
def code_generation_tool(question: str, json_data: str) -> str:
|
@@ -433,7 +432,7 @@ 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 |
-
"- Math Agent requires a question and **two numbers to add, subtract, multiply, divide, or get modulus**.\n"
|
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"
|
|
|
226 |
|
227 |
Args:
|
228 |
question (str): Question to answer
|
229 |
+
a (float): First number
|
230 |
+
b (float): Second number
|
231 |
|
232 |
Returns:
|
233 |
+
float: Result number
|
234 |
|
235 |
Raises:
|
236 |
RuntimeError: If processing fails"""
|
|
|
248 |
return response.text
|
249 |
except Exception as e:
|
250 |
raise RuntimeError(f"Processing failed: {str(e)}")
|
|
|
251 |
|
252 |
@tool("Code Generation Tool")
|
253 |
def code_generation_tool(question: str, json_data: str) -> str:
|
|
|
432 |
"- Audio Analysis Agent requires a question and **.wav, .mp3, .aiff, .aac, .ogg, or .flac audio file**.\n"
|
433 |
"- Video Analysis Agent requires a question and **.mp4, .mpeg, .mov, .avi, .x-flv, .mpg, .webm, .wmv, or .3gpp video file**.\n"
|
434 |
"- Document Analysis Agent requires a question and **.docx, .pptx, .pdf, .txt, .html, css, .js, .md, .xml, or .rtf document file**.\n"
|
435 |
+
"- Math Agent requires a question and **two numbers to add, subtract, multiply, divide, or get the modulus**.\n"
|
436 |
"- YouTube Analysis Agent requires a question and **YouTube URL**.\n"
|
437 |
"- Code Generation Agent requires a question and **JSON data**.\n"
|
438 |
"- Code Execution Agent requires a question and **Python file**.\n"
|