Monoagent streaming#133
Open
jmsevin wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant improvements to the chat experience, focusing on real-time streaming of agent answers, enhanced user feedback during processing, and better API environment handling. The main changes include switching the chat agent's answer retrieval to a streaming approach, providing dynamic status updates to the user during answer formulation, and refactoring API utility functions for improved local development support.
Chat streaming and user feedback improvements:
useChatStore, allowing incremental updates to the assistant's message and dynamic handling of processing steps and metadata. This results in a smoother and more informative chat experience for users.ChatProcessingMetadataand related logic in the store to extract, normalize, and display processing steps (e.g., "fetching resources", "analyzing resources", "generating answer") received from the backend, with support for custom labels. [1] [2] [3]Internationalization:
API utility refactoring:
/__welearn_api_proxy__) when running against a localhost API, centralizing API root logic and simplifying endpoint construction. This change affects all API calls, including GET, POST, DELETE, streaming, and bookmark operations. [1] [2] [3] [4] [5] [6] [7] [8]Additional UI improvements: