You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET - Introduce ChatCompletionAgent Allow-List of supported content (#10350)
### 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.
-->
Ensure `ChatCompletionAgent` only accepts content types / patterns
allowed by chat-completion service.
### Description
<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
The sample
[Concepts/Agents/MixedChat_Images](https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/Concepts/Agents/MixedChat_Images.cs)
fails (connector assertion) when passing a message generated by
`OpenAIAssistantAgent` to `ChatCompletionAgent` that contains only
`FileReferenceContent`.
> This sample historically worked, but there may have been an internal
logic update for the connector as part of a maintenance task. I didn't
bother to do the forensics, as the fact that it fails now is sufficient
data to address the bug.
### 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 😄
0 commit comments