次の方法で共有


StreamingChatMessageContent Constructor

Definition

Initializes a new instance of the StreamingChatMessageContent class.

[System.Text.Json.Serialization.JsonConstructor]
public StreamingChatMessageContent (Microsoft.SemanticKernel.ChatCompletion.AuthorRole? role, string? content, object? innerContent = default, int choiceIndex = 0, string? modelId = default, System.Text.Encoding? encoding = default, System.Collections.Generic.IReadOnlyDictionary<string,object?>? metadata = default);
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.SemanticKernel.StreamingChatMessageContent : Nullable<Microsoft.SemanticKernel.ChatCompletion.AuthorRole> * string * obj * int * string * System.Text.Encoding * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.SemanticKernel.StreamingChatMessageContent
Public Sub New (role As Nullable(Of AuthorRole), content As String, Optional innerContent As Object = Nothing, Optional choiceIndex As Integer = 0, Optional modelId As String = Nothing, Optional encoding As Encoding = Nothing, Optional metadata As IReadOnlyDictionary(Of String, Object) = Nothing)

Parameters

role
Nullable<AuthorRole>

Role of the author of the message

content
String

Content of the message

innerContent
Object

Inner content object reference

choiceIndex
Int32

Choice index

modelId
String

The model ID used to generate the content

encoding
Encoding

Encoding of the chat

metadata
IReadOnlyDictionary<String,Object>

Additional metadata

Attributes

Applies to