Share via


KernelContentImpl<T> Class

  • java.lang.Object
    • com.microsoft.semantickernel.services.KernelContentImpl<T>

Type Parameters

T

The type of the content.

Implements

public abstract class KernelContentImpl<T>
implements KernelContent<T>

Base class which represents the content returned by an AI service.

Constructor Summary

Constructor Description
KernelContentImpl(T innerContent, String modelId, FunctionResultMetadata metadata)

Initializes a new instance of the KernelContentImpl<T> class.

Method Summary

Modifier and Type Method and Description
T getInnerContent()

Gets the inner content representation.

FunctionResultMetadata getMetadata()

Gets the metadata associated with the content.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

KernelContentImpl

public KernelContentImpl(T innerContent, String modelId, FunctionResultMetadata metadata)

Initializes a new instance of the KernelContentImpl<T> class.

Parameters:

innerContent - The inner content representation.
modelId - The model identifier used to generate the content.
metadata - The metadata associated with the content.

Method Details

getInnerContent

public T getInnerContent()

Gets the inner content representation.

Returns:

The inner content representation.

getMetadata

public FunctionResultMetadata getMetadata()

Gets the metadata associated with the content.

Returns:

The metadata associated with the content.

Applies to