Spaces:
Configuration error
Configuration error
Update crew.py
Browse files
crew.py
CHANGED
|
@@ -155,7 +155,7 @@ def run_crew(question, file_path):
|
|
| 155 |
@tool("Document Analysis Tool")
|
| 156 |
def document_analysis_tool(question: str, file_path: str) -> str:
|
| 157 |
"""Answer a question about a document file. Supported document types include:
|
| 158 |
-
.txt, .csv, .xml, .rtf, .pdf, .md, .html, .css, .js
|
| 159 |
|
| 160 |
Args:
|
| 161 |
question (str): Question about a document file
|
|
@@ -302,7 +302,7 @@ def run_crew(question, file_path):
|
|
| 302 |
|
| 303 |
document_analysis_agent = Agent(
|
| 304 |
role="Document Analysis Agent",
|
| 305 |
-
goal="Analyze document of type .txt, .csv, .xml, .rtf, .pdf, .md, .html, .css, .js
|
| 306 |
backstory="As an expert document analysis assistant, you analyze the document to help answer the question.",
|
| 307 |
allow_delegation=False,
|
| 308 |
llm=AGENT_MODEL,
|
|
|
|
| 155 |
@tool("Document Analysis Tool")
|
| 156 |
def document_analysis_tool(question: str, file_path: str) -> str:
|
| 157 |
"""Answer a question about a document file. Supported document types include:
|
| 158 |
+
.txt, .csv, .xml, .rtf, .pdf, .md, .html, .css, .js
|
| 159 |
|
| 160 |
Args:
|
| 161 |
question (str): Question about a document file
|
|
|
|
| 302 |
|
| 303 |
document_analysis_agent = Agent(
|
| 304 |
role="Document Analysis Agent",
|
| 305 |
+
goal="Analyze document of type .txt, .csv, .xml, .rtf, .pdf, .md, .html, .css, .js to help answer question \"{question}\"",
|
| 306 |
backstory="As an expert document analysis assistant, you analyze the document to help answer the question.",
|
| 307 |
allow_delegation=False,
|
| 308 |
llm=AGENT_MODEL,
|