crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
19k stars 2.62k forks source link

Increase test coverage for output to file #1049

Closed thiagomoretto closed 1 month ago

thiagomoretto commented 1 month ago

By writing to the disk on these unit tests we cover the part of the logic in Task._save_file, preventing some regression when changing its behavior.

This confirms that https://github.com/crewAIInc/crewAI/pull/1011 fixes the issue when the model outputs a string which is a parseable json, as it's transformed to a dict later before going to disk.

image

joaomdmoura commented 1 month ago

Love it!