crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

How to export the results of working agent, starting task, thoughts and tool calls to the front end?

Open 421333 opened this issue 9 months ago • 2 comments

I think websocket is a good option, but I can't find exactly where the thoughts and tool calls output is located.

421333 avatar May 14 '24 12:05 421333

If you want everything, it is probably best right now to just redirect terminal output. If you just want to give the users feedback un whats happening, look into callbacks:

https://docs.crewai.com/core-concepts/Tasks/#callback-mechanism

noggynoggy avatar May 15 '24 09:05 noggynoggy

If you want everything, it is probably best right now to just redirect terminal output. If you just want to give the users feedback un whats happening, look into callbacks:

https://docs.crewai.com/core-concepts/Tasks/#callback-mechanism

Thanks @noggynoggy - is there a way to access the agent name in the call back . We get the summary, description and exported_output, but is there a way to pass the agent or let the user know which agent produced that output ?

tsukhu avatar May 20 '24 12:05 tsukhu

If you want everything, it is probably best right now to just redirect terminal output. If you just want to give the users feedback un whats happening, look into callbacks:

https://docs.crewai.com/core-concepts/Tasks/#callback-mechanism

Thanks @noggynoggy - is there a way to access the agent name in the call back . We get the summary, description and exported_output, but is there a way to pass the agent or let the user know which agent produced that output ?

I'm afraid I don't know if there is a way to access like a self.role in the callback function from the to of my head (I'm on holiday). I believe the whole callback code is from before Process.hierarchical was a thing (in seq. you assign agents) so there is a chance that this was not thought to be necessary at the time.

noggynoggy avatar May 21 '24 16:05 noggynoggy

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] avatar Aug 17 '24 12:08 github-actions[bot]

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

github-actions[bot] avatar Aug 23 '24 12:08 github-actions[bot]