Interface KernelContent<T>
-
- Type Parameters:
T- The type of the content.
- All Known Subinterfaces:
StreamingChatContent<T>,StreamingKernelContent<T>
- All Known Implementing Classes:
ChatMessageContent,ChatMessageImageContent,ChatMessageTextContent,KernelContentImpl,StreamingTextContent,TextContent
public interface KernelContent<T>Base class which represents the content returned by an AI service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContent()Gets the content returned by the AI service.TgetInnerContent()The inner content representation.FunctionResultMetadatagetMetadata()The metadata associated with the content.
-
-
-
Method Detail
-
getInnerContent
@Nullable 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:
- The inner content.
-
getMetadata
@Nullable FunctionResultMetadata getMetadata()
The metadata associated with the content.- Returns:
- The metadata.
-
-