Guides/Crews/Build Your First Crew. Code error?

In the documentation Guides Section, I implemented the code in the Build your first crew section.

When I run the crew, an output folder is created, but the report.md file is not put in the folder. I used the crewai run command and the uv run run_crew command.

How do I control where the crews write files to? I

If you look under the Modify your tasks.yaml file you will see the output_file parameter. You can use this to set the location of the output file.

Each task can have an output file with it results. Read more on the tasks section.

The answer to my problem is that output_file was defined in both the crew.py file and the tasks.yml file.

In the crew.py, the output_file was defined as report.md. In tasks,yaml, output_file was defined as output/report.md, The definition in the crew.py seems to take precedence over the definition in the tasks.yaml file, so the file was not placed in the output directory.

I checked the website. I thought I had copied the crewai.py file and the tasks.yaml file, but somehow in the crewai.py file I changed the output_file from output/report.md to report.md, This changed caused the problem.

I think the Documentation on the CrewAI website should be changed and the output_file should be deleted in either the tasks,yaml file or the crew.py file.

If you have time, submit a PR with a fix :grinning_face:

I don't know how to do a PR. If I could, all I would do is to remove the output_file: report.md line in the crew.py file.