babyagi
babyagi copied to clipboard
Add output trail to (.txt) file
Defines a method to write to file and demonstrates this by appending the generated results to a .txt file
For easier read and access in post-result analysis or during runtime
Added= def write_result_to_file(filename, result):
write_result_to_file("output_trail.txt", result)