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

.Net The 'Source' property added to the ChatMessageContent class #5091

Merged
merged 7 commits into from
Feb 26, 2024

Conversation

SergeyMenshykh
Copy link
Member

Motivation and Context

For agent customization story, when converting or translating messages from one agent to another, we need a way to access the agent that generated the messages.

Description

This PR adds the 'Source' property to the ChatMessageContent class.

Contribution Checklist

…ociate it with an instance of the service that generated it. This may be useful in agent customization scenarios to access the agent that generates messages.
@SergeyMenshykh SergeyMenshykh added the .NET Issue or Pull requests regarding .NET code label Feb 20, 2024
@SergeyMenshykh SergeyMenshykh self-assigned this Feb 20, 2024
@SergeyMenshykh SergeyMenshykh requested a review from a team as a code owner February 20, 2024 14:53
@Krzysztof318
Copy link
Contributor

Does we can use this property to solve plugin name problem described here #4913?

@SergeyMenshykh
Copy link
Member Author

Does we can use this property to solve plugin name problem described here #4913?

I don't see, at least for now, how the property can solve the problem. Chat completion services that use the ChatMessageContent class and SK functions are two unrelated SK components/functionality. Even if it might be possible to solve the problem for a particular edge case scenario using the property, it should not be the way forward. Instead, a proper solution should be put in place that covers the majority, if not all, scenarios.

@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Feb 26, 2024
@SergeyMenshykh SergeyMenshykh removed this pull request from the merge queue due to a manual request Feb 26, 2024
@SergeyMenshykh SergeyMenshykh added this pull request to the merge queue Feb 26, 2024
Merged via the queue into microsoft:main with commit 5288bcb Feb 26, 2024
18 checks passed
@SergeyMenshykh SergeyMenshykh deleted the source-property branch February 26, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel.core .NET Issue or Pull requests regarding .NET code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants