Class OpenAIStreamingTextContent
- java.lang.Object
-
- com.microsoft.semantickernel.services.KernelContentImpl<T>
-
- com.microsoft.semantickernel.services.StreamingTextContent<TextContent>
-
- com.microsoft.semantickernel.aiservices.openai.textcompletion.OpenAIStreamingTextContent
-
- All Implemented Interfaces:
KernelContent<TextContent>,StreamingKernelContent<TextContent>
public class OpenAIStreamingTextContent extends StreamingTextContent<TextContent>
StreamingTextContent is a wrapper for TextContent that allows for streaming.
-
-
Constructor Summary
Constructors Constructor Description OpenAIStreamingTextContent(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()-
Methods inherited from class com.microsoft.semantickernel.services.StreamingTextContent
getChoiceIndex
-
Methods inherited from class com.microsoft.semantickernel.services.KernelContentImpl
getInnerContent, getMetadata
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microsoft.semantickernel.services.KernelContent
getInnerContent, getMetadata
-
-
-
-
Constructor Detail
-
OpenAIStreamingTextContent
public OpenAIStreamingTextContent(TextContent content)
Initializes a new instance of theStreamingTextContentclass with a provided text content.- Parameters:
content- The text content.
-
-