StreamingKernelContent Class

Definition

Represents a single update to a streaming content.

public abstract class StreamingKernelContent
type StreamingKernelContent = class
Public MustInherit Class StreamingKernelContent
Inheritance
StreamingKernelContent
Derived

Constructors

StreamingKernelContent()

Initializes a new instance of the StreamingKernelContent class.

StreamingKernelContent(Object, Int32, String, IReadOnlyDictionary<String,Object>)

Initializes a new instance of the StreamingKernelContent class.

Properties

ChoiceIndex

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

InnerContent

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

Metadata

The metadata associated with the content.

ModelId

The model ID used to generate the content.

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