Package com.composum.ai.composum.bundle
Class AIServlet.DescriptionOperation
- java.lang.Object
-
- com.composum.ai.composum.bundle.AIServlet.AbstractGPTServletOperation
-
- com.composum.ai.composum.bundle.AIServlet.DescriptionOperation
-
- All Implemented Interfaces:
com.composum.sling.core.servlet.ServletOperation
- Enclosing class:
- AIServlet
public class AIServlet.DescriptionOperation extends AIServlet.AbstractGPTServletOperation
Servlet representation ofGPTContentCreationService.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 Summary
Constructors Constructor Description DescriptionOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
performOperation(com.composum.sling.core.servlet.Status status, org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, com.composum.ai.backend.base.service.chat.GPTConfiguration config)
-
Methods inherited from class com.composum.ai.composum.bundle.AIServlet.AbstractGPTServletOperation
doIt, getOptionalInt
-
-
-
-
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 classAIServlet.AbstractGPTServletOperation
-
-