Class AIServlet.DescriptionOperation

  • All Implemented Interfaces:
    com.composum.sling.core.servlet.ServletOperation
    Enclosing class:
    AIServlet

    public class AIServlet.DescriptionOperation
    extends AIServlet.AbstractGPTServletOperation
    Servlet representation of GPTContentCreationService.generateDescription(String, int, GPTConfiguration) with arguments text and maxwords. Input parameters is text and the optional numeric parameter maxwords, output is in data.result.description a string containing the description.
    • Constructor Detail

      • DescriptionOperation

        public DescriptionOperation()
    • Method Detail

      • performOperation

        protected void performOperation​(@Nonnull
                                        com.composum.sling.core.servlet.Status status,
                                        @Nonnull
                                        org.apache.sling.api.SlingHttpServletRequest request,
                                        @Nonnull
                                        org.apache.sling.api.SlingHttpServletResponse response,
                                        @Nullable
                                        com.composum.ai.backend.base.service.chat.GPTConfiguration config)
        Specified by:
        performOperation in class AIServlet.AbstractGPTServletOperation