Class SlingGPTExecutionContext

  • All Implemented Interfaces:
    com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTToolExecutionContext

    public class SlingGPTExecutionContext
    extends Object
    implements com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTToolExecutionContext
    For Sling tools: the request and response of the streaming as executin context for tool calls.
    • Constructor Detail

      • SlingGPTExecutionContext

        public SlingGPTExecutionContext​(@Nonnull
                                        org.apache.sling.api.SlingHttpServletRequest request,
                                        @Nonnull
                                        org.apache.sling.api.SlingHttpServletResponse response)
    • Method Detail

      • getRequest

        @Nonnull
        public org.apache.sling.api.SlingHttpServletRequest getRequest()
      • getResponse

        @Nonnull
        public org.apache.sling.api.SlingHttpServletResponse getResponse()