-
Couldn't load subscription status.
- Fork 485
Add interactive WebSocket UI and FastAPI backend for Groupchat #2062
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
base: main
Are you sure you want to change the base?
Conversation
|
@Suryaaa-Rathore very interesting PR! Thanks for the contribution! Could you run pre-commit: https://docs.ag2.ai/latest/docs/contributor-guide/pre-commit/ This is a large PR. Will start review soon but may take some time! |
|
@qingyun-wu Thanks! I've run the pre-commit and made the necessary changes. |
|
@Suryaaa-Rathore do you have discord? I am working on something similar to this and would love to chat. What I am currently trying to figure out is persistence after disconnection of the websocket. My discord is: elcapitan__ (thats 2 underscores) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the design of the UI looks very basic to me , this can be improved, with better color pallete, the aglignments of the components seems asymmetric, is that intentional? if so, it can be improved further.
- consider this there are too many colors, use a better color pallete.
- if possible can you pleaseremove the border highlights, from the inner asymmetric components, it would look better that ways.
- can you please implement modern UI design principals?
overall , my opinioun is this UI can be much better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback. We’re building our own startup, and within the given time constraints, I was able to build this by making use of the WebSocket implementation within the current AG2 architecture. The current design is intentionally kept basic to focus on functionality during the initial development phase. The color palette is fully customizable and supports both dark and light modes. Developers can adjust the theme based on their preferences or project requirements.
- The asymmetric layout is intentional, as it helps distinguish between sent and received messages more clearly in a chat-style interface.
- Border highlights are used to format JSON data into a tabular layout for better readability and structure. This is especially helpful when displaying nested JSON, which follows a similar format.
- While I can certainly implement and publish more modern UI designs, the current focus is on delivering core features and iterating based on need.
|
@Suryaaa-Rathore does this support the typewriter effect (sending partial chunks/tokens and incrementally rendering them)? |
|
@BlocUnited Yes, it can support the typewriter effect, but the current PR does not include it yet. |
|
This PR introduces a lightweight, interactive WebSocket UI along with a FastAPI backend.
What's included:
Why:
We were facing limitations with tools like Postman for WebSocket testing — including lack of message formatting, session handling, and poor UX for prompt tuning. This setup improves debugging, speeds up development, and simplifies agent alignment tasks.