Skip to content

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

Merged
SergeyMenshykh merged 7 commits intomicrosoft:mainfrom
SergeyMenshykh:source-property
Feb 26, 2024
Merged

.Net The 'Source' property added to the ChatMessageContent class#5091
SergeyMenshykh merged 7 commits intomicrosoft:mainfrom
SergeyMenshykh:source-property

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
@SergeyMenshykh SergeyMenshykh deleted the source-property branch February 26, 2024 19:04
LudoCorporateShark pushed a commit to LudoCorporateShark/semantic-kernel that referenced this pull request Aug 25, 2024
…rosoft#5091)

### 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

<!-- 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 😄
Bryan-Roe pushed a commit to Bryan-Roe-ai/semantic-kernel that referenced this pull request Oct 6, 2024
…rosoft#5091)

### 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

<!-- 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

kernel.core .NET Issue or Pull requests regarding .NET code

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants