Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
421333 opened this issue May 14, 2024 · 3 comments

Comments

@421333
Copy link

421333 commented May 14, 2024

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

@noggynoggy
Copy link
Contributor

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

@tsukhu
Copy link

tsukhu commented May 20, 2024

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 ?

@noggynoggy
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants