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

Copilot Chat: Show live updates from ChatSkill #2103

Closed
wants to merge 5 commits into from

Conversation

dehoward
Copy link
Contributor

@dehoward dehoward commented Jul 20, 2023

Motivation and Context

showing the current status of execution helps dampen the effect of the response latency.

Description

  • updates ChatSkill to use the MessageRelayHub for broadcasting status updates
  • changes botIsTyping to botResponseStatus in ChatState

gif

Contribution Checklist

this commit changes the ChatSkill to broadcast messages of its execution
to the frontend. this is useful in reducing the effect of the latency
incurred when generating a response.
@dehoward dehoward added PR: ready for review All feedback addressed, ready for reviews copilot chat labels Jul 20, 2023
@dehoward dehoward requested a review from a team as a code owner July 20, 2023 22:40
@dehoward dehoward self-assigned this Jul 20, 2023
glahaye
glahaye previously approved these changes Jul 21, 2023
message = '1 user is typing';
let message = botResponseStatus;
if (numberOfUsersTyping === 1) {
message = message ? `${message} and 1 user is typing` : '1 user is typing';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: instead of saying "1 user", maybe write "a user"?

Suggested change
message = message ? `${message} and 1 user is typing` : '1 user is typing';
message = message ? `${message} and a user is typing` : 'A user is typing';

TaoChenOSU
TaoChenOSU previously approved these changes Jul 21, 2023
@dehoward
Copy link
Contributor Author

moved to microsoft/chat-copilot#14.

@dehoward dehoward closed this Jul 21, 2023
@dehoward dehoward deleted the copilot/live-response-updates branch July 21, 2023 22:25
github-merge-queue bot pushed a commit to microsoft/chat-copilot that referenced this pull request Jul 22, 2023
Original PR: microsoft/semantic-kernel#2103.
-------------------
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
showing the current status of execution helps dampen the effect of the
response latency.

### Description
- updates `ChatSkill` to use the `MessageRelayHub` for broadcasting
status updates
- changes `botIsTyping` to `botResponseStatus` in `ChatState`


![gif](https:/microsoft/semantic-kernel/assets/52973358/7e3720d8-2469-4fc5-a976-18d5c544e89f)

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https:/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https:/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#dev-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: ready for review All feedback addressed, ready for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants