StreamingChatMessageContent Constructor
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.
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