Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Agent output streams #169

Closed
ChristianWeyer opened this issue Jan 21, 2024 · 6 comments
Closed

Agent output streams #169

ChristianWeyer opened this issue Jan 21, 2024 · 6 comments
Labels
feature-request New feature or request

Comments

@ChristianWeyer
Copy link

ChristianWeyer commented Jan 21, 2024

I just saw that AutoGen is planning to add an output streams feature beyond console output.
microsoft/autogen#1290 (comment)

This would be great if crewAI would provide a similar feature.

@joaomdmoura
Copy link
Collaborator

Interesting, curious to hear more about the use cases so we can get something that is great for those, anything comes to mind?

@ChristianWeyer
Copy link
Author

One use case would be to stream, agent result to a web frontend.
Another could be to have really distributed agents working together.

@Biancamazzi Biancamazzi added the feature-request New feature or request label Jan 22, 2024
@JaDenis
Copy link

JaDenis commented Jan 23, 2024

I agree, i'd like to send answers via WebSockets to a web client.

@mdfederici
Copy link

mdfederici commented Jan 28, 2024

I also want to be able to stream live output to a frontend.

Seems like it is also related to #146

@bigr00
Copy link

bigr00 commented Jan 31, 2024

Currently I found a workaround to capture terminal output while crew.kickoff() is working with subprocess and to stream the stdout. It’s ugly and gets unsupported characters, but at least can stream.

@JaDenis
Copy link

JaDenis commented Feb 1, 2024

Currently I found a workaround to capture terminal output while crew.kickoff() is working with subprocess and to stream the stdout. It’s ugly and gets unsupported characters, but at least can stream.

please, share the code
i'm currently doing it like this with "verbose=2" and it sucks

from io import StringIO  # Python 3
import sys

# Create the in-memory "file"
temp_out = StringIO()

# Replace default stdout (terminal) with our stream
sys.stdout = temp_out

print("This is going in to the memory stream")

Sometimes i see agents questions to one another in console, i'd really like to capture these too
They write pretty high quality prompts into each other, gathering these would be 100% useful

@crewAIInc crewAIInc locked and limited conversation to collaborators Aug 7, 2024
@theCyberTech theCyberTech converted this issue into discussion #1116 Aug 7, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants