Freigeben über


StreamingTextContent Constructor

Definition

Create a new instance of the StreamingTextContent class.

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

Parameters

text
String

Text update

choiceIndex
Int32

Index of the choice

modelId
String

The model ID used to generate the content

innerContent
Object

Inner chunk object

encoding
Encoding

Encoding of the text

metadata
IReadOnlyDictionary<String,Object>

Metadata information

Attributes

Applies to