microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
21.96k stars 3.27k forks source link

.Net: Mark 'Content' Property of 'ChatMessageContent' class obsolete #5170

Open SergeyMenshykh opened 8 months ago

SergeyMenshykh commented 8 months ago

Today, the 'Content' property of the 'ChatMessageContent' class serves as a shortcut for the first item of the TextContent type. This can be confusing for consumer code, in cases where a message contains multiple items of the TextContent type.

The proposal here is to mark the 'Content' property as obsolete and eventually removing it after providing consumers with sufficient time to migrate to using the Items collection.

More details - https://github.com/microsoft/semantic-kernel/pull/5088#discussion_r1498844180

github-actions[bot] commented 5 months ago

This issue is stale because it has been open for 90 days with no activity.