Class TextContent


  • public class TextContent
    extends KernelContent<String>
    Content from a text completion service.
    • Constructor Detail

      • TextContent

        public TextContent​(String content,
                           String modelId,
                           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.