crewAIInc / crewAI-examples

A collection of examples that show how to use CrewAI framework to automate workflows.
2.85k stars 1.08k forks source link

Tasks need predefiend input: Don't use input() but use human tool #85

Closed nkeilar closed 1 month ago

nkeilar commented 7 months ago

Maybe I'm missing something obvious, but if Agents run Tasks, then inputs to tasks may not be know at run time. Currently it seems Tasks need to be defined with inputs passed in the main.py file. But if I want to pass an intermediate value to a Task that is only know at run time then how to do that?

For all intensive purposes, how do you refactor the job posting example to not use input, but instead have an a agent, like top_dog_manager_agent who discusses what inputs it needs with the human, then passes those to the tasks?

Sorry the is probably obvious to someone out there but I haven't been able to find an example

Cheers

nkeilar commented 6 months ago

I've worked around this by having the filename be a static filename, so the tasks just read and write to that and don't have to dynamically pass the filename between them. This allows me to setup tasks in the main.py file that reference a text/jston file that will be updated with contents.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stale for 5 days with no activity.