yanniedog / Autocrew

Automatically create a crew and tasks for CrewAI
Creative Commons Zero v1.0 Universal
185 stars 35 forks source link

adding goal text string to file name bring errors for long goals. #5

Closed PiotrEsse closed 10 months ago

PiotrEsse commented 10 months ago

Hi, adding goal description to a filename gives error for long goals. Idea is perfect but brings error as users cant use long texts.

image

Its in line #31 I would trunctate this to , lets say, 10 letters.

yanniedog commented 10 months ago

Nice pickup. Yep, this will be an easy fix. I'll do it tomorrow. Thanks again 👍

yanniedog commented 10 months ago

Also, it looks like you're using an old version of the script

PiotrEsse commented 10 months ago

Also, it looks like you're using an old version of the script

yes, it was older ;-)

yanniedog commented 10 months ago

Problem: need to ensure the "overall_goal" component of the csv/py filename does not exceed 30 characters.

The simple solution:

The sophisticated solution:

yanniedog commented 10 months ago

The current version now inserts only the first 50 characters of overall_goal into the CSV / PY filenames