次の方法で共有


StreamingTextContent Class

Definition

Abstraction of text content chunks when using streaming from ITextGenerationService interface.

public class StreamingTextContent : Microsoft.SemanticKernel.StreamingKernelContent
type StreamingTextContent = class
    inherit StreamingKernelContent
Public Class StreamingTextContent
Inherits StreamingKernelContent
Inheritance
StreamingTextContent

Constructors

StreamingTextContent(String, Int32, String, Object, Encoding, IReadOnlyDictionary<String,Object>)

Create a new instance of the StreamingTextContent class.

Properties

ChoiceIndex

In a scenario of multiple choices per request, this represents zero-based index of the choice in the streaming sequence

(Inherited from StreamingKernelContent)
Encoding

The encoding of the text content.

InnerContent

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

(Inherited from StreamingKernelContent)
Metadata

The metadata associated with the content.

(Inherited from StreamingKernelContent)
ModelId

The model ID used to generate the content.

(Inherited from StreamingKernelContent)
Text

Text associated to the update

Methods

ToByteArray()

Abstract byte[] representation of the chunk in a way it could be composed/appended with previous chunks.

ToString()

Abstract string representation of the chunk in a way it could compose/append with previous chunks.

Applies to