次の方法で共有


TextContent Class

Definition

Represents text content return from a ITextGenerationService service.

public sealed class TextContent : Microsoft.SemanticKernel.KernelContent
type TextContent = class
    inherit KernelContent
Public NotInheritable Class TextContent
Inherits KernelContent
Inheritance
TextContent

Constructors

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.

Properties

Encoding

The encoding of the text content.

InnerContent

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

(Inherited from KernelContent)
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)
Text

The text content.

Methods

ToString()

Returns a string that represents the current object.

Applies to