Skip to content

.Net Fix - Display thread type name in error message#12723

Merged
crickman merged 1 commit into
mainfrom
fix-agent-thread-errormessage
Jul 16, 2025
Merged

.Net Fix - Display thread type name in error message#12723
crickman merged 1 commit into
mainfrom
fix-agent-thread-errormessage

Conversation

@crickman

@crickman crickman commented Jul 15, 2025

Copy link
Copy Markdown
Contributor

Motivation and Context

Error message confusing

Description

Error message does not display thread type and instead displays the name of the generic parameter:

Microsoft.SemanticKernel.KernelException: OpenAIResponseAgent currently only supports agent threads of type TThreadType.

(Customer reported an error using the erroneous error message.)

Contribution Checklist

@crickman crickman self-assigned this Jul 15, 2025
@crickman crickman requested a review from a team as a code owner July 15, 2025 21:01
@moonbox3 moonbox3 added the .NET Issue or Pull requests regarding .NET code label Jul 15, 2025
@github-actions github-actions Bot changed the title .NET Fix - Display thread type name in error message .Net Fix - Display thread type name in error message Jul 15, 2025
@crickman crickman enabled auto-merge July 15, 2025 21:21
@crickman crickman added this pull request to the merge queue Jul 16, 2025
Merged via the queue into main with commit a1d70d2 Jul 16, 2025
23 checks passed
@crickman crickman deleted the fix-agent-thread-errormessage branch July 16, 2025 10:28
@github-project-automation github-project-automation Bot moved this to Sprint: Done in Semantic Kernel Jul 16, 2025
jcruzmot-te pushed a commit to thousandeyes/aia-semantic-kernel that referenced this pull request Sep 15, 2025
### 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.
-->

Error message confusing

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

Error message does not display thread type and instead displays the name
of the generic parameter:

`Microsoft.SemanticKernel.KernelException: OpenAIResponseAgent currently
only supports agent threads of type TThreadType.`

(Customer reported an error using the erroneous error message.)

### 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 .NET Issue or Pull requests regarding .NET code

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants