Class OpenAIStreamingChatMessageContent<T>
- java.lang.Object
-
- com.microsoft.semantickernel.services.KernelContentImpl<T>
-
- com.microsoft.semantickernel.services.chatcompletion.ChatMessageContent<T>
-
- com.microsoft.semantickernel.aiservices.openai.chatcompletion.OpenAIChatMessageContent<T>
-
- com.microsoft.semantickernel.aiservices.openai.chatcompletion.OpenAIStreamingChatMessageContent<T>
-
- Type Parameters:
T- The type of the inner content.
- All Implemented Interfaces:
StreamingChatContent<T>,KernelContent<T>,StreamingKernelContent<T>
public class OpenAIStreamingChatMessageContent<T> extends OpenAIChatMessageContent<T> implements StreamingChatContent<T>
Represents the content of a chat message.
-
-
Constructor Summary
Constructors Constructor Description OpenAIStreamingChatMessageContent(String id, AuthorRole authorRole, String content, String modelId, T innerContent, Charset encoding, FunctionResultMetadata metadata, List<OpenAIFunctionToolCall> toolCall)Creates a new instance of theOpenAIChatMessageContentclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()-
Methods inherited from class com.microsoft.semantickernel.aiservices.openai.chatcompletion.OpenAIChatMessageContent
getToolCall
-
Methods inherited from class com.microsoft.semantickernel.services.chatcompletion.ChatMessageContent
getAuthorRole, getContent, getContentType, getEncoding, getItems, toString
-
Methods inherited from class com.microsoft.semantickernel.services.KernelContentImpl
getInnerContent, getMetadata
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microsoft.semantickernel.services.KernelContent
getContent, getInnerContent, getMetadata
-
-
-
-
Constructor Detail
-
OpenAIStreamingChatMessageContent
public OpenAIStreamingChatMessageContent(String id, AuthorRole authorRole, String content, @Nullable String modelId, @Nullable T innerContent, @Nullable Charset encoding, @Nullable FunctionResultMetadata metadata, @Nullable List<OpenAIFunctionToolCall> toolCall)
Creates a new instance of theOpenAIChatMessageContentclass.- Parameters:
id- The id of the message.authorRole- The author role that generated the content.content- The content.modelId- The model id.innerContent- The inner content.encoding- The encoding.metadata- The metadata.toolCall- The tool call.
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceStreamingChatContent<T>
-
-