Class StreamingTextContent
- java.lang.Object
-
- com.microsoft.semantickernel.services.KernelContent<T>
-
- com.microsoft.semantickernel.services.StreamingKernelContent<TextContent>
-
- com.microsoft.semantickernel.services.textcompletion.StreamingTextContent
-
public class StreamingTextContent extends StreamingKernelContent<TextContent>
StreamingTextContent is a wrapper for TextContent that allows for streaming.
-
-
Constructor Summary
Constructors Constructor Description StreamingTextContent(TextContent content)Initializes a new instance of theStreamingTextContentclass with a provided text content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()Gets the content returned by the AI service.-
Methods inherited from class com.microsoft.semantickernel.services.StreamingKernelContent
getChoiceIndex
-
Methods inherited from class com.microsoft.semantickernel.services.KernelContent
getInnerContent, getMetadata, getModelId
-
-
-
-
Constructor Detail
-
StreamingTextContent
public StreamingTextContent(TextContent content)
Initializes a new instance of theStreamingTextContentclass with a provided text content.- Parameters:
content- The text content.
-
-
Method Detail
-
getContent
@Nullable public String getContent()
Description copied from class:KernelContentGets the content returned by the AI service.- Specified by:
getContentin classKernelContent<TextContent>- Returns:
- The content.
-
-