Class TextContent

    • Constructor Detail

      • TextContent

        public TextContent​(String content,
                           @Nullable
                           String modelId,
                           @Nullable
                           FunctionResultMetadata metadata)
        Initializes a new instance of the TextContent class with a provided content, model ID, and metadata.
        Parameters:
        content - The content.
        modelId - The model ID.
        metadata - The metadata.
    • Method Detail

      • getValue

        public String getValue()
        Gets the content.
        Returns:
        The content.
      • getContent

        public String getContent()
        Description copied from interface: KernelContent
        Gets the content returned by the AI service.
        Returns:
        The content.