ChatMessageContent Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents chat message content return from a IChatCompletionService service.

C#
public class ChatMessageContent : Microsoft.SemanticKernel.KernelContent
Inheritance
ChatMessageContent
Derived

Constructors

Properties

AuthorName

Name of the author of the message

Content

A convenience property to get or set the text of the first item in the Items collection of TextContent type.

Encoding

The encoding of the text content.

InnerContent

The inner content representation. Use this to bypass the current abstraction.

(Inherited from KernelContent)
Items

Chat message content items

Metadata

The metadata associated with the content.

(Inherited from KernelContent)
MimeType

MIME type of the content.

(Inherited from KernelContent)
ModelId

The model ID used to generate the content.

(Inherited from KernelContent)
Role

Role of the author of the message

Source

Represents the source of the message.

Methods

ToString()

Returns a string that represents the current object.

Applies to

Proizvod Verzije
Semantic Kernel Dotnet Latest