bstraehle commited on
Commit
86f51b2
·
verified ·
1 Parent(s): 85ede19

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +3 -4
crew.py CHANGED
@@ -181,9 +181,8 @@ def run_crew(question, file_path):
181
 
182
  @tool("Code Generation Tool")
183
  def code_generation_tool(question: str, file_path: str) -> str:
184
- """Generate and execute Python code to answer a question.
185
- The question can be about an optional csv, xls, xlsx, json, or jsonl document.
186
-
187
  Args:
188
  question (str): Question to answer
189
  file_path (str): The optional document file path
@@ -314,7 +313,7 @@ def run_crew(question, file_path):
314
 
315
  code_generation_agent = Agent(
316
  role="Code Generation Agent",
317
- goal="Generate Python code and execute it to help answer question \"{question}\"",
318
  backstory="As an expert Python code generation assistant, you generate and execute code to help answer the question.",
319
  allow_delegation=False,
320
  llm=AGENT_MODEL,
 
181
 
182
  @tool("Code Generation Tool")
183
  def code_generation_tool(question: str, file_path: str) -> str:
184
+ """Generate and execute Python code, using an optional csv, xls, xlsx, json, or jsonl document as input, to answer a question.
185
+
 
186
  Args:
187
  question (str): Question to answer
188
  file_path (str): The optional document file path
 
313
 
314
  code_generation_agent = Agent(
315
  role="Code Generation Agent",
316
+ goal="Generate and execute Python code, using an optional csv, xls, xlsx, json, or jsonl document as input, to help answer question \"{question}\"",
317
  backstory="As an expert Python code generation assistant, you generate and execute code to help answer the question.",
318
  allow_delegation=False,
319
  llm=AGENT_MODEL,