Extract individual task output from a crew. #2443
z1-jed-gore
started this conversation in
Feature Requests
Replies: 2 comments
-
You can retrieve the content from the Task's "output_file" and then read the file's content. Using streamlit, once the crew is completed, you can display each task's output. |
Beta Was this translation helpful? Give feedback.
0 replies
-
One way I consider quite elegant for capturing the execution steps is by using an event listener. There can be many event listeners on crewAI’s event bus. In this CrewAI Community Support thread, I provide a working example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Doing something like the following, I would love to extract the individual tasks outputs in a UI vs, for example, parsing a stdout stream, and went around in circles as there appeared to be some discussion about doing this via an execute() method, but I've not been able to find a solution in the production version.
crew = Crew(
agents=agent_objs,
tasks=task_objs,
verbose=True,
process="sequential",
)
response, logs = capture_output(crew.kickoff, timeout=120)
Beta Was this translation helpful? Give feedback.
All reactions