Class OpenAIChatMessageContent<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>
-
- Type Parameters:
T- The type of the inner content.
- All Implemented Interfaces:
KernelContent<T>
- Direct Known Subclasses:
OpenAIStreamingChatMessageContent
public class OpenAIChatMessageContent<T> extends ChatMessageContent<T>
Represents the content of a chat message.
-
-
Constructor Summary
Constructors Constructor Description OpenAIChatMessageContent(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 List<OpenAIFunctionToolCall>getToolCall()Gets any tool calls requested.-
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
-
-
-
-
Constructor Detail
-
OpenAIChatMessageContent
public OpenAIChatMessageContent(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:
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
-
getToolCall
@Nullable public List<OpenAIFunctionToolCall> getToolCall()
Gets any tool calls requested.- Returns:
- The tool call.
-
-