KernelContent<T> Interface
Type Parameters
- T
The type of the content.
public interface KernelContent<T>
Base class which represents the content returned by an AI service.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getContent()
Gets the content returned by the AI service. |
abstract T |
getInnerContent()
The inner content representation. |
abstract
Function |
getMetadata()
The metadata associated with the content. |
Method Details
getContent
public abstract String getContent()
Gets the content returned by the AI service.
Returns:
getInnerContent
public abstract T getInnerContent()
The inner content representation. Use this to bypass the current abstraction. The usage of this property is considered "unsafe". Use it only if strictly necessary.
Returns:
getMetadata
public abstract FunctionResultMetadata getMetadata()
The metadata associated with the content.
Returns: