Class KernelContentImpl<T>
- java.lang.Object
-
- com.microsoft.semantickernel.services.KernelContentImpl<T>
-
- Type Parameters:
T- The type of the content.
- All Implemented Interfaces:
KernelContent<T>
- Direct Known Subclasses:
ChatMessageContent,StreamingTextContent,TextContent
public abstract class KernelContentImpl<T> extends Object implements KernelContent<T>
Base class which represents the content returned by an AI service.
-
-
Constructor Summary
Constructors Constructor Description KernelContentImpl(T innerContent, String modelId, FunctionResultMetadata metadata)Initializes a new instance of theKernelContentImplclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetInnerContent()Gets the inner content representation.FunctionResultMetadatagetMetadata()Gets the metadata associated with the content.-
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
getContent
-
-
-
-
Constructor Detail
-
KernelContentImpl
public KernelContentImpl(@Nullable T innerContent, @Nullable String modelId, @Nullable FunctionResultMetadata metadata)
Initializes a new instance of theKernelContentImplclass.- Parameters:
innerContent- The inner content representation.modelId- The model identifier used to generate the content.metadata- The metadata associated with the content.
-
-
Method Detail
-
getInnerContent
@Nullable public T getInnerContent()
Gets the inner content representation.- Specified by:
getInnerContentin interfaceKernelContent<T>- Returns:
- The inner content representation.
-
getMetadata
@Nullable public FunctionResultMetadata getMetadata()
Gets the metadata associated with the content.- Specified by:
getMetadatain interfaceKernelContent<T>- Returns:
- The metadata associated with the content.
-
-