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

Enh: Add support for Event Emitters #225

Open
juancarlosm opened this issue Aug 15, 2024 · 4 comments
Open

Enh: Add support for Event Emitters #225

juancarlosm opened this issue Aug 15, 2024 · 4 comments

Comments

@juancarlosm
Copy link

When using pipelines to create agentic tasks, it will be great to update the user UI with "status" messages, like "executing function", "creating images", "buying tickets"... This can be done in open-webui function calling using "Event Emitters"

Is there any way to support this in pipeline?

@jeremykei
Copy link

Any guidance on how these emitters can be rigged on pipelines to begin with? It would appear we need to acquire an instance of the current event emitter on each invocation of pipe()...

What and where can the metadata be assembled assuming we can get an emitter instance from the backend?

@pfr-mf6
Copy link

pfr-mf6 commented Nov 19, 2024

This would be a wonderful feature. I'd love to see LangGraph agents use event emitters. I just wonder how the chat history (namely, the "thought process") will be saved. It would be nice to pull up an old chat and see the thoughts along with the messages.

@ezavesky
Copy link

Threading to #229 , #373, an examples from openweb.

It appears that you could get there via this streaming example with a little bit of work.

@mpangrazzi
Copy link

mpangrazzi commented Jan 9, 2025

It seems that ATM the chat events like replace, status and message are handled from a websocket, which can be driven by e.g. the event emitter in Pipe(s), but too bad not in Pipelines, which instead use SSE events and supports only OpenAI-compatible message format.

It would be great if chat events can be streamed not only via internal WebSocket but via SSE as well, allowing any custom backend (and also Pipelines) to create nice custom UX while building agents.

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

5 participants