Skip to content

.Net Agents - Support streaming for ChatCompletionAgent #6956

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

Merged
merged 20 commits into from
Jul 2, 2024

Conversation

crickman
Copy link
Contributor

@crickman crickman commented Jun 25, 2024

Motivation and Context

Enables streaming invocation of ChatCompletionAgent for use in no chat (single agent) mode.

Description

  • Add ChatCompletionAgent.InvokeStreamingAsync
  • Add streaming sample
  • To be incorporated as part of AgentChat streaming framework (i.e. this is an initial component)

Contribution Checklist

@crickman crickman added bug Something isn't working PR: ready for review All feedback addressed, ready for reviews .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Jun 25, 2024
@crickman crickman self-assigned this Jun 25, 2024
@crickman crickman requested a review from a team as a code owner June 25, 2024 18:01
@crickman crickman closed this Jun 25, 2024
@crickman crickman changed the title .Net Fix - Include role definition for StreamingChatMessageContent .Net Agents - Support streaming for ChatCompletionAgent Jun 25, 2024
@crickman crickman added enhancement agents PR: in progress Under development and/or addressing feedback and removed bug Something isn't working kernel Issues or pull requests impacting the core kernel PR: ready for review All feedback addressed, ready for reviews labels Jun 25, 2024
@crickman crickman linked an issue Jun 26, 2024 that may be closed by this pull request
@crickman crickman requested a review from glahaye July 2, 2024 22:02
@crickman crickman requested a review from glahaye July 2, 2024 22:17
@crickman crickman enabled auto-merge July 2, 2024 22:23
@crickman crickman added this pull request to the merge queue Jul 2, 2024
Merged via the queue into main with commit b85e7ae Jul 2, 2024
19 checks passed
@crickman crickman deleted the feature_chatagent_streaming branch July 2, 2024 22:43
@crickman crickman removed the PR: ready for review All feedback addressed, ready for reviews label Jul 9, 2024
LudoCorporateShark pushed a commit to LudoCorporateShark/semantic-kernel that referenced this pull request Aug 25, 2024
### 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.
-->

Enables streaming invocation of `ChatCompletionAgent` for use in _no
chat_ (single agent) mode.

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

- Add `ChatCompletionAgent.InvokeStreamingAsync`
- Add streaming sample
- To be incorporated as part of `AgentChat` streaming framework (i.e.
this is an initial component)

### 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://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-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
agents enhancement .NET Issue or Pull requests regarding .NET code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

.Net Agents - Add streaming support to ChatCompletionAgent
3 participants