StreamingTextContent<T> Class
- java.
lang. Object - com.
microsoft. semantickernel. services. KernelContentImpl<T> - com.
microsoft. semantickernel. services. StreamingTextContent<T>
- com.
- com.
Type Parameters
- T
The type of the content.
Implements
public abstract class StreamingTextContent<T>
extends KernelContentImpl<T>
implements StreamingKernelContent<T>
Base class which represents the content returned by a streaming AI service.
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | StreamingTextContent(T innerContent, int choiceIndex, String modelId, Map<String,ContextVariable<?>> metadata) |
Initializes a new instance of the StreamingTextContent<T> class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| int |
getChoiceIndex()
Gets the zero-based index of the choice in the streaming sequence. |
Methods inherited from KernelContentImpl
Methods inherited from java.lang.Object
Constructor Details
StreamingTextContent
protected StreamingTextContent(T innerContent, int choiceIndex, String modelId, Map
Initializes a new instance of the StreamingTextContent<T> class.
Parameters:
Method Details
getChoiceIndex
public int getChoiceIndex()
Gets the zero-based index of the choice in the streaming sequence.
Returns: