Class KernelContent<T>

    • Constructor Detail

      • KernelContent

        public KernelContent​(@Nullable
                             T innerContent,
                             @Nullable
                             String modelId,
                             @Nullable
                             FunctionResultMetadata metadata)
        Initializes a new instance of the KernelContent class.
        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.
        Returns:
        The inner content representation.
      • getModelId

        @Nullable
        public String getModelId()
        Gets the model identifier used to generate the content.
        Returns:
        The model identifier used to generate the content.
      • getMetadata

        @Nullable
        public FunctionResultMetadata getMetadata()
        Gets the metadata associated with the content.
        Returns:
        The metadata associated with the content.
      • getContent

        @Nullable
        public abstract String getContent()
        Gets the content returned by the AI service.
        Returns:
        The content.