Partager via


TextContent Constructors

Definition

Overloads

TextContent()

Initializes a new instance of the TextContent class.

TextContent(String, String, Object, Encoding, IReadOnlyDictionary<String,Object>)

Initializes a new instance of the TextContent class.

TextContent()

Initializes a new instance of the TextContent class.

[System.Text.Json.Serialization.JsonConstructor]
public TextContent ();
Public Sub New ()
Attributes

Applies to

TextContent(String, String, Object, Encoding, IReadOnlyDictionary<String,Object>)

Initializes a new instance of the TextContent class.

public TextContent (string? text, string? modelId = default, object? innerContent = default, System.Text.Encoding? encoding = default, System.Collections.Generic.IReadOnlyDictionary<string,object?>? metadata = default);
new Microsoft.SemanticKernel.TextContent : string * string * obj * System.Text.Encoding * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.SemanticKernel.TextContent
Public Sub New (text As String, 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 content

modelId
String

The model ID used to generate the content

innerContent
Object

Inner content

encoding
Encoding

Encoding of the text

metadata
IReadOnlyDictionary<String,Object>

Additional metadata

Applies to