Freigeben über


StreamingMethodContent Class

Definition

Represents a manufactured streaming content from a single function result.

public sealed class StreamingMethodContent : Microsoft.SemanticKernel.StreamingKernelContent
type StreamingMethodContent = class
    inherit StreamingKernelContent
Public NotInheritable Class StreamingMethodContent
Inherits StreamingKernelContent
Inheritance
StreamingMethodContent

Constructors

StreamingMethodContent(Object, IReadOnlyDictionary<String,Object>)

Initializes a new instance of the StreamingMethodContent 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)
Content

Gets the result of the function invocation.

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)

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