KernelContent Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class for all AI non-streaming results
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.TextContent), "TextContent")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.ImageContent), "ImageContent")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.FunctionCallContent), "FunctionCallContent")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.FunctionResultContent), "FunctionResultContent")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.BinaryContent), "BinaryContent")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.AudioContent), "AudioContent")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.Agents.OpenAI.AnnotationContent), "AnnotationContent")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.FileReferenceContent), "FileReferenceContent")]
[System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")]
public abstract class KernelContent
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.TextContent), "TextContent")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.ImageContent), "ImageContent")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.FunctionCallContent), "FunctionCallContent")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.FunctionResultContent), "FunctionResultContent")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.BinaryContent), "BinaryContent")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.AudioContent), "AudioContent")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.Agents.OpenAI.AnnotationContent), "AnnotationContent")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.SemanticKernel.FileReferenceContent), "FileReferenceContent")>]
[<System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")>]
type KernelContent = class
Public MustInherit Class KernelContent
- Inheritance
-
KernelContent
- Derived
- Attributes
Constructors
KernelContent() |
Initializes a new instance of the KernelContent class. |
KernelContent(Object, String, IReadOnlyDictionary<String,Object>) |
Initializes a new instance of the KernelContent class. |
Properties
InnerContent |
The inner content representation. Use this to bypass the current abstraction. |
Metadata |
The metadata associated with the content. |
MimeType |
MIME type of the content. |
ModelId |
The model ID used to generate the content. |