Skip to content

.Net: Fix bug where invoking with no message throws for some agents. #11217

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 1 commit into from
Mar 26, 2025

Conversation

westey-m
Copy link
Contributor

Motivation and Context

We were relying on the thread being created when we added messages to it the first time, but in some cases no messages will be added, since the agent could be invoked with no messages.

Description

Fix bug where invoking with no message throws for some agents.

Contribution Checklist

@westey-m westey-m requested a review from a team as a code owner March 26, 2025 18:32
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Mar 26, 2025
@github-actions github-actions bot changed the title Fix bug where invoking with no message throws for some agents. .Net: Fix bug where invoking with no message throws for some agents. Mar 26, 2025
@westey-m westey-m enabled auto-merge March 26, 2025 18:37
@westey-m westey-m added this pull request to the merge queue Mar 26, 2025
Merged via the queue into microsoft:main with commit e1c4879 Mar 26, 2025
24 checks passed
@westey-m westey-m deleted the common-agent-api-nomessagebugfix branch March 26, 2025 19:05
glorious-beard pushed a commit to glorious-beard/semantic-kernel that referenced this pull request Apr 6, 2025
…icrosoft#11217)

### Motivation and Context

We were relying on the thread being created when we added messages to it
the first time, but in some cases no messages will be added, since the
agent could be invoked with no messages.

### Description

Fix bug where invoking with no message throws for some agents.

### Contribution Checklist

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

- [ ] The code builds clean without any errors or warnings
- [ ] 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
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants