Skip to content

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

@SergeyMenshykh

Description

@SergeyMenshykh

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 - #5088 (comment)

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET codesk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)

Type

No type

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions